Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
e4ky opened this issue Mar 28, 2024 · 3 comments
Open

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

e4ky opened this issue Mar 28, 2024 · 3 comments

Comments

@e4ky
Copy link

e4ky commented Mar 28, 2024

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
Copy link
Author

e4ky commented Apr 10, 2024

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?

@e4ky e4ky mentioned this issue Apr 16, 2024
@brokenhun666
Copy link

I also kindly ask for an answer to this.

imaNNeo added a commit that referenced this issue Nov 20, 2024
… to use `curve` and `duration` instead to keep the consistency over the project, #1618
imaNNeo added a commit that referenced this issue Nov 20, 2024
… to use `curve` and `duration` instead to keep the consistency over the project, #1618
imaNNeo added a commit that referenced this issue Nov 20, 2024
… to use `curve` and `duration` instead to keep the consistency over the project, #1618
imaNNeo added a commit that referenced this issue Nov 20, 2024
… to use `curve` and `duration` instead to keep the consistency over the project, #1618
imaNNeo added a commit that referenced this issue Nov 20, 2024
… to use `curve` and `duration` instead to keep the consistency over the project, #1618
imaNNeo added a commit that referenced this issue Nov 20, 2024
… to use `curve` and `duration` instead to keep the consistency over the project, #1618
imaNNeo added a commit that referenced this issue Nov 20, 2024
… to use `curve` and `duration` instead to keep the consistency over the project, #1618
@imaNNeo
Copy link
Owner

imaNNeo commented Nov 20, 2024

You can just set the duration property to Duration.zero (as the doc says)
But unfortunately, it was outdated. I'm sorry about that. I just updated the docs and deprecated swapAnimationCurve and swapAnimationDuration properties that we have in other charts (Bar, Pie, ...)

So now, you should be able to use duration and curve in all the charts in a consistent way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants