Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for Interation

Public visualization

Viewing a saved revision (read-only)

be5e6b8f64174f5bad1df67f9b3a975a

Cheap Tricks for Interation

1 star1🌍 Public
TToooooooT
Last edited Sep 18, 2022
Created on Sep 18, 2022

This example uses D3.js v5 with geo projections and TopoJSON to render an interactive world map on an SVG canvas. It displays country boundaries as light green shapes with dark strokes, and a blue sphere as the background, with country names provided as tooltips from the world-atlas TSV dataset. Hovering a country turns it red, while a D3 zoom interaction lets users scale the entire map. The map’s projection is generated with `d3.geoNaturalEarth1` and `d3.geoPath`, and the zoom behavior is implemented via `d3.zoom`.

AI-generated description