Members
Constants
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).
Sample Graphs
See Also
Developer's Guide
API
- tilingStrategy
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'].
Sample Graphs
See Also
Developer's Guide
API
- tilingStrategy, aspectRatio
Static Methods
Converts the given argument to an enum constant of this enum type.
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.
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.