setData method

  1. @override
void setData(
  1. int index,
  2. ChartSegment segment
)
override

Implementation

@override
void setData(int index, ChartSegment segment) {
  super.setData(index, segment);
  segment as WaterfallSegment<T, D>
    ..series = this
    ..x = xValues[index]
    ..top = _highValues[index]
    ..bottom = _lowValues[index]
    ..isTotalSum = _totalSumValues[index]
    ..isIntermediateSum = _intermediateSumValues[index];
}