🌍 Public
Viewing a saved revision (read-only)
0e92bbb158174db0bdd7322386fdafb2
Fork of Cheap tricks for interactions
This example shows a world map rendered in SVG using D3.js v5. Countries are drawn with `d3.geoPath` and a `geoNaturalEarth1` projection, using TopoJSON data from the world-atlas package. The map supports pan and zoom via `d3.zoom`. Hovering over a country changes its fill color and displays the country name in a tooltip, which is generated from a TSV file using `d3.tsv`. The visualization demonstrates simple, lightweight interactions built entirely with D3's declarative SVG and data-binding APIs.
AI-generated description