Home forums StockChart Support StockChart Async Data Load – strange/buggy events Reply To: StockChart Async Data Load – strange/buggy events

#31653

Hi.

I am testing new version 1.2 (https://canvasjs.com/blog/10/19/chart-v3-2-stockchart-v1-2-ga/) where should be these erros fixed, but I still have issues.

First scenario:
https://jsfiddle.net/2xq67rgb/3/

1.) After Initialization, change the viewport range using navigator slider (or buttons, or inputFields).
2.) Click on shiftData button (few times).
3.) When you click anywhere in the chart area, there is wrong event fired (source: “navigator”, type: “rangeChanged”, and old/wrong minumum, maximum)

Second scenario:
https://jsfiddle.net/g7jfoxkq/2/

Here we have both rangeChanging Event handler for the chart (see “rangeChanging: onGraphRangeChanging” in the example) and also rangeChanged Event handler for the whole stockchart (see “rangeChanged: rangeChanged”).

1.) Change the viewport range using navigator slider (or buttons, or inputFields) or click on shiftData.
2.) When you click anywhere in the chart area, there is wrong event fired – same as in the first scenario. And there is another wrong event fired for the chart (type: “rangeChanging”, trigger: “zoom”). (See debug console in the example)

So there is “zoom” event fired (and also chart rerenders) even though there is zoom disabled for the stockchart.

Thank you for the help.