🌍 Public
Viewing a saved revision (read-only)
867bdaf6d82d457d9eb7e9217a988fb6
Fork of Cheap Tricks for Interaction
This visualization displays a world map using a natural Earth projection, with countries colored in light green that turn red on hover. It supports zooming and panning through the d3.zoom behavior, which applies transformations to an SVG group element containing all geographic paths. The map is rendered with d3.geoPath and d3.geoNaturalEarth1, using TopoJSON and TSV data from the world-atlas package to associate country names with their shapes via tooltips. The code imports specific D3 modules and the topojson feature function to generate the geographic features.
AI-generated description