Hello
I’m using 2.0-dev and depending on the size of the screen the y-axis is ticks labels change between decimal or whole number. how can we force whole numbers? The decimal sees to only appear when a value of 5 or list is present.
Here is an example: http://jsfiddle.net/cwilhelm/whva3opt/ you may need to change the browser window size to see how the labels change
@cdwilhelm you could try setting which would limit the number of ticks to a maximum of 6.
These solutions only work, if you know what your value range is on the Y axis. If your values range from 0 to infinity, I found this solution to work well for me:
This limits the number of ticks to either your maximum value + 1, or the default (11), whichever is smaller.
I’m a little late, but that’s how i solved this issue:
I filter out non-integers and replace them with empty strings. Seems a little hacky but works with any numeric scale at the whole chart’s lifetime.