Circles on a Map
✓ Published0🌍 Public
CCurran Kelleher
Last edited Nov 21, 2018
Created on Nov 21, 2018
This visualization uses a natural Earth projection to display country boundaries and population data. Circles sized with `d3.scaleSqrt` are positioned at each country's centroid using `d3.geoCentroid`, with circle area proportional to 2018 population estimates from the UN. Users can pan and zoom via `d3.zoom`, while hovering reveals a tooltip with country name and population. The code employs `d3.geoPath`, `topojson.feature`, and a custom size legend rendered in SVG.
AI-generated descriptionVisualizing 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.