populateChartPoints method

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

Method excepts BoxAndWhiskerSeries, and stacking series.

Implementation

@override
void populateChartPoints({
  List<ChartDataPointType>? positions,
  List<List<num>>? yLists,
}) {
  if (this is WaterfallSeriesRenderer) {
    super.populateChartPoints(positions: positions, yLists: yLists);
    return;
  }

  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);
}