Vertical labels with google charts API?

Tony picture Tony · Apr 24, 2009 · Viewed 63.7k times · Source

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

Answer

Milind Morey picture Milind Morey · Jan 29, 2014

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

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