apache / echarts

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

[Bug] canvas尺寸较小时折线图上的散点未显示 #16558

Closed yuelight closed 8 months ago

yuelight commented 2 years ago

Version

5.3.0

Link to Minimal Reproduction

https://codesandbox.io/s/optimistic-dust-svxfyh

Steps to Reproduce

拖拽改变browser面板的尺寸,17:00有个点在面板宽度较长时显示,较短时未显示(此处临界值在canvas宽度为1100左右)

Feb-22-2022 18-49-49

Current Behavior

canvas尺寸较小时图中17:00的点未显示 CleanShot 2022-02-22 at 18 52 30

Expected Behavior

不论宽度是否变化都显示

CleanShot 2022-02-22 at 18 53 41

Environment

- OS: MacOS
- Browser: Chrome 98.0.4758.102
- Framework: React

Any additional comments?

如有相关配置可以解决或是因某种原因如此设计,烦请告知

echarts-bot[bot] commented 2 years ago

@yuelight 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] Scatters on the line chart are not displayed when the canvas size is small **BODY** ### Version 5.3.0 ### Link to Minimal Reproduction https://codesandbox.io/s/optimistic-dust-svxfyh ### Steps to Reproduce Drag and drop to change the size of the browser panel. At 17:00, a point is displayed when the panel width is long, and it is not displayed when the panel width is short (here the critical value is around 1100 canvas width) ![Feb-22-2022 18-49-49](https://user-images.githubusercontent.com/17741765/155117462-de44a13c-7362-4358-a52c-a714f663ba43.gif) ### Current Behavior The point at 17:00 in the picture is not displayed when the canvas size is small ![CleanShot 2022-02-22 at 18 52 30](https://user-images.githubusercontent.com/17741765/155117854-681f313b-431f-4b33-8768-7302704c8a35.png) ### Expected Behavior Displayed regardless of width change ![CleanShot 2022-02-22 at 18 53 41](https://user-images.githubusercontent.com/17741765/155117996-2936953f-37a9-427a-8ec3-ba9a2c4f32db.png) ### Environment ````markdown - OS: MacOS - Browser: Chrome 98.0.4758.102 - Framework: React ```` ### Any additional comments? If there is a related configuration that can be solved or is designed for some reason, please let me know
github-actions[bot] commented 8 months 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 8 months 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!