Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap tricks for interaction

Public visualization

Cheap tricks for interaction

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed