Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
PParker
Last edited Aug 24, 2020
Created on Aug 24, 2020

This example demonstrates how to create a world map using the Natural Earth dataset, rendering countries as light-green SVG paths on a blue sphere. The map uses a Natural Earth projection via `d3.geoNaturalEarth1` and converts the TopoJSON data into GeoJSON features using the `topojson` library before drawing each path with `d3.geoPath`. The visualization loads its data from the `world-atlas` package and relies on D3 version 5 for all selection, projection, and rendering operations.

AI-generated description
MIT Licensed

Similar vizzes