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 2021/03/11 06:55:02 UTC

[GitHub] [echarts] 100pah commented on issue #14446: replaceMerge API , if i want to replace series[1], how to deal with this.

100pah commented on issue #14446:
URL: https://github.com/apache/echarts/issues/14446#issuecomment-796508342


   ```js
   
   
   mychart.setOption({
       series: [{
           // if id is specified, this option will be 
           // merged to the existing series with this id.
           id: 'line_series',
           type: 'line',
           animationDuration: 100,
           animationEasing: 'linear',
           data: data
       }, {
           // if id is not specified, a new series instance 
           // will be created by this option, and the previous
           // series[1] will be removed.
           type: 'lines',
           animationDuration: 100,
           animationEasing: 'linear',
           data: data
       }]
   }, {
       replaceMerge: 'series'
   });
   
   ```


----------------------------------------------------------------
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.

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