customizeSegment method

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

To customize each segments.

Implementation

@override
void customizeSegment(ChartSegment segment) {
  final HistogramSegment<T, D> histogramSegment =
      segment as HistogramSegment<T, D>;
  updateSegmentTrackerStyle(
      histogramSegment, trackColor, trackBorderColor, trackBorderWidth);
  updateSegmentColor(histogramSegment, borderColor, borderWidth);
  updateSegmentGradient(histogramSegment,
      gradientBounds: histogramSegment.segmentRect?.outerRect,
      gradient: gradient,
      borderGradient: borderGradient);
}