Circles on a Map
This visualization displays population estimates by country for 2020 on a natural Earth projection map. Scaled circles positioned at each country’s centroid encode population magnitude, while a size legend and color legend provide reference. Users can pan and zoom via d3.zoom, and hovering over countries reveals tooltips with region names and formatted population values. The code uses d3.geoPath for map rendering, d3.scaleSqrt for circle sizing, and TopoJSON from the Visionscarto World Atlas, with data loaded from a CSV via d3.csv.
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.