Home forums Chart Support How to set the values of y-axis after zooming

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #20043

    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?
    Thank you!



    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.

    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.