customizeSegment method
Changes the series color, border color, and border width.
Implementation
@override
void customizeSegment(ChartSegment segment) {
final RangeColumnSegment rangeColumnSegment = segment as RangeColumnSegment;
final SegmentProperties segmentProperties =
SegmentHelper.getSegmentProperties(rangeColumnSegment);
segmentProperties.color = _segmentSeriesDetails.seriesColor;
segmentProperties.strokeColor = segmentProperties.series.borderColor;
segmentProperties.strokeWidth = segmentProperties.series.borderWidth;
rangeColumnSegment.strokePaint = rangeColumnSegment.getStrokePaint();
rangeColumnSegment.fillPaint = rangeColumnSegment.getFillPaint();
segmentProperties.trackerFillPaint =
segmentProperties.getTrackerFillPaint();
segmentProperties.trackerStrokePaint =
segmentProperties.getTrackerStrokePaint();
}