This is the code for Chapter 3, Figure 6 from D3.js in Action demonstrating D3 transition behavior on enter and on update.