Dynamic update of several episodes in highcharts

I have a highcharts-chart ( series ). I would like to update each series with one point ( value ) and dynamically shift these four lines (1 in 1 output) at the same time. This works fine with one series on a chart:

 chart.series[0].addPoint([x, 5], true, true); 

Is it possible to quickly add a point to all four lines?

Hanspiter

+6
source share
1 answer

You can update each series on one line, but only do the last to redraw the chart as follows:

 chart.series[0].addPoint([x, 5], false, true); chart.series[1].addPoint([x, 5], false, true); chart.series[2].addPoint([x, 5], false, true); chart.series[3].addPoint([x, 5], true, true); 

Here is a JSFiddle example illustrating the concept: http://jsfiddle.net/mkremer90/yZSzZ/

+12
source

All Articles