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
Yes!
Set hAxis.slantedText to true and then set hAxis.slantedTextAngle=90. Like so...
var ac = new google.visualization.ComboChart(document.getElementById('visualization'));
ac.draw(data, {
title : 'Equipment Performance Chart',
isStacked:true,
vAxis: {
viewWindowMode: 'explicit',
viewWindow: {
max: 100
},
title: "Percentage"
},
hAxis: {
title: "Area",
slantedText:true,
slantedTextAngle:90
},
seriesType: "bars",
});