1👍
You’re forcing a min
, a max
, and a stepSize
that don’t work together. The auto-scaling algorithm is doing its best achieve what you ask, but something has to give.
If you really want it work cleanly you need to ensure the range (max
–min
) is cleanly divisible by the stepSize
. E.g.:
40-5 = 35
35/7 = 5
5 is a whole number, so the scale will work.
35/8 = 4.375
4.375 isn’t a whole number so the scale won’t work.
If you make max
45 then
45-5 = 40
40/8 = 5
Again, 5 is a whole number and the scale will work.
Source:stackexchange.com