Cheap Tricks for Interaction
✓ Published1🌍 Public
This example shows an interactive world map using a natural Earth projection, where countries render as light green polygons with black outlines on a blue sphere. Users can pan and zoom through the map, and hovering over any country highlights it in red while displaying its name in a tooltip. The visualization uses d3.zoom for interaction, d3.geoPath with d3.geoNaturalEarth1 for map projection, and topojson to convert TopoJSON data from the world-atlas package. Country names come from a TSV file matched by ISO numeric codes.
AI-generated descriptionMIT Licensed