Skip to main content
100%

Let's make a map with D3.js

✓ Published1🌍 Public
MMartin Christensen
Last edited Dec 30, 2019
Created on Dec 30, 2019
Forked from Hello VizHub

This example displays a world map with countries rendered as light green SVG paths on a blue sphere, using a natural Earth projection. The code loads geographic data from the world-atlas TopoJSON dataset and converts it to GeoJSON with topojson’s `feature` method. It builds the map with d3’s `geoPath` and `geoNaturalEarth1` projection, appending country paths and a sphere outline to the SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes