getYMax2 method
Returns the maximum y-value for the specified axis.
@param axis @return
Implementation
double? getYMax2(AxisDependency axis) {
if (axis == AxisDependency.left) {
if (_leftAxisMax == -double.infinity) {
return _rightAxisMax;
} else {
return _leftAxisMax;
}
} else {
if (_rightAxisMax == -double.infinity) {
return _leftAxisMax;
} else {
return _rightAxisMax;
}
}
}