Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js

Public visualization

Viewing a saved revision (read-only)

ae7ac83e8b434b898cc0d4b56cd9cfec

Let's make a map with D3.js

0 stars1🌍 Public
BB Sundaresan
Last edited Jul 13, 2020
Created on Jul 11, 2020

This example renders a world map using D3.js and the Natural Earth projection via `d3.geoNaturalEarth1`. It constructs an SVG with a blue sphere background and green country paths using `d3.geoPath` and `topojson.feature`. The map is built from the world-atlas countries-110m JSON dataset, and the code handles path generation for both the sphere and country shapes.

AI-generated description

A bare minimum HTML page.

See also React Starter.