Platforms to show: All Mac Windows Linux Cross-Platform

Back to CDDiscreteHeatMapLayerMBS class.

CDDiscreteHeatMapLayerMBS.colorAxis as CDColorAxisMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the ColorAxis object representing the color axis (color legend).

CDDiscreteHeatMapLayerMBS.setCellGap(gap 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 gap between cells.

By default, the cells will touch each others with no gap in between.

ArgumentDefaultDescription
gap(Mandatory)The gap between cells in pixels.

Some examples using this method:

CDDiscreteHeatMapLayerMBS.setColorAxis(x as integer, y as integer, alignment as integer, length as integer, orientation as integer) as CDColorAxisMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the position, length and orientation of the color axis (color legend).

ArgumentDefaultDescription
x(Mandatory)The x-coordinate of the reference point used to position the color axis.
y(Mandatory)The y-coordinate of the reference point used to position the color axis.
alignment(Mandatory)The alignment of the color axis with respect to the reference point. For example, a value of TopLeft means the reference point is the top- left corner of the color axis. See Alignment Specification for supported alignment types.
length(Mandatory)The length of the color axis in pixels.
orientation(Mandatory)The orientation of the color axis. A value of Top/Bottom means the axis is horizontal, and the axis labels are at top/bottom side of the axis. A value of Left/Right means the axis is vertical, and the axis labels are at the left/right side of the axis.

CDDiscreteHeatMapLayerMBS.setDirectColoring(b as boolean = true)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets whether the data values are the colors themselves or if a CDColorAxisMBS will be used to map the data values to colors.

By default, a ColorAxis will be used to map the data values to colors. The setDirectColoring method allows directly specifying the colors of the cells without going through the CDColorAxisMBS.

ArgumentDefaultDescription
btrueA true value means the data values of the cells are their colors. A false value means a CDColorAxisMBS will be used to map the data values to colors.

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


The biggest plugin in space...