ChartDirector 5.1 (PHP Edition)

BoxWhiskerLayer.setBoxColors


Usage

setBoxColors(colors [, names ])

Description

Sets the colors for all boxes.

The method will set the BoxWhiskerLayer into multi-color mode. The colors of each box will be obtained from the given colors array. If there are insufficient colors in the array, the remaining boxes will be auto-colored.

If the names argument is given, the names will appear in the legend box if one is configured for the chart.

Arguments

ArgumentDefaultDescription
colors(Mandatory)An array of colors to be used as the color of the boxes.
names[Empty_Array]An array of names to be used in the legend box, if one is configured for the chart.

Return Value

None