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 |
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 |
Argument | Default | Description |
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 |
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 |
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 |
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.
Argument | Default | Description |
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 |
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.
Argument | Default | Description |
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 |
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.
Argument | Default | Description |
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.