Chart not moving fluently when adding value to two lines on interval

前端 未结 2 988
孤城傲影
孤城傲影 2021-01-26 20:21

I\'m using an updating spline chart to show a line that changes each second. The changing is set in chartinfo.chart.events.load. Below is the code I\'m using in my actual progra

相关标签:
2条回答
  • 2021-01-26 20:28

    In addition to series.addPoint([x, y], false, true); series2.addPoint([x, y2], true, true);

    also write chart.redraw(); after series2.addPoint([x, y2], true, true); This makes it work for me in webapp

    0 讨论(0)
  • 2021-01-26 20:41

    Set the first add point's animate parameter to false, the second add point will animate for the both of them.

    series.addPoint([x, y], false, true);
    series2.addPoint([x, y2], true, true);
    

    jsFiddle

    0 讨论(0)
提交回复
热议问题