Skip to main content
100%

Circles on a Map

✓ Published0🌍 Public
JJuyeonee
Last edited Aug 12, 2021
Created on Aug 12, 2021
Forked from Choropleth Map

This visualization shows world population data from the UN Population Estimates 2017 medium variant, with each country colored green or red based on population presence and scaled circles representing 2018 population values. The map uses D3’s geoNaturalEarth1 projection with geoPath to render countries, and geoCentroid to position circles at country centers. Circle sizes are determined by a d3.scaleSqrt radius scale, while a color legend is generated using custom update patterns. The visualization supports zooming via d3.zoom and includes hover highlighting on countries. Data is loaded and processed from CSV and TopoJSON sources using d3.csv and topojson.feature.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes