May 2019
Beginner to intermediate
650 pages
14h 50m
English
The d3.treemap() function generates a layout function for a treemap, which should be called with the root node of a hierarchical dataset. This will generate four properties for each node: x0, y0, y1, and y0, which represent the upper-left and lower-right corners of each rectangle.
The configuration methods are listed in the following table:
|
Function |
Description |
|
tile(tile) |
This function selects a tiling algorithm; see the Treemap tiling algorithms (figure) section. |
|
size(array) |
This function specifies the size of the chart. The values of all the x0, x1, y0, and y1 properties will be computed within these bounds. |
|
round(boolean) |
This function enables or disables rounding. The default is false. |
|
paddingInner( ... |
Read now
Unlock full access