🌍 Public
Viewing a saved revision (read-only)
aaa06f94e22b47db821ceafcc3887da5
Multiple selection world map
This example shows a world map where users can click individual countries to toggle them between yellow and green, allowing multiple selections simultaneously. The visualization uses a natural Earth projection rendered as SVG, with country boundaries and names sourced from the World Atlas TopoJSON and TSV datasets. D3’s zoom behavior enables pan and zoom on the map. Click handlers update each country’s data properties and re-render the paths, while CSS hover effects and the `.selected` class highlight interactive states.
AI-generated description