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,
}) {
  chartPoints.clear();
  if (parent == null) {
    return;
  }

  if (parent!.onDataLabelRender == null &&
      parent!.onTooltipRender == null &&
      dataLabelSettings.builder == null) {
    return;
  }

  for (int i = 0; i < dataCount; i++) {
    final CartesianChartPoint<D> point =
        CartesianChartPoint<D>(x: xRawValues[i], xValue: xValues[i]);
    chartPoints.add(point);
  }
}