I have a Bar chart Y axis scale problem

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Zsolt on 14th August 2017
Hi Richard,

In a bar chart I have labels on x axis, and scale (values) on y axis.
The problem is when all data are 0, the y axis show these numbers: 0, 0, 0, 1, 1, 1
The scaleFormatter modify the aboveLabels instead of the scale.
Is the only way to set ymax to a value (ie 10) to see proper numbers on y axis?

Posted by Richard on 14th August 2017
Hi there,

The values are rounded - hence the strangeness. If you set the scaleDecimals property to 1 you should get a scale: of 0, 0.2, 0.4, 0.6, 0.8, 1.0

Posted by Zsolt on 16th August 2017
Posted by vsm on 14th February 2018
In my case, numbers with decimals such as "0.2" and "0.4" are not acceptable. Hence set ymax to 5 so that graph does not show labels with rounded values "0,0,1,1,1" but "1,2,3,4,5"! Of course you can set to a different max that is appropriate for your program.

Add a reply

« Back to message list