apache / echarts

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

[Bug] drilldown chart problems with specific data in datasets #18197

Open helgasoft opened 1 year ago

helgasoft commented 1 year ago

Version

5.4.1

Link to Minimal Reproduction

all dataset

Steps to Reproduce

two code examples

Current Behavior

Stumbled on this by doing state-to-county drilldown. Turns out the US states of Arkansas, Hawaii, Oklahoma have counties with the same names. To replicate I updated the ECharts example by adding an extra record in cars. 1) click on the cars bar: the actual drilldown works fine, except the morphing is not right - cars clones to cars only instead of cloning to all (Toyota,Opel,cars,Volkswagen). 2) press the Back button to return to the higher level bars. A more serious problem appears - the cars bar is misplaced. Looks like the lower-level bar stays and do not get replaced. Resizing the chart fixes it. image

Expected Behavior

being able to use any data, even identical rows in both high level and lower level datasets for drilldown with correct display

Environment

- OS: win 10
- Browser: chrome
- Framework: none

Any additional comments?

The bug is observed when the higher level data is in dataset only, series.data is not affected (as in original example)

Ovilia commented 1 year ago

@helgasoft I saw you helping a lot in other issues. Since most of our contributors are working with their spare time on this project, it would be great if you could make a pull request on issues you care. Here's the Wiki: https://github.com/apache/echarts/wiki. And thanks for help the community!

helgasoft commented 1 year ago

@Ovilia, you are welcome! I may give it a try.

GordoRank commented 4 months ago

I’m having the same issue sadly.