Skip to content

Fade animation when switching between data #844

Closed Answered by Gowsky
joseandroidengineer asked this question in Questions
Discussion options

You must be logged in to vote

Hello, @joseandroidengineer.

Currently when switching between data series the charts animate from the bottom x-axis label to the proper graph data set.

Please note that this happens only for new x values. When both the old series and the new series have a y value for a given x value, the y value is animated from the old one to the new one.

I was wondering if there is a way to animate where it fades to another set of coordinates instead of starting with 0.

Yes, you can do this by creating a custom DrawingModelInterpolator (CartesianLayerDrawingModelInterpolator in newer versions).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joseandroidengineer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants