populateChartPoints method

  1. @override
void populateChartPoints({
  1. List<ChartDataPointType>? positions,
  2. List<List<num>>? yLists,
})
override

Implementation

@override
void populateChartPoints({
  List<ChartDataPointType>? positions,
  List<List<num>>? yLists,
}) {
  if (yLists == null) {
    yLists = <List<num>>[yValues];
    positions = <ChartDataPointType>[ChartDataPointType.y];
  } else {
    yLists.add(yValues);
    positions!.add(ChartDataPointType.y);
  }

  super.populateChartPoints(positions: positions, yLists: yLists);
}