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 RangeColumnSegment rangeColumnSegment = segment as RangeColumnSegment;
  rangeColumnSegment._color = segment._seriesRenderer._seriesColor;
  rangeColumnSegment._strokeColor = segment._series.borderColor;
  rangeColumnSegment._strokeWidth = segment._series.borderWidth;
  rangeColumnSegment.strokePaint = rangeColumnSegment.getStrokePaint();
  rangeColumnSegment.fillPaint = rangeColumnSegment.getFillPaint();
  rangeColumnSegment._trackerFillPaint =
      rangeColumnSegment._getTrackerFillPaint();
  rangeColumnSegment._trackerStrokePaint =
      rangeColumnSegment._getTrackerStrokePaint();
}