Skip to main content
100%

Cheap Tricks for Interaction

✓ Published1🌍 Public
Ddaigokawabe
Last edited Aug 2, 2020
Created on Aug 2, 2020

This example shows a world map with country boundaries rendered in light green on a dark blue sphere, using d3.geoNaturalEarth1 and d3.geoPath. Hovering over a country turns it red, revealing its name via SVG title elements from world-atlas TSV data. Pan and zoom interactions are implemented with d3.zoom, which applies a transform to the map’s parent group element. The visualization uses topojson to parse the countries-50m.json TopoJSON file.

AI-generated description
MIT Licensed

Similar vizzes