Skip to main content
100%

Cheap tricks for interaction

✓ Published1🌍 Public
JJuyeonee
Last edited Jul 20, 2021
Created on Jul 20, 2021

This example shows a world map with countries rendered in light green against a dark blue sphere, drawn using D3’s `geoPath` and `geoNaturalEarth1` projection. Hovering a country turns it red, while a zoom interaction (via `zoom`) allows mouse-driven pan and scale. The map data comes from a TopoJSON file and a TSV file paired through `Promise.all`; the SVG output is generated by projecting geographic features, with tooltips provided by `title` elements.

AI-generated description
MIT Licensed

Similar vizzes