Colors and Shading

These properties and methods control the color and shading of objects in a graph:

When you select a data point, you can change its color as described above, except that if ExactColorByHeight is false, the graphing engine changes the color of the appropriate spectral legend marker's value instead of the color for the exact data value.

Example:

setExactColorByHeight(false);

When you use data ranges from 23 to 57, the gradient goes from blue (20) to red (60). There are spectral markers at 20, 25, 30, ...60. When you click on marker 20 and change it to black, the colors are interpolated from black (20) to red (60). When you click on data point 31 and change its color to green, a new pin with the color green is added at 0.25 (31 is colored as if it were 30 and 30 is 25% of the way from 20 to 60). Now the colors are interpolated as follows: black (20) to green (30); green (30) to red (60).

setExactColorByHeight(true);

When the user clicks on data point 48 and changes its color to yellow, a new pin is added at 0.7 (48 is 70% between 20 and 60) with the color yellow. Now the colors are interpolated as follows: black (20) to green (30); green (30) to yellow (48); yellow (48) to red (60).

You can use the following properties and methods to control the display of shadows in a graph.


WebFOCUS