pissang edited a comment on issue #11029: Pie expansion animation behavior 
URL: 
https://github.com/apache/incubator-echarts/issues/11029#issuecomment-522822001
 
 
   @MohammadYounes  Sorry, currently the only way to use the first animation 
type is creating a new series like following
   
   ```js
   // Every time data want to be replaced.
   myChart.setOption({
       series: {
               // Use a different id to make sure this series is new created.
               id: Date.now(),
               // New data
               data: ...,
   
               // Other configs.
               type: 'pie',
               animationType:'expansion',
               animationDuration:5000,
               animationDurationUpdate:5000,
               startAngle:0,
               endAngle:360,
               radius : ['50%','80%'],
               center: ['40%', '50%']
        }
   }, true);        // Second parameter of setOption should be set true so 
option will not be merged with previous
   ```
   
   But it's a good idea to add a new config to specify the animation type.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to