Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vertical labels with google charts API?

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

like image 984
Tony Avatar asked Apr 24 '09 17:04

Tony


1 Answers

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

var options ={ hAxis: {title: "Years" , direction:-1, slantedText:true, slantedTextAngle:90 }} 
like image 77
Milind Morey Avatar answered Oct 04 '22 14:10

Milind Morey