Skip to main content
100%

Circles on a Map

✓ Published0🌍 Public
KKarkG
Last edited Aug 10, 2020
Created on Aug 9, 2020
Forked from Choropleth Map

This example visualizes global population data on an interactive world map, with circular markers sized proportionally to each country’s 2018 population via a square-root scale. Hovering over a country reveals its exact population in a tooltip. The map uses d3.geoNaturalEarth1 and d3.geoPath for geographic projection and rendering, while d3.zoom enables pan and zoom. Circles are positioned using d3.geoCentroid, and data merges CSV population figures with TopoJSON world boundaries using topojson.feature, with legends built through custom colorLegend and sizeLegend modules.

AI-generated description
MIT Licensed

Similar vizzes