Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for Interaction

Public visualization

Cheap Tricks for Interaction

0 stars0🌍 Public
LLinkous
Last edited Dec 26, 2019
Created on Dec 26, 2019

This example demonstrates interactive zooming and panning on a natural Earth projection map of world countries, with hover highlighting that changes each country’s fill to red. The map is rendered as SVG paths using `d3.geoPath` and `geoNaturalEarth1`, with country boundaries loaded from TopoJSON world-atlas data and names joined from a TSV file. Interaction is handled through `d3.zoom`, which applies a transform to a group element, while CSS `:hover` rules trigger the color change on each country.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed