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 ScatterSegment<T, D>
    ..series = this
    ..xValue = xValues[index]
    ..yValue = yValues[index]
    ..width = markerSettings.width
    ..height = markerSettings.height
    ..shape = markerSettings.shape
    ..isEmpty = isEmpty(index);
}