apache / echarts

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

[Bug] Browser freezes on reducing pictorial bar chart size with small symbol size #20275

Open luckyvin opened 2 months ago

luckyvin commented 2 months ago

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=pictorialBar-vehicle&code=MYewdgzgLgBADgQygCwMoE8C2AjEAbCGAXhgG8AoGGaBAJwC5KqYByRFegek4FkBGAAwAaQTADCAVgB0EkQJjTZEhUPliALDKHLNs0cNEato3SOWyATGsVmFx-YLkwAXiyHkAvgG5yIOFABLcGIyJgBzWgCAE3pQ5hhQMCgEALAAGQRsAFM8WKhaAFcs93i8LIAzKFirJg8SmAAPAEEGgIhYiniopARYgG0WGloWAF16qlSANyzaCCy8wuKmKgRWiDTU-bJqZBAAdwWimDrlmFW2gBUA4ABrDp39w6zj8eo4PACoDbAt0geDmD5I4neLndaZHIdU5UTB0MKpWKOaEwcrgKCoALOLZ8dSnEHMMEABRAqSgMyh8SoeAhuTilKoEF2AKBS3pMLhCJgAGYBMiPHjavV0C02hTmBB3p9vr9_k8XqcwRlsrS_ozHoDFvLQWsrrd7mrmZr8Ss1tL9Uy5fyqPi5pEsu0YH1Tp1KWAEJgtiwrHwJG5kVB0HBPXBrlAQJEEHgAEJ0P30iBYXB4ABKWSDSCerwZifwGKx_RYgjgDTcrCLJbGyOwdAA4gg4LFCwIAKRxyndZL9ZFUF1smCTSNFRESADsWcpCZw-Fi7DQOYIUiG3eOyJGAqoa-8QA

Steps to Reproduce

  1. Set up pictorial bar chart as in the minimal reproduction example: the most important thing is quite small symbol size (e.g, 10px);
  2. Start to reduce window size vertically.

Current Behavior

On resizing, when grid size reduces to about 0 and less, browser page freezes. If symbol size is quite large (e.g. 50px) this bug doesn't reproduce. Screencast from 08-20-2024 01_15_37 PM.webm

Expected Behavior

Browser page should not freeze on reducing pictorial bar grid size.

Environment

- OS: Ubuntu 22
- Browser: Chrome 127.0.6533.120
- Framework:

Any additional comments?

No response

helgasoft commented 2 months ago

confirmed