ChartDirector 7.1 (.NET Edition)

BoxWhiskerLayer.setBoxColors


Usage

[C#]public void setBoxColors(int[] colors [, string[] names ]);
[VB]Public Sub setBoxColors(colors As Integer() [, names As String() ])

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