Cheap trick for Interaction
✓ Published0🌍 Public
A simple world map displays population data for ten countries, with each country colored light green against a dark blue sphere. The visualization uses D3 v5 with a `geoNaturalEarth1` projection and `geoPath` to render country boundaries from TopoJSON data loaded via `world-atlas`. The key interaction is a cheap tooltip alternative: a bare `<title>` element appended to each country path, which shows the country name and population on hover, while a CSS `.country:hover` rule changes the fill to yellow. The data comes from a local `data.csv` file.
AI-generated descriptionMIT Licensed