ChartDirector 7.0 (Java Edition)

ColorAxis.getColor


Usage

public int getColor(double z)

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.