Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's make a map with D3.js!

Public visualization

Viewing a saved revision (read-only)

a562d622d36d48e8acc1726c9b005a32

Fork of Let's make a map with D3.js!

0 stars0🌍 Public
Rrajeshathakur
Last edited Apr 17, 2021
Created on Apr 17, 2021

This example displays a natural Earth projection of the world, with countries rendered as green SVG paths and oceans as a blue sphere. It uses D3 v5’s `geoNaturalEarth1` and `geoPath` to generate the projection, while TopoJSON’s `feature` extracts country boundaries from the world-atlas 110m dataset. The code loads geographic data asynchronously via `json`, then appends each country path to the SVG canvas.

AI-generated description