This code demonstrates how to draw circles on multiple SVGs using d3.js and highlight them by dragging the mouse to draw an enclosing shape.
This is a simplified version of the code used for the Massachusetts special Senate election results on The Huffington Post.