Hi Dean,
Unluckily, there is no API to obtain the color from a data value. The only method is to
compute the color with your own code. As the color scale are provided from your code, it
should have the necessary information to compute the colors from the values. Basically, for
a given value, your code would need to determine which two "color stops" contain the
value, then interpolate the colors. (Each of the RGB components of a color is just a number
from 0 to 255, and so they can be interpolated.)
Regards
Peter Kwan |