Skip to main content
100%

Cheap Tricks for Interaction

✓ Published0🌍 Public
Tthanhtrant219
Last edited Apr 15, 2020
Created on Apr 15, 2020

This example shows a world map highlighting countries in light green on a blue sphere, with a red hover effect on individual countries and zoom-and-pan interaction. It uses D3 v5 with d3.geoNaturalEarth1 projection, d3.geoPath, and d3.zoom to enable the viewport transformations. Country boundaries come from the World Atlas TopoJSON dataset, while country names are matched via the accompanying TSV file. The map renders as SVG, with hover tooltips provided by native `<title>` elements.

AI-generated description
MIT Licensed

Similar vizzes