Skip to main content
100%

Cheap Tricks for Interaction

✓ Published0🌍 Public
LLeoBergqvist
Last edited Feb 23, 2020
Created on Feb 23, 2020

This example shows a world map with countries colored light green and a blue sphere background. Hovering over a country turns it red, and users can pan and zoom the entire map using the mouse wheel or drag gestures. The visualization uses D3 v5 with a natural Earth projection via `d3.geoNaturalEarth1` and renders the map as SVG paths generated with `d3.geoPath`. Country boundaries come from TopoJSON world-atlas data, while country names are loaded from a TSV file and attached as SVG `<title>` tooltips. Zoom and pan behavior is implemented through the `d3.zoom` API.

AI-generated description
MIT Licensed

Similar vizzes