Skip to main content
100%

Multiple selection world map

✓ Published1🌍 Public
RRyan Fleming
Last edited Nov 7, 2018
Created on Sep 25, 2018

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

Similar vizzes