calcMinMaxForDataSet method
Widens the overall ranges and the ranges of the set's axis to include the cached ranges of d.
Kotlin's protected calcMinMax(d: T) overload.
Implementation
@protected
void calcMinMaxForDataSet(T d) {
if (yMax < d.yMax) yMax = d.yMax;
if (yMin > d.yMin) yMin = d.yMin;
if (xMax < d.xMax) xMax = d.xMax;
if (xMin > d.xMin) xMin = d.xMin;
if (d.axisDependency == AxisDependency.LEFT) {
if (leftAxisMax < d.yMax) leftAxisMax = d.yMax;
if (leftAxisMin > d.yMin) leftAxisMin = d.yMin;
} else {
if (rightAxisMax < d.yMax) rightAxisMax = d.yMax;
if (rightAxisMin > d.yMin) rightAxisMin = d.yMin;
}
}