Skip to main content
100%

Fork of Let's make a map with D3.js!

✓ Published0🌍 Public
Ffsajedi22
Last edited Mar 15, 2023
Created on Mar 15, 2023

This example displays a world map using a natural Earth projection, with countries filled in light green and oceans in blue. It renders geographic boundaries as SVG paths, generated from a world-atlas dataset loaded via D3’s `json` function. The code employs `d3.geoPath` with the `geoNaturalEarth1` projection and uses the `topojson` library’s `feature` method to extract country geometries from the TopoJSON data. A static sphere outline is drawn first, followed by each country path, with stroke opacity creating subtle border definition.

AI-generated description
MIT Licensed

Similar vizzes