Skip to main content
100%

World Map

✓ Published1🌍 Public
RRMartins11
Last edited May 4, 2021
Created on May 4, 2021

This example shows a world map rendered as an SVG using React and D3 v6. The map displays land masses in teal, with country borders drawn as interior lines, overlaid on graticules and a light sphere background. It loads geographic data from the world-atlas TopoJSON file, using `d3.json` to fetch the data and the TopoJSON `feature` and `mesh` functions to extract land and interior boundaries. The `d3.geoNaturalEarth1` projection and `d3.geoPath` generate the map paths, while the `BackgroundCircle` component draws a yellow circle behind the map.

AI-generated description

A World Map!

MIT Licensed

Similar vizzes