quantiles method
Returns an list of n + 1 quantiles.
final color = ScaleSequentialQuantile(…)
..domain = penguins.map((d) => d["body_mass_g"])
..interpolator = interpolateBlues;
color.quantiles(4); // [2700, 3550, 4050, 4750, 6300]
For example, if n = 4, returns an list of five numbers: the minimum value, the first quartile, the median, the third quartile, and the maximum.
Implementation
List<num?> quantiles(int n) {
return [for (var i = 0; i < n + 1; i++) quantile(_domain, i / n)];
}