E

TilingStrategy

Specifies the strategies for tiling nodes in a TreeMapLayout.

Members

No filters for this type

Constants

A tiling strategy that places the child nodes one after another inside the parent node.

Child nodes are either tiled vertically (slice), one on top of the other with the width equal to the parent's width. Or they are tiled horizontally (dice), one next to the other with the height equal to the parent's height. The tiling strategy alternates with the hierarchy levels, e.g., level 1 uses slice, level 2 uses dice, level 3 uses slice and so on.

This strategy keeps the ordering of the children defined by childNodeComparator stable. Either children are strictly ordered from left to right (dice) or from top to bottom (slice).

static

Sample Graphs

ShownSetting: Slice-and-Dice tree map with single hierarchy level - labels define the weights

See Also

Developer's Guide
API
tilingStrategy
A tiling strategy that uses the so-called 'squarify' algorithm.

It tries to generate nodes with a size close to a specified aspectRatio. This increases the readability of the tree maps.

The child ordering given by the comparison function defined as childNodeComparator is considered but it is not as predictable as for SLICE_AND_DICE. The order is not strictly from top to bottom or from left to right, but it might differ for different subsets of children. This is an inherent part of the squarified procedure.

The implementation follows the approach of Bruls et al. [Bruls, Mark; Huizing, Kees; van Wijk, Jarke J. (2000). 'Squarified treemaps'].

static

Sample Graphs

ShownSetting: Squarified tree map with single hierarchy level - labels define the weights

See Also

Developer's Guide
API
tilingStrategy, aspectRatio

Static Methods

Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static

Parameters

value: TilingStrategy
The value to convert to an enum constant.

Return Value

TilingStrategy
The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
static

Parameters

value: TilingStrategy
The numeric value of an enum constant.

Return Value

string
The name of the enum constant.

Throws

Exception ({ name: 'Error' })
If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.