Home forums Using CanvasJS Problems with Chart Toolbar when zoom enabled and viewportMaximum set

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25540

    Hello,

    I need the options zoomenabled and the viewportMaximum setting. So when using it, the chart toolbar is always shown.
    So I completely hide the toolbar first with css and try to unhide it on rangeChange. Now the toolbar is flickering when moving around in the chart, because the rangeChanged Event is firing every time.

    Is it possible to have a event when the zoom feature is activated??

    #25542

    Christian,

    You can check if the triggered event is zoom/pan or reset by checking e.trigger within rangeChanged handler. Please take a look at this JSFiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.