Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of D3 world map example with TopoJSON to GeoJSON and circular indicators

Public visualization

Fork of Fork of Fork of D3 world map example with TopoJSON to GeoJSON and circular indicators

0 stars0🌍 Public

This example visualizes a choropleth world map where each country’s fill color reflects its birth rate, using a linear blue scale. It also plots four city locations (Fairbanks, Boston, Philly, COS) as small circles, positioned via a Mercator projection with `d3.geoPath`. The map is built with D3 v4, loading GeoJSON country boundaries and CSV data via `d3.json` and `d3.csv`. The code uses `d3.geoMercator`, `d3.scaleLinear`, and `d3.extent` to drive the color mapping and projection.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed