May 2019
Beginner to intermediate
650 pages
14h 50m
English
D3 supports two different types of tree: the tidy tree, which renders a compact view of the algorithm by placing nodes of the same level side-by-side; and the cluster or dendogram, which places all the leaves at the same level. The following diagram illustrates both tree types rendering the same data:

A tidy tree layout function is created with the d3.tree() generator function. A dendogram is created with d3.cluster(). In a tree layout, nodes of the same depth are placed side-by-side. In a cluster layout, all leaves are rendered at the last level. Tree layout functions receive ...
Read now
Unlock full access