The X axis text on my chart isn't aligned with background grid and values

« 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 Anon on 24th April 2014
The graph

the json

the code
Posted by Richard on 24th April 2014
Hi there,

Your scale has 10 labels and goes up to 13 - it's never going to be whole numbers. So you can either change the max value of the scale, to say 20. You can also use the background.grid.autofit.numvlines option (set it to 10) to make the grid line up.

This still won't give you whole numbers so you'll also need to set scale.decimals to 1 so that the numbers don't get rounded up.


Add a reply

« Back to message list