setVisibleXRangeMaximum method

void setVisibleXRangeMaximum(
  1. double maxXRange
)

Sets the size of the area (range on the x-axis) that should be maximum visible at once (no further zooming out allowed). If this is e.g. set to 10, no more than a range of 10 on the x-axis can be viewed at once without scrolling.

@param maxXRange The maximum visible range of x-values.

Implementation

void setVisibleXRangeMaximum(double maxXRange) {
  double xScale = xAxis!.axisRange / (maxXRange);
  viewPortHandler!.setMinimumScaleX(xScale);
}