You must be logged in to post your query.
Home › Forums › Chart Support › axisY not calculating to 100%;
I want to show axisY to 100% in my spline Chart.
let na = ;
maxY = Math.max(...na);
chart.options.axisY.maximum = maxY;
above code is working fine but when array contains more then 4 items my axisY showing 89%.
Can you kindly create a JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you out?
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in chart-options being used by you and us.
Having a JSFiddle helps us in figuring out the issue and many a time we can just edit your code on JSFiddle to fix the issue right away.
its something like this:
Check this example. in this example its showing 97% at most. but in my Actual example its showing 89% at most.
Labels are shown at every interval on the axis. As you are setting the maximum for axis we suggest you to set the interval along with it as shown in this JSFiddle.
it Worked. Thanks a lot for this library.
You must be logged in to reply to this topic. Login/Register