block by bycoffe 5871227

Highlighting with point-in-polygon

Full Screen

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.

index.html

main.js