Skip to main content
100%

Let's make a map with D3.js

✓ Published0🌍 Public
Eexistentialist1888
Last edited Oct 22, 2020
Created on Oct 22, 2020

This example displays a world map using a natural Earth projection, with countries rendered as light green SVG paths and oceans shown as a blue sphere. The code loads geographic data from the world-atlas TopoJSON file, converts it to GeoJSON using the topojson `feature` function, and draws it with `d3.geoPath` and `d3.geoNaturalEarth1` from D3 v5. A single SVG element sized 960 by 500 hosts the visualization.

AI-generated description
MIT Licensed

Similar vizzes