This is the code for Chapter 4, Figure 9 from D3.js in Action demonstrating how to offset d3.svg.axis() elements by changing the axis settings.