plotPoints method

List<PieChartSectionDataExtended> plotPoints(
  1. dynamic dataList
)

Implementation

List<PieChartSectionDataExtended> plotPoints(dynamic dataList) {
  List<PieChartSectionDataExtended> points = [];
  for (var i = 0; i < dataList.length; i++) {
    //set the data of the series for databinding
    data = dataList[i];

    PieChartSectionDataExtended point = PieChartSectionDataExtended(
        this, data,
        value: toDouble(y) ?? 0,
        title: x,
        radius: radius,
        color: color ?? toColor('random'));

    points.add(point);
  }
  return points;
}