Treemap topic

Treemap

Introduced by Ben Shneiderman in 1991, a treemap recursively subdivides area into rectangles according to each node’s associated value. D4’s treemap implementation supports an extensible tiling method: the default squarified method seeks to generate rectangles with a golden aspect ratio; this offers better readability and size estimation than slice-and-dice, which simply alternates between horizontal and vertical subdivision by depth.

Classes

Treemap<T> Treemap
A treemap recursively subdivides area into rectangles according to each node’s associated value.
Treemap<T> Treemap
A treemap recursively subdivides area into rectangles according to each node’s associated value.
Treemap<T> Treemap
A treemap recursively subdivides area into rectangles according to each node’s associated value.

Functions

treemapBinary<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Recursively partitions the specified node into an approximately-balanced binary tree, choosing horizontal partitioning for wide rectangles and vertical partitioning for tall rectangles.
treemapBinary<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Recursively partitions the specified node into an approximately-balanced binary tree, choosing horizontal partitioning for wide rectangles and vertical partitioning for tall rectangles.
treemapBinary<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Recursively partitions the specified node into an approximately-balanced binary tree, choosing horizontal partitioning for wide rectangles and vertical partitioning for tall rectangles.
treemapDice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Divides the rectangular area specified by x0, y0, x1, y1 horizontally according the value of each of the specified node’s children.
treemapDice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Divides the rectangular area specified by x0, y0, x1, y1 horizontally according the value of each of the specified node’s children.
treemapDice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Divides the rectangular area specified by x0, y0, x1, y1 horizontally according the value of each of the specified node’s children.
treemapResquarify<T>(HierarchyNode<T> parent, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Like treemapSquarify, except preserves the topology (node adjacencies) of the previous layout computed by treemapResquarify, if there is one and it used the same target aspect ratio. The golden ratio, φ = (1 + sqrt(5)) / 2, per Kong et al. is used.
treemapResquarify<T>(HierarchyNode<T> parent, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Like treemapSquarify, except preserves the topology (node adjacencies) of the previous layout computed by treemapResquarify, if there is one and it used the same target aspect ratio. The golden ratio, φ = (1 + sqrt(5)) / 2, per Kong et al. is used.
treemapResquarify<T>(HierarchyNode<T> parent, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Like treemapSquarify, except preserves the topology (node adjacencies) of the previous layout computed by treemapResquarify, if there is one and it used the same target aspect ratio. The golden ratio, φ = (1 + sqrt(5)) / 2, per Kong et al. is used.
treemapResquarifyRatio<T>(num ratio) → void Function(HierarchyNode<T>, num, num, num, num) Treemap Treemap tiling
Specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one.
treemapResquarifyRatio<T>(num ratio) → void Function(HierarchyNode<T>, num, num, num, num) Treemap Treemap tiling
Specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one.
treemapResquarifyRatio<T>(num ratio) → void Function(HierarchyNode<T>, num, num, num, num) Treemap Treemap tiling
Specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one.
treemapSlice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Divides the rectangular area specified by x0, y0, x1, y1 vertically according the value of each of the specified node’s children.
treemapSlice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Divides the rectangular area specified by x0, y0, x1, y1 vertically according the value of each of the specified node’s children.
treemapSlice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Divides the rectangular area specified by x0, y0, x1, y1 vertically according the value of each of the specified node’s children.
treemapSliceDice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
If the specified node has odd depth, delegates to treemapSlice; otherwise delegates to treemapDice.
treemapSliceDice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
If the specified node has odd depth, delegates to treemapSlice; otherwise delegates to treemapDice.
treemapSliceDice<T>(HierarchyNode<T> node, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
If the specified node has odd depth, delegates to treemapSlice; otherwise delegates to treemapDice.
treemapSquarify<T>(HierarchyNode<T> parent, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Implements the squarified treemap algorithm by Bruls et al., which seeks to produce rectangles of a given aspect ratio. The golden ratio, φ = (1 + sqrt(5)) / 2, per Kong et al. is used.
treemapSquarify<T>(HierarchyNode<T> parent, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Implements the squarified treemap algorithm by Bruls et al., which seeks to produce rectangles of a given aspect ratio. The golden ratio, φ = (1 + sqrt(5)) / 2, per Kong et al. is used.
treemapSquarify<T>(HierarchyNode<T> parent, num x0, num y0, num x1, num y1) → void Treemap Treemap tiling
Implements the squarified treemap algorithm by Bruls et al., which seeks to produce rectangles of a given aspect ratio. The golden ratio, φ = (1 + sqrt(5)) / 2, per Kong et al. is used.
treemapSquarifyRatio<T>(num ratio) → void Function(HierarchyNode<T>, num, num, num, num) Treemap Treemap tiling
Specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one.
treemapSquarifyRatio<T>(num ratio) → void Function(HierarchyNode<T>, num, num, num, num) Treemap Treemap tiling
Specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one.
treemapSquarifyRatio<T>(num ratio) → void Function(HierarchyNode<T>, num, num, num, num) Treemap Treemap tiling
Specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one.