Skip to main content
100%

Cheap Tricks for Interaction

✓ Published1🌍 Public
WWouterero
Last edited Oct 30, 2019
Created on Oct 30, 2019

This example shows an interactive world map with zooming and panning controlled by the mouse. Hovering a country turns it red, and a tooltip displays the country’s name. Built with D3 v5, it uses `d3.geoNaturalEarth1` for the projection, `d3.geoPath` to generate the country shapes, and the `zoom` behavior from the `d3` module to apply transforms on a zoom event. The map draws a blue sphere background and green countries, using TopoJSON shape data and TSV country names from the `world-atlas` package.

AI-generated description
MIT Licensed

Similar vizzes