echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open DavidMarquezF opened this issue 3 years ago • 2 comments

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

DavidMarquezF avatar Aug 15 '22 08:08 DavidMarquezF

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] avatar Aug 14 '24 21:08 github-actions[bot]

It still happens i believe

DavidMarquezF avatar Aug 16 '24 13:08 DavidMarquezF