🌍 Public
Viewing a saved revision (read-only)
2580eec02f784e4182860663a866084a
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