Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
NNita
Last edited Nov 24, 2020
Created on Nov 24, 2020

This example displays a world map rendered as light green countries against a dark blue background using an SVG projection. It loads geographic data from the `world-map` package via TopoJSON, then uses D3’s `geoEquirectangular` projection and `geoPath` to draw each country’s borders. The code relies on D3 v5 selections and the TopoJSON `feature` method to convert topology into GeoJSON. Paths are styled with a faint black stroke and two-pixel width.

AI-generated description
MIT Licensed

Similar vizzes