Skip to main content
100%

Fork of Cheap Tricks for Interaction

✓ Published0🌍 Public
SShafi Shaikat
Last edited Jul 26, 2023
Created on Jul 25, 2023

This example renders a world map using SVG paths generated with `d3.geoPath` and a Mercator projection, populated with country outlines from the world-atlas dataset. The resulting map displays country names as tooltips when hovering, and countries turn red on mouse-over. The visualization loads geographic data from a TSV file for names and a TopoJSON file for shapes, processed with the `topojson` library. Pan and zoom interactions are enabled through the `d3.zoom` API, allowing users to explore the map in detail.

AI-generated description
MIT Licensed

Similar vizzes