Home › forums › Using CanvasJS › Method call for Zoom / pan Function in Canvas Js
This topic contains 5 replies, has 2 voices, and was last updated by Vishwas R 1 week, 1 day ago.
Hope you will find this link useful : https://jsfiddle.net/santy_naren/xhrng6w9/2/
Are you looking for programatically zooming / panning the chart? If so you can achieve it by changing viewportMinimum and viewportMaximum. Please take a look at this JSFiddle for the same.
Dear Vishwa Thanks .. similarly I want the Pan Zoom Option to Come as we scroll
Setting zoomEnabled property to true will show zoom / pan & reset buttons, once the chart is zoomed. Please take a look at this updated JSFiddle.
Vishwa Thanks for your support but I need the Pan Function to be called as soon as we zoom . In the above given example only after selecting a region we can chose Pan Function . If you cant understand do Call me at +91 80561 60364
You can perform button click programmatically to switch to pan mode by default as shown in this JSFiddle.
You must be logged in to reply to this topic.