Skip to main content
100%

D3 World Map

✓ Published0🌍 Public
GGT-GillesTeuwen
Last edited Feb 9, 2023
Created on Feb 9, 2023
Forked from Hello HTML

This example displays a black-and-white world map using the Mercator projection, with country boundaries outlined in white. The map is rendered as an SVG using the D3.js v3 library, specifically employing `d3.geo.mercator()`, `d3.geo.path()`, and `d3.json()` to load and parse a `world-110m2.json` TopoJSON file. Country geometries are extracted from the TopoJSON topology via `topojson.object()` and drawn as SVG `path` elements. The visualization appears on a simple HTML page with a custom CSS rule defining the stroke and fill for each path.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes