Google Charts Visualization Column Chart axis formatting and column colors

google-visualization

chart

I have this Column Chart using Google's Visualization Chart API tools. How would I make it so the y-axis numbers are only positive whole numbers? I've tried looking through the documentation but can't seem to find anything.

Best Answer

I used the following and have not seen fractions since...

vAxis:{minValue:0,maxValue:5,gridlines:{count:6}}

The trick seems to be that with 6 gridlines and 5 as lowest 'high' value, the halves and tenths aren't applicable anymore.