Skip to main content
100%

Cheap Tricks for Interaction

✓ Published1🌍 Public
Ddanielchamone
Last edited Nov 4, 2019
Created on Nov 4, 2019
Forked from Let's make a map!

A world map rendered with D3 v5 displays countries as light green SVG paths with hover highlighting in red. Using the Natural Earth projection via `d3.geoNaturalEarth1` and `d3.geoPath`, the map loads country boundaries from TopoJSON data through `d3.json`. Pan and zoom interactions are implemented with `d3.zoom` applied to an SVG group, transforming the entire map on input. Hover effects rely purely on CSS `.country:hover`, while country names appear through appended SVG `<title>` elements.

AI-generated description
MIT Licensed

Similar vizzes