MohammadYounes opened a new issue #11029: Pie expansion animation behavior 
URL: https://github.com/apache/incubator-echarts/issues/11029
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   When loading Pie series along with data, the expansion animation is 
continues,
   
   
![continues](https://user-images.githubusercontent.com/4712046/63129101-55c2cf80-bfbf-11e9-95d5-df17b2058904.gif)
   
   Code Sample:
   ```js
   var data = [
       {"name":"A1B·1","value":92386},
       {"name":"BB1·","value":90611},
       {"name":"1BB","value":12596},
       {"name":"2BA·1","value":9438},
       {"name":"1BA","value":10049}
   ]
       
   option = {
       series : [
           {
               type: 'pie',
               animationType:'expansion',
               animationDuration:5000,
               startAngle:0,
               endAngle:360,
               radius : ['50%','80%'],
               center: ['40%', '50%'],
               data: data // set along with series
           }
       ]
   };
   ```
   
   But when setting the data while the series has already been added, the 
expansion animation becomes discrete (per pie piece).
   
   
![discrete](https://user-images.githubusercontent.com/4712046/63129138-73903480-bfbf-11e9-80e7-7af65d575166.gif)
   
   Code Sample:
   ```js
   var data = [
       {"name":"A1B·1","value":92386},
       {"name":"BB1·","value":90611},
       {"name":"1BB","value":12596},
       {"name":"2BA·1","value":9438},
       {"name":"1BA","value":10049}
   ]
       
   option = {
       series : [
           {
               type: 'pie',
               animationType:'expansion',
               animationDuration:5000,
               animationDurationUpdate:5000,
               startAngle:0,
               endAngle:360,
               radius : ['50%','80%'],
               center: ['40%', '50%']
           }
       ]
   };
   
   //set after rendering
   setTimeout(function() {
      myChart.setOption({
          series:[
              {
               data: data
              }
           ]
      })
   }, 500);
   ```
   
   Is there away to force continues animation even if data is added later?
   
   ### What is expected?
   Continues Pie Chart Animation
   
   ### What is actually happening?
   Discrete Pie Chart Animation
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

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