Home › forums › Using CanvasJS › XY zoom not working on step functions
This topic contains 1 reply, has 2 voices, and was last updated by Shashi Ranjan 1 week, 5 days ago.
Hello team CanvasJs,
I am building a demo application using the trial version of CanvasJS. It seems like the XY zoom does not work on step functions. I was wondering whether this is a bug or if there is a reason for this. Please have a look at the attached jsfiddle.
This behavior is designed such that zooming is limited up to a certain region, so the user doesn’t end up zooming into a blank-region (a region with no dataPoints). To zoom into a certain region, there should be a minimum of 3-4 dataPoints.
In your case, the zoom doesn’t work as there are less than 3-4 dataPoints over the Axis Y but by changing the zoomType to “x” it would work as there are more than 3-4 dataPoints over the Axis X.
You must be logged in to reply to this topic.