Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for Interaction

Public visualization

Viewing a saved revision (read-only)

7633404e65a242089967f7c8dd06abac

Cheap Tricks for Interaction

0 stars1🌍 Public
Ssureshreddypr
Last edited Jul 30, 2020
Created on Jul 30, 2020

This example displays an interactive natural Earth projection of world countries, rendered as SVG paths with hover highlighting. Users can pan and zoom the map via d3.zoom, which applies transforms to a parent group element. Country boundaries come from TopoJSON world-atlas data, matched to names from a TSV file, and are drawn using d3.geoPath with a geoNaturalEarth1 projection. Hovering changes fill colors through CSS, while d3 v5 handles the zoom event listeners and asynchronous data loading via Promise.all.

AI-generated description