customizeSegment method
Changes the series color, border color, and border width.
Implementation
@override
void customizeSegment(ChartSegment segment) {
final SegmentProperties segmentProperties =
SegmentHelper.getSegmentProperties(segment);
final SeriesRendererDetails seriesDetails =
SeriesHelper.getSeriesRendererDetails(segmentProperties.seriesRenderer);
segmentProperties.color = seriesDetails.seriesColor;
segmentProperties.strokeColor = seriesDetails.seriesColor;
segmentProperties.strokeWidth = segmentProperties.series.width;
}