This is the code for Chapter 5, Figure 10 from D3.js in Action which create a circle pack diagram using d3.layout.pack().