Home › forums › Using CanvasJS › Custom rangechanging method
Tagged: reset viewport rangechange range change
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 1 year ago.
I would like to customize “reset” button method so it doesn’t get back to original minimum/maximum viewport.
I want it to zoom out a little at each click or mousedown.
If not possible – how can I add another button like zoom/pan/reset? So it can look the same way but make my custom method?
Zoom Out in steps is not available as of now. But by storing every zoom-steps on rangeChanged and updating the viewport-range based on zoom-steps on click of back-button (an extra button added) you can achieve the same. Please take a look at this jsfiddle.
You must be logged in to reply to this topic.