Skip to main content
100%

Cheap Tricks for Interaction

✓ Published1🌍 Public
CCassie
Last edited Oct 13, 2021
Created on Oct 11, 2021

This interactive map visualizes world countries using D3 v5 with a natural Earth projection, rendered as SVG paths with hover highlighting and zoom/pan capabilities. It loads geographic data from the world-atlas TopoJSON and country names from a TSV file, attaching tooltips via SVG `<title>` elements. The code uses `d3.geoPath`, `d3.geoNaturalEarth1`, `d3.zoom`, and `topojson.feature` to enable smooth interaction and clear country identification.

AI-generated description
MIT Licensed

Similar vizzes