helgasoft commented on issue #18562:
URL: https://github.com/apache/echarts/issues/18562#issuecomment-1520651321
> line chart must update all 10,000 points every second
Your code is actually **adding** points instead of updating (replacing)
them, so memory runs out. Try this :
```
setInterval(function () {
newdata = generateData(dataCount);
opt = myChart.getOption();
opt.xAxis= {data: newdata.categoryData };
opt.series[0].data= newdata.valueData;
myChart.setOption(opt, true); // replace
}, 1000);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]