Skip to content

Instantly share code, notes, and snippets.

@sim0nf
sim0nf / README.md
Created August 10, 2012 20:42 — forked from mbostock/.block
Dynamic Node-Link Tree (D3)

This is an example of building a tree layout using the Reingold-Tilford "tidy" algorithm, as described in "Tidier Drawings of Trees". As each new element is added to the graph, it animates in, starting at the previous position of the parent node. Thus, the existing nodes and the new node transition smoothly to their new positions. The animation stops when 500 nodes have been added to the tree.

Built with D3.js.