Skip to main content
100%

Lets build a map with interactions!

✓ Published1🌍 Public
JJoseph Popoola
Last edited Feb 12, 2020
Created on Feb 12, 2020
Forked from Lets build a map

This example shows an interactive world map rendered with SVG, where each country displays its name as a tooltip on hover. The visualization uses D3 v5 to load TopoJSON and TSV data from the world-atlas package, projecting the geographic features with `d3.geoNaturalEarth1` and drawing paths via `d3.geoPath`. Zooming and panning are enabled through `d3.zoom` with an event listener that applies transforms to the map group. Countries are styled with CSS, turning grey on hover, while a fixed blue sphere represents the globe's background. React manages the page structure, though D3 handles all data binding and interactions.

AI-generated description
MIT Licensed

Similar vizzes