Platforms to show: All Mac Windows Linux Cross-Platform

Back to CDTreeMapChartMBS class.

CDTreeMapChartMBS.Constructor(width as integer = 640, height as integer = 480, bgColor as integer = &hffff0000, edgeColor as integer = &hff000000, raisedEffect as integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new TreeMapChart object.

ArgumentDefaultDescription
width(Mandatory)The width of the chart in pixels.
height(Mandatory)The height of the chart in pixels.
bgColorBackgroundColorThe background color of the chart.
edgeColorTransparentThe edge color of the chart.
raisedEffect0The 3D border width. For positive values, the border will appear raised. For negative values, the border will appear depressed. A zero value means the border will appear flat.

Returns the TreeMapChart object created.

See also:

CDTreeMapChartMBS.Constructor(width as integer, height as integer, bgColor as color, edgeColor as color, raisedEffect as integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new TreeMapChart object.

ArgumentDefaultDescription
width(Mandatory)The width of the chart in pixels.
height(Mandatory)The height of the chart in pixels.
bgColorBackgroundColorThe background color of the chart.
edgeColorTransparentThe edge color of the chart.
raisedEffect0The 3D border width. For positive values, the border will appear raised. For negative values, the border will appear depressed. A zero value means the border will appear flat.

Returns the TreeMapChart object created.

See also:

CDTreeMapChartMBS.getLevelPrototype(index as integer) as CDTreeMapNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the prototype node for the specified level.

A tree map starts with the root node. The root node contains level 1 child nodes. The level 1 child nodes can in turn contain level 2 child nodes, and so on.

A prototype node is a node that acts as the template for nodes at a certain level. For example, if the level 1 prototype node is configured to use a certain font for labels, all level 1 nodes will use that font as the default for labels.

ArgumentDefaultDescription
level(Mandatory)The node level to which the prototype node applies.

Returns TreeMapNode object representing the prototype node for the specified level.

Some examples using this method:

CDTreeMapChartMBS.setMapLevel(n as integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the node level used to generate the image map.

By default, the image map will be based on the deepest node level. For example, if the tree map has 2 levels of nodes, the image map will be based on the level 2 nodes. The setMapLevel method can be used to specify an alternative node level for the image map.

ArgumentDefaultDescription
level(Mandatory)The node level used to generate the image map.

CDTreeMapChartMBS.setPlotArea(x as integer, y as integer, width as integer, height as integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the position and size of the tree map plot area.

ArgumentDefaultDescription
x(Mandatory)The x coordinate of the top-left corner of the plot area.
y(Mandatory)The y coordinate of the top-left corner of the plot area.
width(Mandatory)The width of the plot area.
height(Mandatory)The height of the plot area.

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


The biggest plugin in space...