calcEntryCountIncludingStacks method
Calculates the total number of entries this DataSet represents, including stacks. All values belonging to a stack are calculated separately.
Implementation
void calcEntryCountIncludingStacks(List<BarEntry> yVals) {
_entryCountStacks = 0;
for (int i = 0; i < yVals.length; i++) {
List<double>? vals = yVals[i].yVals;
if (vals == null) {
_entryCountStacks++;
} else {
_entryCountStacks += vals.length;
}
}
}