Skip to main content
100%

Circles on a map

✓ Published0🌍 Public
Sshanmango
Last edited Mar 5, 2020
Created on Mar 5, 2020
Forked from Circles on a map

This example displays a natural Earth projection world map with semi-transparent teal circles overlaid on each country, sized by 2018 population data from the UN. Country boundaries are drawn using `d3.geoPath` and TopoJSON, while missing population values appear as pink regions. A `d3.scaleSqrt` maps population to circle radius, and a custom legend shows the scale. The map supports pan and zoom via `d3.zoom`, with circle positioning computed from `d3.geoCentroid` and projected coordinates.

AI-generated description
MIT Licensed

Similar vizzes