customizeSegment method

  1. @override
void customizeSegment(
  1. ChartSegment segment
)

Changes the series color, border color, and border width.

Implementation

@override
void customizeSegment(ChartSegment segment) {
  final StackedColumn100Segment column100Segment =
      segment as StackedColumn100Segment;
  column100Segment._color =
      column100Segment._currentPoint!.pointColorMapper ??
          column100Segment._seriesRenderer._seriesColor;
  column100Segment._strokeColor = column100Segment._series.borderColor;
  column100Segment._strokeWidth = column100Segment._series.borderWidth;
}