All examples By author By category About

willzjc

d3 src tree

A visualization of files in the src directory of the d3 repository, based on Reingold-Tilford Tree.

Data Collection

Use git to clone a repository, then du to create a tsv with the directory contents.

git clone git://github.com/mbostock/d3.git
(echo -n 'size\tfile\n'; du -a d3) > d3.tsv

Burrow - recursive nesting

Branches may go to an arbitrary depth. burrow() creates this data structure from a JSON table. It's still getting tweaked, an example will go here when it's ready.

forked from syntagmatic's block: d3 src tree