ordinal
A scale from ordered categories to colors along a colormap.
const rank = ordinal({ domain: ["Low", "Middle", "High"], colormap: "Viridis" });
<Points fill="rank" fillScale={rank} />Usage
Unlike an unordered categorical palette, an ordinal colormap communicates rank. Supply the category order explicitly; category values are not numerically interpolated.