Home › forums › Using CanvasJS › zoom not working.
This topic contains 3 replies, has 2 voices, and was last updated by Vishwas R 6 months, 2 weeks ago.
My code is not zooming.
Zoom was working until the middle of coding. I do not know when some time it has stopped working.
Please point out which code is bad.
The behavior is designed such that zooming is limited upto a certain region, so the user doesn’t end up zooming into a blank-region (region with no dataPoints). To zoom into a certain region, there should be a minimum of 3-4 dataPoints.
In your case, zoom doesn’t work as its getting invalidated over axisY. However zoomType: ‘x’ works fine in your case.
We will reconsider this behavior for future releases.
thanks for your reply.
It is invalid because “axisYType” of “river shape” is “secondary”?
Zoom worked if I made that line missing.
Yes, as there are only 2 dataPoints attached to secondary y-axis, it invalidates the zooming region over y-axis.
You must be logged in to reply to this topic.