Is there a way to access the range of values associated with each color of a color mapper?
For example with a LinearColorMapper, we give a palette and a high/low values. Can I retrieve the range of values associated with each color without having to do the mapping on the side myself?
No mapping like that exists. The linear mappers scale the data between high and low and use the result to index into the palette, and even that only on the JavaScript side. It would be possible to create a mapper that had more flexible binning via an explicitly defined mapping, but for now you'd have to make a custom extension to do it:
On Mar 6, 2018, at 12:35, Sébastien Roche <[email protected]> wrote:
Is there a way to access the range of values associated with each color of a color mapper?
For example with a LinearColorMapper, we give a palette and a high/low values. Can I retrieve the range of values associated with each color without having to do the mapping on the side myself?