allowDecimals: false ignored with flat data #6274
Comments
Workaround: Short explanation: it's not caused by high precision as in the title, but it's related to all points having the same value. If only one value will be a bit different, it will work correctly: http://jsfiddle.net/xhs3fonh/5/ |
@pawelfus OK. So this is recognised as a bug that will be fixed... hence no need for the workaround in future version? |
I think this should be closed as duplicate of #5956. I know this is the report for It should be configurable, so we can choose if we want to get flat data in the middle of a chart, with just one tick, or we want to generate N-ticks anyway. |
It looks like we've already got that option - by setting |
It depends if we talk about
Both examples can be created using the same config etc. on the same page (just data from backend can be different). |
The point with flat data is that there is no way that Highcharts can guess what the preferred scale is, that's why we chose to present it with one single tick in the first place. (Previously we added integer ticks if I remember correctly). But with using |
Referring to my original post, my surprise was that with |
Yes, I agree to that conclusion. |
Expected behaviour
Setting
allowDecimals: false
on theyAxis
should result in integer axis labels.Actual behaviour
With flat high-precision data, this doesn't work.
Live demo with steps to reproduce
http://jsfiddle.net/xhs3fonh/2/
Affected browser(s)
Any, I assume.
The text was updated successfully, but these errors were encountered: