Home › forums › Using CanvasJS › How to set the values of y-axis after zooming
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 6 months, 4 weeks ago.
I want to set the the values on y-axis after the zooming this what I mean is the following:
I have in y-axis a values from “0” to “max-y” when I zooming in some area I want to have values in y-axis from “0” to “new max-y”.
The “new max-y” based on the areas that the user chosen to make zoom.For example if the values that I have are “0” and “100” and the user choose an area to zoom with max value 50 of this area I want after the zooming to have in y-axis the value “0” and “50”.
It is possible to I have something like this?
On rangeChanging, you can find the maximum y-value within the range and set axisY maximum to that value. Please take a look at this jsfiddle.
You must be logged in to reply to this topic.