Skip to main content
100%

Cheap Tricks for interaction

✓ Published0🌍 Public
DDaniel García
Last edited Mar 23, 2020
Created on Mar 23, 2020

This visualization displays a world map using a natural Earth projection, with countries rendered as light green SVG paths that turn red on hover, accompanied by tooltips showing country names. The map is built with D3 v5, using `d3.geoPath` and `d3.geoNaturalEarth1` for projection, and TopoJSON for converting geographic data into features. It loads country boundaries and names from the world-atlas package (50m TSV and JSON files), and the rendering is done entirely in SVG. The zoom interaction is handled by `d3.zoom`, which applies a transform to the map group when the user presses and drags.

AI-generated description
MIT Licensed

Similar vizzes