Joaveinz opened a new issue #16630:
URL: https://github.com/apache/echarts/issues/16630


   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Have an option with multiple series
   2. filter the option series by type
   
   ### Current Behavior
   
   I want to toggle the "smooth" property of my chart series.
   
   Currently, I have to use this if statement:
   
   inside the foreach statement, set is of type `SeriesOption$1`
   Inside the if statement, set is of type `LineSeriesOption$1`
   
   ```
   option.value.series.forEach((set) => {
       if (set.type === "line") {
           set.smooth = !set.smooth;
       }
   });
   ```
   
   ### Expected Behavior
   
   I would like the filter to return `LineSeriesOption$1`, so I can use the 
following code:
   
   
   ```
   option.value.series.filter((set) => set.type === "line").forEach((set) => {
       set.smooth = !set.smooth;
   });
   ```
   
   ### Environment
   
   ```markdown
   - OS: macOS Monterey M1 2020
   - Browser: Chrome
   - Framework: Vue 3 + vue-echarts library
   ```
   
   
   ### Any additional comments?
   
   Just a note, not high priority for me.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to