Vertical labels with google charts API?

前端 未结 9 1646
傲寒
傲寒 2020-12-13 03:07

Anyone know how to get x-axis labels to be vertical with google charts API?

I need to fit a lot of labels in a small chart.

Thanks

9条回答
  •  孤城傲影
    2020-12-13 03:25

    It is possible now

    var options = {
      title: "Test",
       hAxis: {
            direction:-1,
            slantedText:true,
            slantedTextAngle:90 // here you can even use 180
        }
    };
    

提交回复
热议问题