Skip to main content
100%

Cheap tricks for interaction

✓ Published1🌍 Public
HHasideluxe
Last edited Jul 27, 2020
Created on Jul 27, 2020

This example shows a world map with natural Earth projection, where hovering over any country highlights it in red and displays its name as a tooltip. The visualization uses D3 v5 and TopoJSON to load and render geographic data from the world-atlas package, with d3.geoPath handling the projection. It demonstrates two simple interaction tricks: native SVG `<title>` elements for hover tooltips and d3.zoom to enable panning and zooming the entire map. Countries are colored light green by default and turn red on hover.

AI-generated description
MIT Licensed

Similar vizzes