Skip to main content
100%

Paint by Numbers

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

A coloring-book-style map of the United States lets visitors paint individual states by clicking or dragging, with a palette of nine colors selectable via mouse or number keys. The visualization uses d3.geo.albersUsa and d3.geo.path to render state boundaries from TopoJSON, while d3.behavior.drag manages interactive painting. Merged regions are drawn as SVG paths, and the current color assignments are encoded in the URL hash for sharing.

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. There’s a counties version, too.

gpl-3.0 Licensed

Similar vizzes