Skip to main content
100%

Circles on the Map

✓ Published0🌍 Public
MMunTatt Yap
Last edited Aug 31, 2019
Created on Aug 22, 2019
Forked from Choropleth Map

This example displays a natural Earth projection world map where each country is filled with a light gray or pink color based on whether population data exists for 2020. Circles sized by population are placed at each country’s centroid using `geoCentroid` and scaled with `scaleSqrt`. The visualization uses `d3.geoPath` to render the map, `d3.zoom` for panning and zooming, and includes size and color legends built from reusable components. Data comes from UN population CSV files and TopoJSON world atlas geometry, processed with `topojson.feature`.

AI-generated description
MIT Licensed

Similar vizzes