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] Custom series Zoom display error #17742

Closed a949066041 closed 2 years ago

a949066041 commented 2 years ago

Version

5.3.2

Link to Minimal Reproduction

https://codesandbox.io/s/stoic-cdn-wmv5n5?file=/src/index.js

Steps to Reproduce

  1. Narrow it down
  2. The red disappears
  3. Recovery range

Current Behavior

Recovery range blue is gone

Expected Behavior

The display is normal when the drag is resumed。

Environment

- OS:window
- Browser: Chrome  105.0.5195.127
- Framework:

Any additional comments?

No response

plainheart commented 2 years ago

It seems the blue item didn't disappear but was covered by the red one.

a949066041 commented 2 years ago

I think Initialize and drag and drop restore should be the same effect.

plainheart commented 2 years ago

As per the documentation, the custom series doesn't recognize the z option in the data items. You may try to use the z2 option provided by the renderItem function. Refer to this demo.

a949066041 commented 2 years ago

Thanks. I get.