Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js!

Public visualization

Let's make a map with D3.js!

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed