Android LineSeries animation on redraw


#1

I have an animation defined for a LineSeries

LineSeries values = new LineSeries();

values.enableAnimation(true);

SeriesAnimation entryAnimation = SeriesAnimation.createGrowVerticalAnimation();

entryAnimation.setDuration(0.3f);

entryAnimation.setYScaleCurve(new EaseOutAnimationCurve());

values.setEntryAnimation(entryAnimation);

It works correctly on first display of the chart.

On a button click, I’m using the same method, including the animation, to redraw the chart with new data.

The graph displays correctly but there’s no animation.

Also, is there something else I need to do to clear the graph?