Skip to main content
100%

Cheap tricks for interaction

✓ Published0🌍 Public
YYifei Liu
Last edited Sep 15, 2020
Created on Sep 15, 2020

This example shows a world map where hovering over a country turns it red, with country names available as tooltips. The map uses a Natural Earth projection and renders with SVG paths. The code loads world-atlas TopoJSON and TSV data, then uses `d3.geoPath` and `d3.geoNaturalEarth1` to draw countries. It also demonstrates a rudimentary zoom interaction via `d3.zoom`, though the zoom handler only logs to the console. The visualization relies on d3 v5 and d3-geo-projection for the projection.

AI-generated description
MIT Licensed

Similar vizzes