Cheap Tricks for Interaction
✓ Published1🌍 Public
This example visualizes a world map using a natural Earth projection, where each country is rendered as a light green SVG path with a black stroke. Hovering over a country changes its fill color to red, and a tooltip displays the country name loaded from a TSV data file. The visualization uses `d3.geoPath` and `d3.geoNaturalEarth1` for map projection, `topojson.feature` for geographic data conversion, and `d3.zoom` with an event transform to enable interactive pan and zoom. The map data comes from the world-atlas package, with the sphere filled in dark blue.
AI-generated descriptionMIT Licensed