Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Vvans01
Last edited May 18, 2020
Created on May 18, 2020

This example renders a world map using D3.js and TopoJSON, displaying country boundaries as SVG paths filled with steel blue. The map uses a Mercator projection via `d3.geoMercator` and `d3.geoPath` to convert geographic coordinates into screen paths. It loads world-atlas data from unpkg, extracting country features with `topojson.feature`. The React framework is not actively used in the visible code; instead, the script directly appends paths to an SVG element.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes