You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function updateChartIterator(chart, options) {
for (var i = chart.series.length - 1; i >= 0; i--) {
chart.series[i].update(options, false);
}
chart.redraw();
}
Internal note:
It's related to auto-updating navigator's series and something is wrong with indexes (note: update actually remove series and recreates it).
Internal note:
It's caused by this line: when first series is updated then it's index is set to 0. Now, navigator takes index from that series and creates a navigator series with index=0 (options are extended/merged). Because of that, we have wrong order of series. Alternatively we can set chart.series.length as index, but I don't see any reason to add complexity.
Expected behaviour
When iterating over chart series and updating them with new parameters, all series should be updated, not just some of them.
It looks to be working fine in Highstock 4.2.7 version:
http://jsfiddle.net/pv9rqduf/6/
Actual behaviour
It looks that not every series is updating its parameters.
Live demo with steps to reproduce
http://jsfiddle.net/pv9rqduf/7/
Steps to reproduce: click on 'aaa' button, then look on tooltip.
The text was updated successfully, but these errors were encountered: