Skip to main content
100%

Cheap Tricks for Interaction!

✓ Published0🌍 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
MIT Licensed

Similar vizzes