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
PPotikorn
Last edited Feb 18, 2020
Created on Feb 18, 2020

A D3.js map of world countries supports zooming and panning through d3.zoom, which applies a transform to a group element. Geographic paths are rendered using d3.geoPath with a geoNaturalEarth1 projection, sourced from TopoJSON world-atlas data and country names from a TSV file. Hovering changes each country’s fill to red via CSS, using SVG paths with title tooltips for interactivity.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

Comments

Sign in to join the discussion.

MIT Licensed