This is the code for Chapter 4, Figure 16 from D3.js in Action that draws a boxplot using numerous SVG elements appended to a g element and drawn based on the datapoint bound to that g element.