Scaling X axis value to whole numbers

2,175 views
Skip to first unread message

Akhil

unread,
Oct 25, 2011, 7:20:21 AM10/25/11
to Google Visualization API, tarun....@metacube.com, sandee...@metacube.com, promod...@metacube.com
Hello,

I am having a scaling issue in Google Visualization Bar chart, the
scenario is when we have only one results the graph shows scaling as
0 >> 0.25 >> 0.5 >> 0.75 >> 1.0

as our results can only be natural numbers(positive integers)
therefore the scaling should be 0 >> 1
I have gone through the Docs, but could not find any workable
solution.

If anyone has solutions to this issue, please help me out.

Thanks in Advance !!

Regards
Akhilesh Natani

asgallant

unread,
Oct 25, 2011, 9:13:36 AM10/25/11
to google-visua...@googlegroups.com, tarun....@metacube.com, sandee...@metacube.com, promod...@metacube.com
The charts always use 5 axis values, and there is no way to change that.  If you want integers only, you have to set the min/max axis values so that all of the 5 values will be integers (ie, min 0, max 4).  Use the h/vAxis minValue and maxValue options to set them.
Reply all
Reply to author
Forward
0 new messages