Skip to main content
100%

circles on map

✓ Published0🌍 Public
YYounes Mohamed ABDAT
Last edited Aug 14, 2023
Created on Aug 14, 2023
Forked from Circles on a Map

This visualization displays global population by country, with circle area scaled proportionally to 2018 population data from a CSV file. The map renders using d3.geoNaturalEarth1 projection and d3.geoPath with TopoJSON world atlas data, while hover tooltips reveal precise population figures. Interactive features include d3.zoom for panning and zooming, with circles positioned using geoCentroid. Population values drive a d3.scaleSqrt sizing scale, and a custom sizeLegend component visualizes the quantitative mapping alongside a color legend using d3.scaleOrdinal.

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