Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cheap tricks for interactions

Public visualization

Viewing a saved revision (read-only)

c36bb4381d4346cdaed99368ad5cdff2

Fork of Cheap tricks for interactions

0 stars0🌍 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