block by timelyportfolio 65884de225c20d4db6a9539d2771427b

Tidy Tree | Vis each* d3-hierarchy methods

Full Screen

forked from mbostock‘s block: Tidy Tree

I forked this simple tree example to demonstrate the very helpful set of each*

traversal methods in d3-hierarchy.


original readme.md

The d3.tree layout implements the Reingold-Tilford algorithm for efficient, tidy arrangement of layered nodes. The depth of nodes is computed by distance from the root, leading to a ragged appearance. Radial orientations are also supported. Implementation based on work by Jeff Heer and Jason Davies using Buchheim et al.’s linear-time variant of the Reingold-Tilford algorithm. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

Compare to this radial layout.

index.html

flare.csv