Platforms to show: All Mac Windows Linux Cross-Platform

Back to CDBoxWhiskerLayerMBS class.

CDBoxWhiskerLayerMBS.setBoxColor(item as Integer, boxColor as color)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setBoxColor method, but uses color instead of integer data type for passing color values.

See also:

Some examples using this method:

CDBoxWhiskerLayerMBS.setBoxColor(item as Integer, boxColor as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the color for a single box.

ArgumentDefaultDescription
item(Mandatory)The index of the box to change color. The first box is 0, while the Nth box is N - 1.
boxColor(Mandatory)The color to use to fill the box.

See also:

CDBoxWhiskerLayerMBS.setBoxColors(colors() as color)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setBoxColors method, but uses color instead of integer data type for passing color values.

See also:

CDBoxWhiskerLayerMBS.setBoxColors(colors() as color, names() as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setBoxColors method, but uses color instead of integer data type for passing color values.

See also:

CDBoxWhiskerLayerMBS.setBoxColors(colors() as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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.
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.

See also:

CDBoxWhiskerLayerMBS.setBoxColors(colors() as Integer, names() as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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.
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.

See also:

CDBoxWhiskerLayerMBS.setWhiskerBrightness(whiskerBrightness as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the whisker colors as darken or brightened fill colors of the boxes for BoxWhiskerLayer in multi-color mode.

In multi-color mode, the boxes of a BoxWhiskerLayer can have different fill colors. Instead of specifying a single whisker color for all boxes, ChartDirector supports deriving the whisker colors by darkening or brightening the corresponding fill colors.
ArgumentDefaultDescription
whiskerBrightness(Mandatory)The brightness factor. A value less than 1 means darkening. A value larger than 1 means brightening. A zero value means black.

The items on this page are in the following plugins: MBS ChartDirector Plugin.


The biggest plugin in space...