Skip to main content
100%

Circles on a Map

✓ Published1🌍 Public
Wwaqastufail
Last edited Mar 26, 2020
Created on Mar 26, 2020
Forked from Circles on a Map

This example visualizes population by country using scaled circles overlaid on a natural Earth projection map, with circle area proportional to each country’s 2018 population. Pan and zoom are enabled via d3.zoom, and hovering over a country reveals its exact population through a title tooltip. The map is rendered as SVG using d3.geoPath and topojson, while a d3.scaleSqrt maps population values to circle radii. A size legend generated with custom d3 code displays population ticks, and the data is loaded from a CSV and a TopoJSON world atlas file.

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