Home › forums › Chart Support › Method call for Zoom / pan Function in Canvas Js
Tagged: Pan, zoom
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.
How to make pan function to work across x and y axis irrespective of the viewport maximum or minimum like google maps to scroll
zoomType property allows you to control the axis for which zooming and panning are enabled. Setting zoomType to ‘xy’ will let you zoom / pan across both x and y axes. Please refer documentation for more info.
You must be logged in to reply to this topic.