Home Forums Chart Support set default viewport property of a chart to pan

set default viewport property of a chart to pan

Viewing 3 posts - 1 through 3 (of 3 total)
  • #25217

    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..

    #25219

    @epunktboofen-de,

    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.


    Vishwas R
    Team CanvasJS

    #25221

    Cool, Thank You very much…

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.