imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.77k stars 1.74k forks source link

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

Open e4ky opened 6 months ago

e4ky commented 6 months ago

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 Looking forward to your guidance.

e4ky commented 5 months ago

I saw it in the document: image But the current version does not have the swapAnimationDuration attribute, only duration. Can I use "duration: Duration.zero" to disable animation?

brokenhun666 commented 4 months ago

I also kindly ask for an answer to this.