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

Animate Pie Chart on startup #819

Open
sylvestrevgen opened this issue Nov 18, 2021 · 4 comments
Open

Animate Pie Chart on startup #819

sylvestrevgen opened this issue Nov 18, 2021 · 4 comments
Labels
enhancement New feature or request Pie Chart

Comments

@sylvestrevgen
Copy link

Hello. Is PieChart can animate on startup like "clockwise" circle animation? If not, it would be great if you implement it.

@imaNNeo imaNNeo added enhancement New feature or request Pie Chart labels Jan 29, 2022
@KhalidWar
Copy link

KhalidWar commented Sep 8, 2022

I'm really interested in this.

Has anyone managed to animate charts or got an example code using StaggeredAnimation?

@millie-molly
Copy link

any updates?

@armg-kyosuke-takayama
Copy link

How about this?

pichart_animation.mov
PieChart(
   swapAnimationDuration: const Duration(milliseconds: 500),
   PieChartData(
      startDegreeOffset: 270,
      centerSpaceRadius: 50.0.r,
      sectionsSpace: 0,
      sections: [
      PieChartSectionData(
         radius: 25.r,
         showTitle: false,
         value: viewModel.didAnimation ? 100 : 0.01,
         color: ColorName.accent,
         ),
      PieChartSectionData(
         radius: 25.r,
         showTitle: false,
         value: viewModel.didAnimation ? 0.01 : 100,
         color: ColorName.line,
         ),
      ],
   ),
),

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 15, 2023

Related to #406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Pie Chart
Projects
None yet
Development

No branches or pull requests

5 participants