Let's make a map
✓ Published0🌍 Public
This example displays a world map using the Natural Earth projection, with countries rendered as SVG paths and labeled according to their names from a TSV file. Users can pan and zoom the map via the d3.zoom behavior. The visualization loads geographic data from the world-atlas TopoJSON dataset, converts it to GeoJSON using topojson.feature, and projects it with d3.geoNaturalEarth1 and d3.geoPath. Country names are joined to numeric IDs via a reduce operation, and hover effects highlight individual nations.
AI-generated descriptionReact Starter code.
MIT Licensed