apache / echarts

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

[Bug] Changing series with data and encode doesn't update axis #17518

Open DavidMarquezF opened 2 years ago

DavidMarquezF commented 2 years ago

Version

5.3.2

Link to Minimal Reproduction

https://codepen.io/david-marquez-f/pen/mdxzQNG

Steps to Reproduce

  1. Create a line/bar chart with series that use data and encode. The encode is used to set the category and value of each data point.
  2. Change data by removing data points from the series

Current Behavior

The line points/bars in the categories removed disappear (expected) but the axis is not updated accordingly (it doesn't remove them)

image

If I also update the xAxis (I just put the same config that was used initially) it gets refreshed properly

Expected Behavior

In the same way that the data points are removed, so should be the axis categories:

image

Environment

- OS: Windows
- Browser: Any
- Framework:

Any additional comments?

No response

github-actions[bot] commented 3 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.

DavidMarquezF commented 3 months ago

It still happens i believe