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