calcMinMax method

  1. @override
void calcMinMax()
override

Computes the yAxis range from the y values and the xAxis range from 0 to the entry count of the largest data set.

Implementation

@override
void calcMinMax() {
  super.calcMinMax();

  final data = this.data;
  if (data == null) return;

  yAxis.calculate(
    data.getYMin(AxisDependency.LEFT),
    data.getYMax(AxisDependency.LEFT),
  );
  xAxis.calculate(0, (data.maxEntryCountSet?.entryCount ?? 0).toDouble());
}