This is the code for Chapter 12, Figure 2 from D3.js in Action which requires a touch interface (or emulator) to see any effect. This example uses d3.touches() to list the XY coordinates of the touch events.