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<T, D> rangeColumnSegment =
      segment as RangeColumnSegment<T, D>;
  updateSegmentTrackerStyle(
      rangeColumnSegment, trackColor, trackBorderColor, trackBorderWidth);
  updateSegmentColor(rangeColumnSegment, borderColor, borderWidth);
  updateSegmentGradient(rangeColumnSegment,
      gradientBounds: rangeColumnSegment.segmentRect?.outerRect,
      gradient: gradient,
      borderGradient: borderGradient);
}