Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Kkdmonroe
Last edited Jan 14, 2021
Created on Nov 28, 2020

This example visualizes world countries on a natural Earth projection, filling landmasses in green against a blue ocean sphere. The code loads geographic data from the world-atlas TopoJSON file, converts it to GeoJSON features using topojson’s `feature` function, and renders each country as a SVG path via `d3.geoPath` with `d3.geoNaturalEarth1`. Styling is applied through CSS classes for the sphere and country fills, with the map auto-sized into a 960×500 viewport.

AI-generated description
MIT Licensed

Similar vizzes