markColor method
A row's color for a mark: its own field's, the mark's list's, or the mark's.
Implementation
Color markColor(GraphMarkSpec m, int index) {
if (m.colorField.isNotEmpty && index < count) {
if (rows[index][m.colorField] case final String s) return graphColor(s, m.color);
}
if (m.colors.isNotEmpty) return m.colors[index % m.colors.length];
return m.color;
}