add d3-book chapter 7 demo code