This is the code for Chapter 12, Figure 3 from D3.js in Action which requires a touch interface (or emulator) to see any effect. This example uses d3.touches() as a data source to create SVG circle elements at every touch location.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js