animated_pie_chart 0.0.2 copy "animated_pie_chart: ^0.0.2" to clipboard
animated_pie_chart: ^0.0.2 copied to clipboard

An animated pie chart with rotation and selected index functionality provides a visually appealing way to showcase data. In start it automatically sort list and shows the data in descending form and h [...]

Create Pie Chart Animation. A one line code and customize it easily

Features #

  • Create Pie chart animation with one line code
  • Specify it easily
  • Set padding and stroke width according to your need.
  • Set animation speed according to your desire.
  • Create PieChart by using your define values.
  • The Sum of values must lie a hundred of total (100).
  • By default pieChart appears and sort in descending order. it can be sort in ascending as well.

Getting started #

Import

    import 'package:animated_pie_chart/animated_pie_chart.dart';

Usage #

You can get reference by this simple example. MDPieChart List is necessary that you would provide to get your animated pie chart which is automatically sorted in descending order with 800 mili-Second Speed and static set stroke width=8 and padding=3. The sum of the pie chart value must be 100 of integer.

AnimatedPieChart(
            pieData: [
                MdPieChart()
            ],
          ) ,

you can make it more customize by this example.

     AnimatedPieChart(
            sort: true,
            stokeWidth: 8.0,
            padding:3.0,
            animatedSpeed:500,
            pieRadius: 70.0,
            colorsList: [
                Colors.brown,
                Colors.purple,
                Colors.red,
                Colors.yellow,
                Colors.green,
                Colors.blue,
                ],
          pieData: [
            MdPieChart(value: 10, name: 'Country 1'),
            MdPieChart(value: 30 name: 'Country 2'),
            MdPieChart(value: 40, name: 'Country 3'),
            MdPieChart(value: 20, name: 'Country 4'),
                ],
          ) ,

Example:

Additional information #

Github: https://github.com/hassnainnisar/

12
likes
100
pub points
69%
popularity

Publisher

unverified uploader

An animated pie chart with rotation and selected index functionality provides a visually appealing way to showcase data. In start it automatically sort list and shows the data in descending form and highest value goes to down in middle. And after the chart rotates as the selected index is brought down to the center, making it more prominent and easy to read. Overall, an animated pie chart with rotation and selected index functionality is an excellent tool for presenting data in a dynamic and engaging way.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

bouncing_widget, flutter

More

Packages that depend on animated_pie_chart