Skip to main content
100%

Cheap Tricks for Interaction

✓ Published0🌍 Public
Vveagy
Last edited Sep 25, 2018
Created on Sep 25, 2018

This example displays a world map using geographic data from the world-atlas package, rendered as SVG paths. It shows countries with a blue sphere background and black country outlines. The visualization uses d3.geoPath and d3.geoNaturalEarth1 to project and draw the map, while topojson.feature extracts country boundaries. Clicking a country triggers an interaction that updates a selected country state, though no visual feedback is applied; instead, the click logs a message to the console. Hovering reveals country names via SVG title elements.

AI-generated description
MIT Licensed

Similar vizzes