Skip to main content
100%

Paint by Numbers II

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Apr 1, 2014

This interactive map of U.S. counties lets users paint each county with one of nine colors, with selections shared via a URL hash. Dragging across the map assigns colors, while clicking the legend or pressing number keys switches the active color. Built with D3 v3 and TopoJSON, the visualization uses `d3.geo.albersUsa` for projection, `d3.behavior.drag` for painting, and merges colored counties into SVG paths via `d3.geo.path`. County boundaries are rendered as a mesh, with a background stroke and interactive foreground paths.

AI-generated description

Click and drag to paint! Click on the colors or use the number keys to change colors. Copy-and-paste the address bar to share this map with others.

gpl-3.0 Licensed

Similar vizzes