Skip to main content
100%

World Map Interaction

✓ Published1🌍 Public
KKainsli
Last edited May 19, 2021
Created on May 19, 2021

This example displays an interactive world map built with D3 v5 and TopoJSON, rendered as SVG. Users can pan and zoom the map using D3’s `zoom` behavior, which updates a group transform. The map draws countries from the world-atlas TopoJSON file using `geoPath` and the `geoNaturalEarth1` projection. Hovering over a country highlights it in red via the `:hover` CSS rule, while country names appear as tooltips using SVG `<title>` elements.

AI-generated description
MIT Licensed

Similar vizzes