Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Charts Visualization Column Chart axis formatting and column colors

Tags:

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.

like image 275
roflwaffle Avatar asked May 12 '11 13:05

roflwaffle


People also ask

How do I change the color of my bar graph on Google?

Set series colors To change the colors assigned to data series in a specific chart: Select that chart, then on the right, open the STYLE tab. In the Color by section, select Series order, Bar order, or Slice order, depending on the type of chart. Click a color box to set the color for each series.

What is difference between bar chart and column chart?

Bar and column charts display data in rectangular bars — the longer the bar, the larger the value. A bar chart plots the variable value horizontally, and the fixed dimension, such as time, vertically. A column chart plots the variable value vertically, and the fixed dimension horizontally.

What is column chart in data visualization?

A column chart is a data visualization where each category is represented by a rectangle, with the height of the rectangle being proportional to the values being plotted. Column charts are also known as vertical bar charts.


1 Answers

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.

like image 165
Jerry van de Weerthof Avatar answered Oct 06 '22 01:10

Jerry van de Weerthof