jqPlot: how to live update a chart

后端 未结 3 1478
鱼传尺愫
鱼传尺愫 2021-02-13 11:59

I\'m unable to figure out myself or find a proper example on how to perform live updates in jqPlot in a similar way as shown in this highcharts example.

3条回答
  •  逝去的感伤
    2021-02-13 12:20

    I added an example on JSFiddle jsfiddle.net/meccanismocomplesso/QAr4r/ which reproduces the example you linked.

    I've tried to keep the topic as more general as possible. If you need more explanation read this article about that.

    var plot1 = $.jqplot('myChart', [data], options);
    ...
    plot1.series[0].data = data; // update the graph
    

提交回复
热议问题