maxStackedValue static method
Max stacked value across all categories.
Implementation
static double maxStackedValue(List<Series> series) {
if (series.isEmpty) return 100;
final stacked = computeStackedValues(series);
double max = double.negativeInfinity;
for (final row in stacked) {
for (final v in row) {
if (v > max) max = v;
}
}
return max.isFinite ? max : 100;
}