Highchart series update in javascript

后端 未结 2 859
臣服心动
臣服心动 2020-12-06 05:18

I\'m trying to update a Highchart series by generating a new array with the current data from the database. But for some reason I can only find info about going through the

2条回答
  •  难免孤独
    2020-12-06 06:03

    To update a chart I usually do this:

    chart.series[0].update({
        pointStart: newSeries[0].pointStart,
        data: newSeries[0].data
    }, true); //true / false to redraw
    

    Try calling redraw after the update.

提交回复
热议问题