- I have read the guidelines for contributing
- I have included an example of my issue on a website such as JS Bin, JS Fiddle, or Codepen. (Template)
I want to have a chart with a minimal stepSize
of 1
, basically I don’t want the steps to have decimals like 0.5 or something. I can set stepSize
to 1
, but then it will show a label for each step regardless of maxTicksLimit
.
You can see the problem here:
http://codepen.io/anon/pen/pyBPME
If you disable the stepSize
option, the labels are fine, but if you then disable “dataset 1” and it only shows “dataset 2”, it will have steps like 0.5 and 1.5 which I don’t want.
Am I missing configuration or is this an issue?
Many thanks!
Unfortunately setting
stepSize
to1
has a effect I don’t like. When you look at my fiddle:http://codepen.io/anon/pen/MyRopv
You see the yAxis goes to 19. Without the
stepSize
option it will go to 20:http://codepen.io/anon/pen/ONYzwg
I like this behaviour better because it’s easier to read when it goes in steps of 5 up to 20, instead of steps of 4 up to 19.
So if the
minStepSize
option would be implemented it would solve these two problems. Do you think it will be hard to implement? I wouldn’t mind giving it a try myself.I think we can add a
minStepSize
option that works with the auto tick generation algorithm.@etimberg So do you think it’s easy to implement? Would like to give it a try.
@chris-wood-dynmark I think that would be supported with the
minStepSize
set to1
but I’ve edited my list above to include that requirement.I wrote that we should support it for both
minStepSize
andstepSize
though I kind of feel that it is more applicable tostepSize
only. Since it forces the stepSize to be a certain value, whileminStepSize
still runs the auto generate algorithm (which takes into accountmaxTicksLimit
) it might be odd to have it apply in that case since there are 2 variables for adjusting the step size.