Vertical labels with google charts API?

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

    this is a bit of an old thread. but i was searching for this myself and came across this...

    https://developers.google.com/chart/interactive/docs/gallery/areachart#Configuration_Options

    Look for: hAxis.slantedTextAngle and hAxis.slantedText. Set your angle to 90 for vertical display (or anything in between for a slant).

提交回复
热议问题