Skip to main content
100%

Circles on a map

✓ Published0🌍 Public
SSagar Malviya
Last edited Jun 3, 2019
Created on Jun 3, 2019
Forked from Choropleth map

This visualization displays a world map with circles sized by population estimates for 2018, using a square-root scale to encode magnitude. Countries without data appear in red, while those with values are green. The code uses `d3.geoNaturalEarth1` for projection, `d3.geoPath` to render country boundaries, and `d3.geoCentroid` to position circles. A size legend and a color legend are generated with custom D3 functions, while zoom interaction is implemented via `d3.zoom`. Population data comes from a CSV of UN estimates, merged with TopoJSON world atlas geometry.

AI-generated description
MIT Licensed

Similar vizzes