add d3-book chapter 8 demo code