Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
JJefferson Abreu
Last edited Jul 25, 2019
Created on Jul 24, 2019

This example renders a world map showing country boundaries as light green filled paths on a steel blue sphere, using a geographic equal Earth projection. The map is drawn entirely as SVG with D3 v5 and TopoJSON, loading the world-atlas 110m dataset from unpkg. The code defines a path generator via d3.geoPath and d3.geoEqualEarth, appends a spherical outline, then converts the TopoJSON topology to GeoJSON features using topojson.feature before binding them to path elements.

AI-generated description
MIT Licensed

Similar vizzes