Skip to main content
100%

Cheap trick for Interaction

✓ Published0🌍 Public
Yyubeichen0826
Last edited Aug 15, 2020
Created on Aug 15, 2020
Forked from Making a Bar Chart

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 description
MIT Licensed

Similar vizzes