Let's make a map with D3.js!
✓ Published0🌍 Public
This example displays a basic world map using a natural Earth projection, with dark gray landmasses on a near-black globe sphere. The map is rendered as SVG paths generated from TopoJSON country boundaries loaded from the world-atlas package. It uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to convert geographic features into visible shapes. The code fetches the dataset with `json`, processes it via TopoJSON’s `feature` method, and appends each country path to the SVG container.
AI-generated descriptionMIT Licensed