Skip to content
pubscout

pie_chart

5.4.0, released 3 years ago by ayushpgupta.com

A Flutter widget for rendering animated pie charts and ring charts from data maps.

WASM-ready
$ flutter pub add pie_chart
Source repository

What it does

Creates customizable pie and ring charts with built-in animations using a simple Map<String, double> input data structure. Supports legends, gradient colors, center text or widgets, custom values formatting, and base chart colors.

AI-written summary of version 5.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display proportional data in a pie or ring chart format.
  • You want built-in animations and legends with minimal setup.

Skip it when

  • You need complex multi-series charts, bar charts, or line graphs.
  • You require advanced interactive gestures beyond basic chart rendering.

Strengths

  • Simple API accepting a standard Map<String, double>
  • Supports ring style, custom gradients, center widgets, and text options
  • Cross-platform support including mobile, web, and desktop

Weaknesses

  • Limited strictly to pie and ring charts
  • Not suited for complex analytics dashboards requiring multiple chart types

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

No special native permissions or build steps required; just add dependency to pubspec.yaml.

Map<String, double> dataMap = {
    "Flutter": 5,
    "React": 3,
    "Xamarin": 2,
    "Ionic": 2,
};

PieChart(dataMap: dataMap);

Alternatives

Packages that do the same job and could replace pie_chart.

  • fl_chart

    Choose it if you need a highly versatile charting library supporting line, bar, scatter, and pie charts with rich touch interactions.

  • syncfusion_flutter_charts

    Choose it for enterprise-grade, feature-rich charting capabilities including extensive chart types and high performance.