Bar Charts: Display only integer values for Y axis

Posted by user1180336 
Bar Charts: Display only integer values for Y axis
April 30, 2012 04:14PM
All;
I've looked through the JS Charts user guide, but I'm not seeing the option I need. I have a bar chart whose Y values are integers, but the bar chart is getting displayed with the grid values as floats. For example, 0.5, 1.0, 1.5, 2.0, etc. which don't make sense for this particular chart. I need to display only integer values. Can anyone tell me what option I need to use to accomplish this?
Thanks;
Frank
Re: Bar Charts: Display only integer values for Y axis
May 04, 2012 02:34PM
Frank,
Make sure that the number of values used on Y axis is the same as the interval you are using for Y axis.
If you want to have 10 values displayed, make sure that the end interval is between 0 and 9.
eg myChart.setAxisValuesNumberY(10)
myChart.setIntervalEndY(9)
Sorry, you do not have permission to post/reply in this forum.