Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Aaxliao
Last edited Jul 20, 2019
Created on Jul 20, 2019

This example displays a world map using a natural Earth projection, rendering countries as green filled paths with subtle black borders on a dark blue sphere. It fetches geographic data from the world-atlas TopoJSON file via `json()`, converts it to GeoJSON using `feature()`, and draws the map with D3’s `geoPath` and `geoNaturalEarth1`. A single SVG element hosts all paths, loaded asynchronously and appended when the data resolves.

AI-generated description
MIT Licensed

Similar vizzes