customizeSegment method
Changes the series color, border color, and border width.
Implementation
@override
void customizeSegment(ChartSegment segment) {
final BubbleSegment bubbleSegment = segment as BubbleSegment;
final SegmentProperties segmentProperties =
SegmentHelper.getSegmentProperties(bubbleSegment);
segmentProperties.color = _segmentSeriesDetails.seriesColor;
segmentProperties.strokeColor = segmentProperties.series.borderColor; // ??
// bubbleSegment.segmentProperties.seriesRenderer.seriesRendererDetails.seriesColor;
segmentProperties.strokeWidth = segmentProperties.series.borderWidth;
bubbleSegment.strokePaint = bubbleSegment.getStrokePaint();
bubbleSegment.fillPaint = bubbleSegment.getFillPaint();
}