Untitled
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed