Home › forums › Using CanvasJS › Problems with Chart Toolbar when zoom enabled and viewportMaximum set
Tagged: settings, toolbar, viewportMaximum, zoom
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 1 month ago.
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??
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.
You must be logged in to reply to this topic.