Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for Interaction!

Public visualization

Viewing a saved revision (read-only)

0904dc7839264ed49e6a5974cafd3f42

Cheap Tricks for Interaction!

0 stars0🌍 Public
NNecklessCage
Last edited Apr 12, 2020
Created on Apr 12, 2020

This example shows a world map with countries rendered in light green against a dark blue sphere, supporting click interactions to log country names and zooming via mouse gestures. It loads world data from the world-atlas TopoJSON and TSV files, using d3.geoPath with a d3.geoNaturalEarth1 projection to draw the map. The code applies d3.zoom to the SVG, transforms a group element on zoom events, and adds click handlers plus tooltips with country names derived from the TSV data.

AI-generated description