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

   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   I update my project to angular 13 (from angular 7)
   Configurare a linechart with a series array using a for loop and push the 
data
   ```
       for (const value of this.valuesToShow) {
         option.series.push({
             ...value
         })
       }
   ```
   Push is undefined to the property` (property) EChartsOption.series?: 
SeriesOption `
   
   
   ### Current Behavior
   
   The configuration doesn't see the series as array so I cannot use the 
function push.
   I tried to cast the type of the data and also the type of the series as 
array and `SeriesOption$1[]` but this type in particular is not recognize.
   The only way I found to avoid this problem in local is touch the lib and 
convert the series:
   `series?: SeriesOption$1[];`
   
   ### Expected Behavior
   
   I expect that i can push an array into a series option as it configure on 
the lib:
   `series?: SeriesOption$1 | SeriesOption$1[];`
   Although seems that only the first type is detected.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - 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: dev-unsubscr...@echarts.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to