Vertical labels with google charts API?

前端 未结 9 1656
傲寒
傲寒 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:35

    Add parameter options with slantedtextangle:90 degree to show label vertically

    var options ={ hAxis: {title: "Years" , direction:-1, slantedText:true, slantedTextAngle:90 }}
    

提交回复
热议问题