customizeSegment method
Changes the series color, border color, and border width.
Implementation
@override
void customizeSegment(ChartSegment segment) {
final WaterfallSegment waterfallSegment = segment as WaterfallSegment;
waterfallSegment._color = segment._seriesRenderer._seriesColor;
waterfallSegment._negativePointsColor =
_waterfallSeries.negativePointsColor;
waterfallSegment._intermediateSumColor =
_waterfallSeries.intermediateSumColor;
waterfallSegment._totalSumColor = _waterfallSeries.totalSumColor;
waterfallSegment._strokeColor = segment._series.borderColor;
waterfallSegment._strokeWidth = segment._series.borderWidth;
waterfallSegment.strokePaint = waterfallSegment.getStrokePaint();
waterfallSegment.fillPaint = waterfallSegment.getFillPaint();
waterfallSegment.connectorLineStrokePaint =
waterfallSegment._getConnectorLineStrokePaint();
}