Open Fil opened 2 years ago
Is this interpretable for a categorical scale too?
I assume it'd work for an ordinal scale, but what does "high" vs. "low" mean for a categorical one?
Good question! (for now it's only designed for continuous scales, and implemented in just one class of them).
thinking out loud:
in between 🤯 hadn't thought of that one.
scale.low and scale.high define what to do with values higher or lower than the bounds of the domain. If undefined, we do the usual (ie. interpolate or clamp).
demo https://observablehq.com/@d3/scale-high-low-258