Skip to main content
100%

World Map React & D3 (codeAlong)

✓ Published2🌍 Public
Ttomahawk-jupiter
Last edited Jun 17, 2021
Created on Jun 6, 2021

This example displays a world map rendered as an SVG using React with D3’s geographic projections. It loads TopoJSON country boundaries from the world-atlas dataset, converts them to GeoJSON via `topojson.feature` and `topojson.mesh`, and draws landmasses, graticules, a sphere outline, and interior borders with `d3.geoNaturalEarth1` and `d3.geoPath`. The visualization uses a muted color palette and a Poppins font, demonstrating a clean, minimal cartographic style.

AI-generated description

Loading topojson and convert in memory to geojson, then render to make a map.

MIT Licensed

Similar vizzes