setAxisMaximum method

void setAxisMaximum(
  1. double max
)

Set a custom maximum value for this axis. If set, this value will not be calculated automatically depending on the provided data. Use resetAxisMaxValue() to undo this.

@param max

Implementation

void setAxisMaximum(double max) {
  _customAxisMax = true;
  _axisMaximum = max;
  this._axisRange = (max - _axisMinimum).abs();
}