You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/08/15 08:30:19 UTC

[GitHub] [echarts] DavidMarquezF opened a new issue, #17518: [Bug] Changing series with data and encode doesn't update axis

DavidMarquezF opened a new issue, #17518:
URL: https://github.com/apache/echarts/issues/17518

   ### 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](https://user-images.githubusercontent.com/32216320/184602361-1ae2749a-0d87-4fb5-81c3-f3d6c76c4f1e.png)
   
   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](https://user-images.githubusercontent.com/32216320/184602567-8c9fe783-8295-4d1a-9731-efa6384de033.png)
   
   
   ### Environment
   
   ```markdown
   - OS: Windows
   - Browser: Any
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org