score:1

Accepted answer

Try like this.. make the highchart method to draw chat and call the method with new data as many number of time you need to redraw the chart as the rendering of chart in high chart is fast.

function lineChart(div,Chartdata){
$('#'+div).highcharts({
title: {
   text: 'Calibration',
            x: -20 //center
},
xAxis: {....


series: [{
    name: 'Curve',
    data: Chartdata
}]
}

and call like

lineChart('container',[10,100,20]);

where ever you want...

like wise add the category too... and make your own customized methods

hope it helps

score:1

See the official Demo in this Fiddle.

You should add .highcharts() after $('#container').

That is $('#container').highcharts().series[0].setData([100,200],true);

Fixed demo Fiddle.

The official document.


Related Articles