apache / echarts

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

[Bug] Graphics overlapping on scatter shot (Z-index) when there is a big amount of data (Exactly > 3000 dots) #18522

Open jmar1998 opened 1 year ago

jmar1998 commented 1 year ago

Version

5.4.2

Link to Minimal Reproduction

https://jsfiddle.net/2ajk8L6w/

Steps to Reproduce

Code is on fiddle 1) Example with 3000 dots https://jsfiddle.net/2ajk8L6w/ (This is ok) 2) Example with 3001 dots https://jsfiddle.net/2ajk8L6w/1/ (This is with more than 3000 dots - this is the issue example)

Current Behavior

When I render a scatter graph with graphics with more than 3000 data points the graphs are rendered on a bad Z position.

Expected Behavior

The render of graphics should have the same behavior and have the same position in both cases

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

helgasoft commented 1 year ago

use zlevel instead of "z" in rect and text

jmar1998 commented 1 year ago

Thanks alot @helgasoft works perfectly