Skip to main content
100%

Cheap tricks for interactions

✓ Published1🌍 Public
NNkwachi Abel
Last edited May 30, 2022
Created on May 29, 2022

This example shows a world map rendered with a natural Earth projection, where hovering over a country turns it red and displays its numeric ID as a tooltip. A zoom interaction lets the user pan and scale the map via mouse or touch. The visualization uses D3 v5’s `geoNaturalEarth1`, `geoPath`, and `zoom` functions, with country polygons sourced from the World Atlas TopoJSON dataset. The SVG scene is built in a React framework, with styling and hover states handled through CSS.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes