customizeSegment method

  1. @override
void customizeSegment(
  1. ChartSegment segment
)
override

Changes the series color, border color, and border width.

Implementation

@override
void customizeSegment(ChartSegment segment) {
  final BubbleSegment bubbleSegment = segment as BubbleSegment;
  bubbleSegment._color = bubbleSegment._seriesRenderer._seriesColor;
  bubbleSegment._strokeColor = bubbleSegment._series.borderColor; // ??
  // bubbleSegment._seriesRenderer._seriesColor;
  bubbleSegment._strokeWidth = bubbleSegment._series.borderWidth;
  bubbleSegment.strokePaint = bubbleSegment.getStrokePaint();
  bubbleSegment.fillPaint = bubbleSegment.getFillPaint();
}