Open gewesp opened 9 months ago
Maybe I missed it in the docs, but there doesn't seem to be a way of retrieving the domain of a color scale.
More specifically, I'd like:
const scale = chroma.scale(['yellow', 'black']).domain([0,100]); assert(scale.newFunctionToGetMaxDomainValue() === 100);
Should be quite simple to add, no? We can prepare a PR if required.
Maybe I missed it in the docs, but there doesn't seem to be a way of retrieving the domain of a color scale.
More specifically, I'd like:
Should be quite simple to add, no? We can prepare a PR if required.