This is the code for Chapter 2, Figure 27 from D3.js in Action demonstrating D3's .exit() behavior that removes elements for which there are not corresponding datapoints in the selection's bound data array.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js