Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap tricks interactions _ example!

Public visualization

Viewing a saved revision (read-only)

5c3b0dde93cd46faa05f62b8cf770153

Cheap tricks interactions _ example!

0 stars0🌍 Public
KKumhee
Last edited Sep 26, 2020
Created on Sep 26, 2020

This example displays an interactive world map using a natural Earth projection, with countries rendered as SVG paths and colored light green. The visualization supports zooming and panning via d3.zoom, and hovering over a country highlights it in red. It loads geographic data from the world-atlas TopoJSON and TSV files, merging country names via a reduce operation. The code uses d3.geoPath, d3.geoNaturalEarth1, and topojson.feature to project and draw the map.

AI-generated description