Skip to main content
100%

Fork of Cheap Tricks for Interaction

✓ Published0🌍 Public
DDonggov
Last edited May 30, 2022
Created on May 30, 2022

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
MIT Licensed

Similar vizzes