This is the code for Chapter 5, Figure 5 from D3.js in Action showing a simple implementation of d3.layout.pie() with d3.svg.arc().