Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for Interaction

Public visualization

Cheap Tricks for Interaction

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed