apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.45k stars 19.61k forks source link

`series-lines` -- when I try to appendData to it, the page freezes a bit #13394

Closed zifer123 closed 2 years ago

zifer123 commented 4 years ago

Version

4.9.0

Reproduction link

https://echarts.apache.org/examples/zh/editor.html?c=lines-bmap-effect

Steps to reproduce

1、myOptions is as follows series: [{ type: 'lines', coordinateSystem: 'bmap', polyline: true, data: busLines, silent: true, lineStyle: { // color: '#c23531', // color: 'rgb(200, 35, 45)', opacity: 0.2, width: 1 }, progressiveThreshold: 500, progressive: 200 }, { type: 'lines', coordinateSystem: 'bmap', polyline: true, data: busLines, lineStyle: { width: 0 }, effect: { constantSpeed: 20, show: true, trailLength: 0.1, symbolSize: 1.5, loop: false }, zlevel: 1 }]

set options's loop false

2、try to add data every 10 seconds setInterval(() => { myChart.appendData({ seriesIndex: 1, data: busLines.slice(0, 50) }) }, 10000)

What is expected?

I hope to, when i appendData, the page won't freeze a bit, and and it's smooth, or there are other API that allow me to do this funtion?

What is actually happening?

When add data, the page is not stuck


My English is so poor, dont't mind, thank you!

echarts-bot[bot] commented 4 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

pissang commented 4 years ago

I think it's a typical performance issue when data is quite large. I'm afraid the only way to solve this currently is to reduce the amount of data.

zifer123 commented 4 years ago

I think it's a typical performance issue when data is quite large. I'm afraid the only way to solve this currently is to reduce the amount of data.

Okay, that seems to be the only way, thank you for your answer

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 2 years ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!