populateDataSource method

  1. @override
void populateDataSource([
  1. List<ChartValueMapper<T, num>>? yPaths,
  2. List<List<num>>? chaoticYLists,
  3. List<List<num>>? yLists,
  4. List<ChartValueMapper<T, Object>>? fPaths,
  5. List<List<Object?>>? chaoticFLists,
  6. List<List<Object?>>? fLists,
])
override

Implementation

@override
void populateDataSource([
  List<ChartValueMapper<T, num>>? yPaths,
  List<List<num>>? chaoticYLists,
  List<List<num>>? yLists,
  List<ChartValueMapper<T, Object>>? fPaths,
  List<List<Object?>>? chaoticFLists,
  List<List<Object?>>? fLists,
]) {
  if (highValueMapper != null && lowValueMapper != null) {
    if (sortingOrder == SortingOrder.none) {
      super.populateDataSource(
          <ChartValueMapper<T, num>>[highValueMapper!, lowValueMapper!],
          <List<num>>[highValues, lowValues],
          <List<num>>[],
          fPaths,
          chaoticFLists,
          fLists);
    } else {
      super.populateDataSource(
        <ChartValueMapper<T, num>>[highValueMapper!, lowValueMapper!],
        <List<num>>[_chaoticHighValues, _chaoticLowValues],
        <List<num>>[highValues, lowValues],
        fPaths,
        chaoticFLists,
        fLists,
      );
    }
  }

  _applyDropOrGapEmptyPointModes();
  populateChartPoints();
}