ChartDirector 5.1 (PHP Edition)

ColorAxis.getColor


Usage

getColor(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.