apache / echarts

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

桑基图focus设置trajectory模式,当links超过100时,非常卡 #19538

Open chengaohe45 opened 8 months ago

chengaohe45 commented 8 months ago

Version

5.4.3

Link to Minimal Reproduction

配置桑基图focus设置trajectory模式,节点60个,links也就250个左右,页面渲染卡顿达到4秒,把数据弄到官网测试,同样的结果

Steps to Reproduce

配置桑基图focus设置trajectory模式,节点60个,links也就250个左右,页面渲染卡顿达到4秒,把数据弄到官网测试,同样的结果

Current Behavior

配置桑基图focus设置trajectory模式,节点60个,links也就250个左右,页面渲染卡顿达到4秒,把数据弄到官网测试,同样的结果

Expected Behavior

页面渲染要流畅

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 8 months ago

@chengaohe45 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** Sankey diagram focus sets the trajectory mode. When the links exceed 100, it is very stuck. **BODY** ### Version 5.4.3 ### Link to Minimal Reproduction Configure the Sankey diagram focus and set the trajectory mode. There are 60 nodes and only about 250 links. The page rendering is stuck for 4 seconds. I put the data to the official website for testing. The same result. ### Steps to Reproduce Configure the Sankey diagram focus and set the trajectory mode. There are 60 nodes and only about 250 links. The page rendering is stuck for 4 seconds. I put the data to the official website for testing. The same result. ### Current Behavior Configure the Sankey diagram focus and set the trajectory mode. There are 60 nodes and only about 250 links. The page rendering is stuck for 4 seconds. I put the data to the official website for testing. The same result. ### Expected Behavior Page rendering should be smooth ### Environment ```markdown -OS: -Browser: - Framework: ``` ### Any additional comments? _No response_
echarts-bot[bot] commented 8 months ago

@chengaohe45 Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.

chengaohe45 commented 8 months ago

https://codepen.io/chengaohe45/pen/OJqONgv

可以查看开发者模式->控制台的打印信息:chart.setOption这个函数所花费的时间不少于1秒(我测试几台机都是一样的结果)

chengaohe45 commented 7 months ago

此问题计划什么时候可以修复呢?

chengaohe45 commented 6 months ago

有计划修复吗?