Make a Map with D3
✓ Published1🌍 Public
This example shows global country boundaries using D3’s geoNaturalEarth1 projection, with a dark blue sphere background and green landmasses. It loads world-atlas TopoJSON data, converts it to GeoJSON via topojson.feature, and renders the paths with d3.geoPath and d3.select. The visualization includes commented alternatives for geoMercator, geoOrthographic, geoStereographic, and geoEquirectangular projections, demonstrating how the same code adapts to different map projections.
AI-generated descriptionD3 course follow along.
MIT Licensed