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.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js