Skip to main content
100%

Fork of Cheap tricks for interactions

✓ Published0🌍 Public
Ppvreswar7@gmail.com
Last edited Apr 7, 2023
Created on Apr 7, 2023

This example shows a world map rendered in SVG using D3.js v5. Countries are drawn with `d3.geoPath` and a `geoNaturalEarth1` projection, using TopoJSON data from the world-atlas package. The map supports pan and zoom via `d3.zoom`. Hovering over a country changes its fill color and displays the country name in a tooltip, which is generated from a TSV file using `d3.tsv`. The visualization demonstrates simple, lightweight interactions built entirely with D3's declarative SVG and data-binding APIs.

AI-generated description
MIT Licensed

Similar vizzes