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 Query

More Query from same tag