Skip to content

Respect for vico! Q:how to disable vico animation for linechart #341

Closed Answered by patrickmichalik
zch1234qq asked this question in Questions
Discussion options

You must be logged in to vote

Got it, @zch1234qq. The initial animation is a special kind of difference animation. Because of this, disabling standard difference animations will also mean disabling the initial animation. To do so, you can set the diffAnimationSpec parameter of the Chart composable function to snap() or call BaseChartView#setDiffAnimationDuration with zero as its argument. At this point, though, your ChartEntryModelProducer won’t be doing much, so you may prefer to create ChartEntryModel instances yourself. If you’re using Jetpack Compose, you can use state to ensure that your chart is always displaying the latest data.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zch1234qq
Comment options

@Aatif-Thinkitive
Comment options

@patrickmichalik
Comment options

Answer selected by zch1234qq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants