Reputation: 7243
I've set up two pie charts with almost the exact same code.
In one implementation I've made mChart.animateX(1400);
and in the other mChart.animateY(1400);
When using the animateY
there is an initial flickering where we can see all the pie chart. This does not happen when using animateX
Here I have an video of the flickering. Video
I've tested in two devices. One running KitKat and the other Marshmallow. I'm fetching data from a server and adding the chart dinamicaly.
Upvotes: 3
Views: 1009
Reputation: 6132
Be sure not to set any default value to your chart before setting the values coming from server. It seems like you are trying to set data to your chart twice. So, this cause an interrupted animation from first data setting, as seen in the video.
Upvotes: 1