Skip to main content
100%

d3 World Map

✓ Published0🌍 Public
NNoah Weinberg
Last edited Sep 29, 2020
Created on Sep 28, 2020
Forked from HTML Starter

This visualization displays a world map using an orthographic projection, with countries rendered as light green polygons that highlight orange on hover. The code loads geographic data from the world-atlas package via TopoJSON and joins it with country names from a TSV file. Using d3.geoPath and d3.geoOrthographic, it draws the globe’s sphere and country boundaries as SVG paths, with tooltips showing each nation’s name via appended title elements. The implementation relies on d3.v5, topojson-client, and a React-friendly structure with Promise.all for asynchronous data loading.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes