Cheap Tricks for Interaction
✓ Published0🌍 Public
This example shows a zoomable world map with country name tooltips, rendered as an SVG using D3 v5 and TopoJSON data from the world-atlas package. It displays natural Earth projection with interactive pan and zoom via d3.zoom, while country boundaries are drawn with d3.geoPath. Hovering highlights countries in orange through CSS, and each path appends a <title> element populated from the TSV dataset for native browser tooltips. The map uses a simple geoNaturalEarth1 projection with a steelblue sphere background.
AI-generated descriptionMIT Licensed