Skip to main content
100%

World Map

✓ Published0🌍 Public
Hhm0421
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from World Map

This example displays a world map rendered with D3’s `geoNaturalEarth1` projection and `geoPath`, drawing the sphere background and country boundaries. It loads world atlas TopoJSON data from the `world-atlas` package, converts it to GeoJSON with `topojson`’s `feature` function, and maps each country to an SVG path with a black fill and red stroke. The map is generated entirely client-side as SVG, using D3 v5.

AI-generated description
MIT Licensed

Similar vizzes