Skip to main content
100%

Cheap Tricks for Interaction

✓ Published1🌍 Public
NNico Donovan
Last edited Jul 15, 2020
Created on Jul 15, 2020

A world map renders country boundaries using `d3.geoPath` with a `geoNaturalEarth1` projection. Hovering highlights nations in red via CSS, while native SVG `<title>` elements provide tooltips with country names. The view supports pan and zoom through `d3.zoom`. Data loads concurrently with `Promise.all`, combining TopoJSON geometry and TSV metadata from the world-atlas package.

AI-generated description

Topics covered:

  • highlighting on Hover using CSS
  • Adding simple tooltips (using <title>) -loading multiple data files -looking up country name from id
  • panning and zooming
MIT Licensed

Similar vizzes