Skip to content

Disable animation using view system? #556

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

You must be logged in to vote

Hi @bthaler1, you can disable difference animations by setting their duration to 0. In Vico 1 you can do so by calling ChartView#setDiffAnimationDuration(0L) (or ComposedChartView#setDiffAnimationDuration(0L)). In Vico 2 you can do so by calling CartesianChartView#setDiffAnimationDuration(0L).
Regarding animating an updated y-axis value for a given x-axis value, that's the default behavior you can see in the sample app. Please make sure that you're not recreating your ChartEntryModelProducer, ComposedChartEntryModelProducer (in Vico 1), or CartesianChartModelProducer (in Vico 2) in between data updates.
If it's still not working for you, please share your code with us and we'll try to hel…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by bthaler1
Comment options

You must be logged in to vote
1 reply
@Gowsky
Comment options

Comment options

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