Skip to main content
100%

Make a World Map w/ D3.js

✓ Published1🌍 Public
Ppeterjchan
Last edited Apr 1, 2020
Created on Apr 1, 2020

This example shows a world map rendered as an SVG with countries filled in light green against a steel-blue sphere, using the Natural Earth projection. The code loads geographic data from the `world-atlas` package and builds the map with `d3.geoPath` and `d3.geoNaturalEarth1`. It employs `topojson.feature` to extract country boundaries, then appends each path to the SVG. The visualization relies on D3 v5 and the TopoJSON library, with styling defined in a separate stylesheet.

AI-generated description
MIT Licensed

Similar vizzes