Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
RRich Werden
Last edited Feb 25, 2020
Created on Feb 25, 2020

This example shows a world map using a natural Earth projection, with countries filled in light green and oceans in blue, all rendered as SVG paths. It loads geographic data from the World Atlas TopoJSON dataset via `json()`, then converts the TopoJSON features into GeoJSON using the TopoJSON `feature()` function. The map is drawn with D3’s `geoPath` and `geoNaturalEarth1` projection, and styled with CSS classes for the sphere and countries.

AI-generated description
MIT Licensed

Similar vizzes