🌍 Public
Viewing a saved revision (read-only)
32e256e4f56b49be842e266a5217e292
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