ChartDirector Ver 3.1 (PHP Edition Edition)

Layer.yZoneColor


Usage

yZoneColor(threshold, belowColor, aboveColor[, mainAxis ])

Description

Create a y-zone color. A y-zone will change from one color to another depending on a threshold value on the y-axis.

For example, if a y-zone color is used as the fill color in an area layer, the area will switch from one color to another when its value is higher than a certain value on the y-axis.

The two colors used in a y-zone color can be other dynamic colors. You may create y-zone colors with more than 2 zones by cascading multiple y-zone colors.

Arguments

ArgumentDefaultDescription
threshold(Mandatory)The y value serving as the threshold for switching between two colors.
belowColor(Mandatory)The color to use when the y-axis value of the pixel is smaller than the threshold.
aboveColor(Mandatory)The color to use when the y-axis value of the pixel is greater than the threshold.
mainAxistrue (non-zero)A true (non-zero) value means the primary y-axis is used to define the y-zone color. A false (zero) value means the secondary y-axis is used to define the y-zone color.

Return Value

None