Skip to main content
100%

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

✓ Published0🌍 Public
SSnapika
Last edited Apr 3, 2022
Created on Apr 3, 2022

This example displays a world map with countries rendered as light green landmasses against a blue spherical background. The visualization uses a natural Earth projection to transform geographic coordinates into a flat SVG canvas. The code leverages D3.js v5 with `d3.geoPath` and `d3.geoNaturalEarth1` for projecting and drawing the map. Country boundaries are stroked in black with low opacity, while the data comes from the `world-atlas` package’s 110m resolution GeoJSON, loaded via `d3.json`. The rendering is entirely SVG-based with styling defined in CSS.

AI-generated description
MIT Licensed

Similar vizzes