This is the code for Chapter 5, Figure 15 from D3.js in Action which creates a dendrogram using d3.layout.tree().