ChartPie.withChartData constructor
ChartPie.withChartData(})
Implementation
factory ChartPie.withChartData(List data,
{bool animate = false,
double height = 200.0,
int titleFontSize = 14,
int arcWidth = 40,
double maskFontSize = 18.0,
bool showLegend = true,
bool showChartTitle = true,
Widget? loadingWidget}) {
var lineData =
data.map<ChartLineData>((e) => ChartLineData.fromJson(e)).toList();
return ChartPie(
lineData: lineData,
height: height,
animate: animate,
arcWidth: arcWidth,
titleFontSize: titleFontSize,
maskFontSize: maskFontSize,
showLegend: showLegend,
showChartTitle: showChartTitle,
loadingWidget: loadingWidget,
);
}