Platforms to show: All Mac Windows Linux Cross-Platform

Back to CDBaseBoxLayerMBS class.

CDBaseBoxLayerMBS.setDataGap(gap 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 symbol width by specifying the gap ratio between adjacent symbols.

ParameterDefaultDescription
gap(Mandatory)The gap between two adjacent symbols as the portion of the space between the midpoints of the elements. The gap must be in the range 0 - 1. A value of 0 (the default) means there is no gap between two adjacent symbols.

CDBaseBoxLayerMBS.setDataWidth(width 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 symbol width by specifying the pixel width of the symbols.

ParameterDefaultDescription
width(Mandatory)The width of the symbols in pixels.

CDBaseBoxLayerMBS.setMinImageMapSize(size as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the minimum height (or width if the x-axis and y-axis are swapped with CDXYChartMBS.swapXY) of the hot spots defined by the image map.

By default, the hot spots defined by image map exactly cover the bars. For very short bars, the hot spots may be very small, and it may become difficult to move the mouse over the hot spots.
This method ensures the hot spots are at least of certain size, even if the bars are shorter. The default is 5 pixels.

Arguments:
ArgumentDefaultDescription
size(Mandatory)The minimum height (or width if the x-axis and y-axis are swapped with CDXYChartMBS.swapXY) of the hot spots defined by the image map.

CDBaseBoxLayerMBS.setRoundedCorners(r1 as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Configures rounded corners for the boxes.

This method currently is only supported by the BoxWhiskerLayer.

A box has 4 corners, two of them are at "box-top", and two of them are at "box-bottom". Note that "box-top" and "bottom-bottom" refer to the sides of the box representing the boxTop and boxBottom parameters in CDXYChartMBS.addBoxWhiskerLayer or CDXYChartMBS.addBoxLayer. Note that they are not necessarily the geometric top or bottom of the box. For example, if the y-axis is reversed (such as configured using CDAxisMBS.setReverse), the top and bottom side may be reversed. For horizontal boxes (with CDXYChartMBS.swapXY in effect), the box-top and box-bottom sides may actually be the right and left sides.

Of the 2 box-top corners, one of them is at the negative x direction while the other is at the positive x direction. The same applies to the box-bottom corners.

This method accepts 0, 1, 2 or 4 radius values. The usage of these values depend how many values are provided as follows.

Values ProvidedDescription
0The radii of all the box corners are automatically determined.
1The radii of all the box corners are set to the specified value.
2The radii of the box-top corners are set to the first value. The radii of the box-bottom corners are set to the second value.
4The radius of the box-top corner at the negative x direction is set to the first value. The radius of the box-top corner at the positive x direction is set to the second value. The radius of the box-bottom corner at the negative x direction is set to the third value. The radius of the box-bottom corner at the positive x direction is set to the fourth value.

ArgumentDefaultDescription
r1-0x7fffffffThe first radius. See description above on how this radius value is used.
r2-0x7fffffffThe second radius. See description above on how this radius value is used.
r3-0x7fffffffThe third radius. See description above on how this radius value is used.
r4-0x7fffffffThe fourth radius. See description above on how this radius value is used.

See also:

CDBaseBoxLayerMBS.setRoundedCorners(r1 as Integer, r2 as Integer, r3 as Integer = -2147483647, r4 as Integer = -2147483647)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Configures rounded corners for the boxes.

This method currently is only supported by the BoxWhiskerLayer.

A box has 4 corners, two of them are at "box-top", and two of them are at "box-bottom". Note that "box-top" and "bottom-bottom" refer to the sides of the box representing the boxTop and boxBottom parameters in CDXYChartMBS.addBoxWhiskerLayer or CDXYChartMBS.addBoxLayer. Note that they are not necessarily the geometric top or bottom of the box. For example, if the y-axis is reversed (such as configured using CDAxisMBS.setReverse), the top and bottom side may be reversed. For horizontal boxes (with CDXYChartMBS.swapXY in effect), the box-top and box-bottom sides may actually be the right and left sides.

Of the 2 box-top corners, one of them is at the negative x direction while the other is at the positive x direction. The same applies to the box-bottom corners.

This method accepts 0, 1, 2 or 4 radius values. The usage of these values depend how many values are provided as follows.

Values ProvidedDescription
0The radii of all the box corners are automatically determined.
1The radii of all the box corners are set to the specified value.
2The radii of the box-top corners are set to the first value. The radii of the box-bottom corners are set to the second value.
4The radius of the box-top corner at the negative x direction is set to the first value. The radius of the box-top corner at the positive x direction is set to the second value. The radius of the box-bottom corner at the negative x direction is set to the third value. The radius of the box-bottom corner at the positive x direction is set to the fourth value.

ArgumentDefaultDescription
r1-0x7fffffffThe first radius. See description above on how this radius value is used.
r2-0x7fffffffThe second radius. See description above on how this radius value is used.
r3-0x7fffffffThe third radius. See description above on how this radius value is used.
r4-0x7fffffffThe fourth radius. See description above on how this radius value is used.

See also:

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


The biggest plugin in space...