You must be logged in to post your query.
Home › Forums › Chart Support › How to control axis tick with float number?
Hello.
I use canvasJS for chart.
It works well. But sometimes it’s not.
When I set minimum and maximum in YAxis option, sometimes charts are weird.
For example, maximum is 7.4 and minmum is 7.2. Actually, it seems like maximum is 7.6 and mimimum is 7.0. And interval between tick and tick is 0.1. But, 7.0 is showed 7.000000001. So, the YAxis starts right side far from YAxis Title. Like this.
Y 7.6┃ T 7.5┃ I 7.4┃ T 7.3┃ L 7.2┃ E 7.1┃ 7.000000001┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@jeonkook,
Setting floating values in minimum and maximum of y-axis seems to be working fine. Please take a look at this JSFiddle for the same.
axisY: { maximum: 7.4, minimum: 7.2 }
If you are still facing the issue, kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can understand your scenario better and help you out.
—- Manoj Mohan Team CanvasJS
You must be logged in to reply to this topic. Login/Register