ColorScale:map
methodColorScale:map(value: number | string) -> Color?Ramp scales: interpolated color at a numeric value, or nil while pending. Category scales: the category's color (a string registers first-seen; a number is a 0-based index).
-- A category scale takes a name, or a 0-based index into its list.
local ovens = datumhue.chart.scale.color_category({
categories = { "North", "South" },
colors = { color("#7fbbb3"), color("#e69875") },
})
print(ovens:map(1) == ovens:map("South")) --> true