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 AreaSegment areaSegment = segment as AreaSegment;
  areaSegment._color = areaSegment._seriesRenderer._seriesColor;
  areaSegment._strokeColor = areaSegment._seriesRenderer._seriesColor;
  areaSegment._strokeWidth = areaSegment._series.width;
  areaSegment.strokePaint = areaSegment.getStrokePaint();
  areaSegment.fillPaint = areaSegment.getFillPaint();
}