Skip to main content
100%

Circles on a Map

✓ Published0🌍 Public
Jjesramyep1263
Last edited Apr 7, 2020
Created on Apr 7, 2020
Forked from Circles on a Map

A world map rendered with SVG paths uses proportional circles to visualize each country's 2018 population, with circle area scaled via `d3.scaleSqrt` and positioned by `d3.geoCentroid` under a `d3.geoNaturalEarth1` projection. The visualization supports pan and zoom through `d3.zoom`, and hovering over a country reveals its population in a tooltip. Missing-data countries appear in a lighter shade. A size legend built from `d3.scaleSqrt` ticks and a color legend accompany the map, with data loaded from a CSV and TopoJSON using `d3.csv` and `d3.json`.

AI-generated description

Visualizing population by country using circles on a map! The area of each circle corresponds to the population of the country it represents. You can also pan & zoom, and hover over each country for more information.

MIT Licensed

Similar vizzes