Skip to main content
100%

Untitled

✓ Published0🌍 Public
RRoyCsuka
Last edited Nov 21, 2019
Created on Nov 19, 2019
Forked from HTML Starter

This example displays a world map colored by continent, with each landmass labeled at its geographic centroid. It uses a Natural Earth projection with a slight rotation, rendered as SVG paths. The code loads TopoJSON data, converts it to GeoJSON features via `topojson.feature`, and projects centroids using `d3.geoCentroid` and `d3.geoPath`. Continent colors are assigned from a hardcoded array, and labels are appended as SVG `<text>` elements. The visualization relies on d3.v4, topojson.v2, and d3-geo-projection.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes