ChartDirector 7.1 (.NET Edition)

ColorAxis.getColor


Usage

[C#]public int getColor(double z);
[VB]Public Function getColor(z As Double) As Integer

Description

Gets the color given the data value.

Note: You must call XYChart.layoutAxes, BaseChart.layout or XYChart.packPlotArea first before calling this method. ChartDirector needs to perform auto-scaling and layout the axis before it can compute the color.

Arguments

ArgumentDefaultDescription
z(Mandatory)The data value.

Return Value

The color that corresponds to the data value.