calcMinMaxY method

void calcMinMaxY(
  1. double fromX,
  2. double toX
)

Calc minimum and maximum y-values over all DataSets. Tell DataSets to recalculate their min and max y-values, this is only needed for autoScaleMinMax.

@param fromX the x-value to start the calculation from @param toX the x-value to which the calculation should be performed

Implementation

void calcMinMaxY(double fromX, double toX) {
  for (T set in _dataSets) {
    set.calcMinMaxY(fromX, toX);
  }

  // apply the  data
  calcMinMax1();
}