customizeSegment method
To customize each segments.
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;
}