pub enum RampHint {
Sequential,
Diverging,
Banded {
criterion: &'static str,
},
Categorical {
items: Vec<CategoryItem>,
},
}Expand description
How a variable’s values are meaningfully mapped to a colour scale (spec §6.1).
The only presentation vocabulary this layer contributes, and it is a shape statement, never a colour: an application chooses palettes, band edges, and legend styling; the engine says only which shape is truthful for the data.
Variants§
Sequential
Magnitude on a continuous low→high scale.
Diverging
Signed values around a meaningful zero (e.g. flow direction).
Banded
Values classed against a criterion’s threshold bands (spec §7).
The criterion is named rather than left to the application to work out: a valuation holds several criteria, and matching them to variables by quantity is a guess — two criteria can share one, and two engines can publish a variable of the same name meaning different things. Guessing produced a drainage map offered a threshold scale annotated with water-distribution numbers.
Fields
Categorical
A closed set of discrete states, with engine-authored items.
Fields
items: Vec<CategoryItem>