apache / echarts

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

[Bug] initOption性能 #17908

Open L-value opened 1 year ago

L-value commented 1 year ago

Version

5.22

Link to Minimal Reproduction

No response

Steps to Reproduce

64个图表各自init

截屏2022-11-12 下午2 15 43

Current Behavior

64个图表各自init,性能耗时 导致ui卡顿

Expected Behavior

64个图表各自init,不卡顿UI

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 1 year ago

@L-value 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** [Bug] initOption performance **BODY** ### Version 5.22 ### Link to Minimal Reproduction _No response_ ### Steps to Reproduce 64 charts each init Screenshot 2022-11-12 2 15 43 PM ### Current Behavior 64 charts are init respectively, and the performance is time-consuming, causing the UI to freeze. ### Expected Behavior 64 charts are init respectively, no stuck UI ### Environment ````markdown - OS: - Browser: - Framework: ```` ### Any additional comments? _No response_
Ovilia commented 1 year ago

64 个图表是一个非常大的数量,请先评估一下需求是不是合理。其次,在多图表的情况下,SVG 通常会比 Canvas 性能更高,可以试试 SVG 渲染 https://echarts.apache.org/handbook/zh/best-practices/canvas-vs-svg