Skip to main content
100%

Cheap Tricks for Interaction

✓ Published156🌍 Public
CCurran Kelleher
Last edited Sep 17, 2019
Created on Sep 20, 2018

This example shows an interactive world map with zoom and pan capabilities, displaying country boundaries and names using natural Earth projection. The user can explore the map by dragging to pan and scrolling to zoom, which is implemented through d3.zoom. Countries are rendered as SVG paths using d3.geoPath, with hover effects highlighting regions in red. The visualization uses TopoJSON data from world-atlas and TSV country names, combining d3.json and d3.tsv for data loading within a Promise.all.

AI-generated description
MIT Licensed

Similar vizzes