customizeSegment method

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

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

Implementation

@override
void customizeSegment(ChartSegment segment) {
  final SeriesRendererDetails seriesRendererDetails =
      SeriesHelper.getSeriesRendererDetails(this);
  final SegmentProperties segmentProperties =
      SegmentHelper.getSegmentProperties(segment);
  segmentProperties.color = seriesRendererDetails.seriesColor;
  segmentProperties.strokeColor = segmentProperties.series.borderColor;
  segmentProperties.strokeWidth = segmentProperties.series.borderWidth;
}