Skip to main content
100%

Cheap Tricks for Interaction

✓ Published0🌍 Public
MMukund Khandelwal
Last edited Sep 23, 2018
Created on Sep 23, 2018

This example displays a world map rendered as an SVG using a natural Earth projection, with countries colored light green on a blue sphere. Hovering over any country turns it red, and the entire map can be panned and zoomed. The visualization loads TopoJSON world data and a TSV file of country names from the world-atlas package, then creates map paths with `d3.geoPath`. Zoom interaction is handled through `d3.zoom` and event transforms, while hover styling is applied via CSS on the `.country` class, with tooltips provided by SVG `<title>` elements.

AI-generated description
MIT Licensed

Similar vizzes