Skip to main content
100%

Lets Make a map with D3.js

✓ Published0🌍 Public
Pprincit
Last edited Mar 27, 2020
Created on Mar 27, 2020

This example visualizes world countries as a static map using a natural Earth projection. The map renders countries in light green with subtle black strokes against a dark blue sphere, providing a clear geographic overview. The code uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to draw SVG paths, while TopoJSON’s `feature` extracts country boundaries from a world-atlas dataset. Country shapes are appended to an SVG container, with styling applied via CSS classes for sphere and country paths.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes