This is the code for Chapter 9, Figure 13 from D3.js in Action that continues to develop a data dashboard, adding graphical representation of datapoints to the brush to improve usability.
Modified http://d3js.org/colorbrewer.v1.min.js to a secure url
https://d3js.org/colorbrewer.v1.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js