Pie Chart Max
edit from apgapg/pie_chart because author already not accept any pullrequest 2 years. So I fork the package and add some feature.

😄 Add Features
- Add show value label on chart.
- Avoid value overlay.
- Add value line if show value outside.
🤔 Use
PieChart(
dataMap: pieChartDataMap.value,
animationDuration: const Duration(milliseconds: 800),
chartLegendSpacing: 32,
chartRadius: MediaQuery.of(context).size.width / 3.2,
colorList: colorList,
initialAngleInDegree: 0,
chartType: ChartType.ring,
ringStrokeWidth: 32,
legendOptions: const LegendOptions(
showLegendsInRow: false,
legendPosition: LegendPosition.right,
showLegends: false,
legendShape: BoxShape.circle,
legendTextStyle: TextStyle(
fontWeight: FontWeight.bold,
),
),
// show line to value text
showValueLine: true,
// show label to value text
showTitleWithValues: true,
centerText: "cost_text".tr,
chartValuesOptions: const ChartValuesOptions(
showChartValueBackground: false,
showChartValues: true,
showChartValuesInPercentage: true,
showChartValuesOutside: true,
decimalPlaces: 2,
),
// gradientList: ---To add gradient colors---
// emptyColorGradient: ---Empty Color gradient---
);
👍 Contribution
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request