graph_library

A lightweight Flutter pie chart widget with:

  • 3 styles: solid, donut, ring
  • Optional slice colors (uses a smart default palette if omitted)
  • Center widget support (place any widget inside the pie’s center)
  • Accepts raw values or user-provided percentages
  • Configurable labels (none, percent, label, or both)

Built to be simple, flexible, and drop-in friendly.


Features

  • Solid, Donut, and Ring styles
  • Optional per-slice color or auto palette
  • Center widget area (great for totals or icons)
  • Labels: percent, label text, or label + percent
  • Use raw values (auto-normalized) or valuesArePercentages=true
  • Start angle control, ring track color, custom label style
  • Sensible defaults, handles negative/zero values safely

Install (local path)

Add the package to your app’s pubspec.yaml using a local path:

  • Absolute path (Windows):
dependencies:
  flutter:
    sdk: flutter
  graph_library:

Libraries

graph_library