calculateSegmentPoints method
Calculates the rendering bounds of a segment.
Implementation
@override
void calculateSegmentPoints() {
_boxAndWhiskerSeries = _series as BoxAndWhiskerSeries<dynamic, dynamic>;
_x = _max = double.nan;
_isTransposed = _seriesRenderer._chartState!._requireInvertedAxis;
_minPoint = _currentPoint!.minimumPoint!;
_maxPoint = _currentPoint!.maximumPoint!;
_centerMinPoint = _currentPoint!.centerMinimumPoint!;
_centerMaxPoint = _currentPoint!.centerMaximumPoint!;
_x = _minPoint.x;
_min = _minPoint.y;
_max = _maxPoint.y;
_centerMax = _centerMaxPoint.x;
_maxY = _centerMaxPoint.y;
_centerMin = _centerMinPoint.x;
_minY = _centerMinPoint.y;
_lowerX = _currentPoint!.lowerQuartilePoint!.x;
_lowerY = _currentPoint!.lowerQuartilePoint!.y;
_upperX = _currentPoint!.upperQuartilePoint!.x;
_upperY = _currentPoint!.upperQuartilePoint!.y;
_medianX = _currentPoint!.medianPoint!.x;
_medianY = _currentPoint!.medianPoint!.y;
if (_lowerY > _upperY) {
_centersY = _upperY + ((_upperY - _lowerY).abs() / 2);
} else {
_centersY = _lowerY + ((_lowerY - _upperY).abs() / 2);
}
_topRectY = _centersY - ((_centersY - _upperY).abs() * 1);
_bottomRectY = _centersY + ((_centersY - _lowerY).abs() * 1);
}