Skip to main content
100%

Cheap Tricks for Interaction

✓ Published0🌍 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
MIT Licensed

Similar vizzes