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
RRich Werden
Last edited Feb 25, 2020
Created on Feb 25, 2020

This example shows a world map using a natural Earth projection, with countries filled in light green and oceans in blue, all rendered as SVG paths. It loads geographic data from the World Atlas TopoJSON dataset via `json()`, then converts the TopoJSON features into GeoJSON using the TopoJSON `feature()` function. The map is drawn with D3’s `geoPath` and `geoNaturalEarth1` projection, and styled with CSS classes for the sphere and countries.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed