Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for Interaction

Public visualization

Viewing a saved revision (read-only)

a0f6bfc37015419880217fed40c7dc5d

Cheap Tricks for Interaction

0 stars0🌍 Public
RRubens
Last edited Sep 21, 2018
Created on Sep 21, 2018

This example shows an interactive world map rendered with SVG, where country boundaries appear in light green and turn red on hover, with a blue sphere background. It uses `d3.geoNaturalEarth1` for projection and `d3.geoPath` to draw geographic features from TopoJSON data loaded via `d3.json`. Country names come from a TSV file accessed with `d3.tsv`. The map supports pan and zoom through `d3.zoom`, applying the current transform to a group element containing all countries.

AI-generated description