🌍 Public
Viewing a saved revision (read-only)
0904dc7839264ed49e6a5974cafd3f42
Cheap Tricks for Interaction!
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