pie_chart_3d 0.0.1 copy "pie_chart_3d: ^0.0.1" to clipboard
pie_chart_3d: ^0.0.1 copied to clipboard

Flutter 3d pie chart

This package draws 3d Pie Chart using Custom Painter

Features #

  • Supports 3d view of Pie Chart
  • Adjustable dept of the Pie Chart

[plot]

Getting started #

add package into your pubspec.yml file

Usage #

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ThreeDPieChart(
          data: _getChartData(),
          options: PieChartOptions(
            height: 400,
            width: 400,
            depthDarkness: 0.9,
            ellipseRatio: 0.4,
            shadowHeight: 50,
          ),
        ),
      ),
    );
  }

  List<ChartData> _getChartData() {
    return [
      ChartData(category: 'Music', value: 80, color: Color(0xFF6366F1)),
      ChartData(category: 'Sport', value: 50, color: Color(0xFFEF4444)),
      ChartData(category: 'School', value: 50, color: Color(0xFFFACC15)),
      ChartData(category: 'ART', value: 15, color: Color(0xFFC115FA)),
      ChartData(category: 'FOOD', value: 20, color: Color(0xFF56B533)),
    ];
  }
}

Additional information #

Please feel free to start Contribution. It still needs lot of features.

3
likes
0
points
56
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter 3d pie chart

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pie_chart_3d