Red Dots On A Map
This visualization renders a map of the United States covered in red dots, with the number of dots dynamically displayed in the corner. It uses Poisson-disc sampling to distribute non-overlapping dots across landmasses, refined by a point-in-polygon test to ensure dots remain within state boundaries. The code relies on d3.geo.albersUsa for projection, d3.geo.path for drawing geographic features, and a Canvas context for rendering. The user can adjust the dot radius using a mousewheel or the dat.GUI slider, which triggers redraws.
AI-generated descriptionCreated by Christopher Manning
Summary
Red dots on a map; it really makes you think. Uses Poisson-Disc Sampling and a point in polygon test to spread out dots on this map of the United States.
This We Put 700 Red Dots On A Map article about hackneyed geographic visualizations inspired this work.
Controls
- Use the mousewheel to adjust the red dot radius
References
forked from <a href='http://bl.ocks.org/christophermanning/'>christophermanning</a>'s block: <a href='http://bl.ocks.org/christophermanning/ac4c3265452529a20279'>Red Dots On A Map</a>