calcStackSize method

void calcStackSize(
  1. List<BarEntry> yVals
)

calculates the maximum stacksize that occurs in the Entries array of this DataSet

Implementation

void calcStackSize(List<BarEntry> yVals) {
  for (int i = 0; i < yVals.length; i++) {
    List<double>? vals = yVals[i].yVals;

    if (vals != null && vals.length > _stackSize) _stackSize = vals.length;
  }
}