customizeSegment method
Changes the series color, border color, and border width.
Implementation
@override
void customizeSegment(ChartSegment segment) {
final StackedColumn100Segment column100Segment =
segment as StackedColumn100Segment;
final SegmentProperties column100SegmentProperties =
SegmentHelper.getSegmentProperties(column100Segment);
column100SegmentProperties.color =
column100SegmentProperties.currentPoint!.pointColorMapper ??
SeriesHelper.getSeriesRendererDetails(
column100SegmentProperties.seriesRenderer)
.seriesColor;
column100SegmentProperties.strokeColor =
column100SegmentProperties.series.borderColor;
column100SegmentProperties.strokeWidth =
column100SegmentProperties.series.borderWidth;
}