imaNNeo / imaNNeo/fl_chart

I can't find how to disable linechart's default animation.

Open
#1,618 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

In the documentation I see that the duration and type of animation can be controlled by swapAnimationDuration and swapAnimationCurve, which in the current version of "fl_chart: ^0.66.2" have been changed to duration and curve, but neither of these attributes disable the animation effect.
I tried this by setting the animation duration to 0, but found that there seemed to be a problem with performance.
![image](https://github.com/imaNNeo/fl_chart/assets/11674702/c918c0d0-8703-4234-a5d9-556abb6c6ade)
Looking forward to your guidance.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the LineChart behavior in fl_chart ^0.66.2 with animation duration set to 0, then inspect the documented duration and curve options mentioned in the issue. Done means the supported configuration for disabling the default animation is identified and avoids the reported performance problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.