calculateSegmentPoints method
Calculates the rendering bounds of a segment.
Implementation
@override
void calculateSegmentPoints() {
_hiloSeries = _series as HiloSeries<dynamic, dynamic>;
_x = _high = _low = double.nan;
_lowPoint = _currentPoint!.lowPoint!;
_highPoint = _currentPoint!.highPoint!;
_isTransposed = _seriesRenderer._chartState!._requireInvertedAxis;
_x = _lowPoint.x;
_low = _lowPoint.y;
_high = _highPoint.y;
_showSameValue = _hiloSeries.showIndicationForSameValues &&
(!_isTransposed ? _low == _high : _lowPoint.x == _highPoint.x);
if (_showSameValue) {
if (_isTransposed) {
_x = _lowPoint.x = _lowPoint.x - 2;
_highPoint.x = _highPoint.x + 2;
} else {
_low = _lowPoint.y = _lowPoint.y - 2;
_high = _highPoint.y = _highPoint.y + 2;
}
}
}