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 StackedColumn100Segment<T, D> stackedColumn100Segment =
      segment as StackedColumn100Segment<T, D>;
  updateSegmentColor(stackedColumn100Segment, borderColor, borderWidth);
  updateSegmentGradient(stackedColumn100Segment,
      gradientBounds: stackedColumn100Segment.segmentRect?.outerRect,
      gradient: gradient,
      borderGradient: borderGradient);
}