Home › forums › Using CanvasJS › set default viewport property of a chart to pan
This topic contains 2 replies, has 2 voices, and was last updated by firstname.lastname@example.org 4 months, 1 week ago.
Hey, good time, when I set viewportMinimum and viewportMaximum, is it possible to set the default property of the chart to pan (not to zoom)? Because when you are on cellphone, peoples want wipe left or right without activating this seperatly….excuse my poor english..
You can achieve this by programmatically clicking the zoom button (which switches to pan mode) upon rendering the chart. Please take a look at this JSFiddle for the same.
Considering this as duplicate of set default viewport property of a chart to pan, hence closing the same.
Cool, Thank You very much…
You must be logged in to reply to this topic.