Skip to main content
100%

Easy map interactions

✓ Published0🌍 Public
WWarren-Fitzhenry
Last edited Jan 4, 2020
Created on Jan 3, 2020

This example demonstrates an interactive map of world countries, colored by economic classification using a spectral color scale. Users can zoom and pan the map, and click the color legend to filter countries by economy type, which fades non-selected categories. Built with D3 v5, it uses `d3.geoPath` for map projection and `d3.geoNaturalEarth1` for geometry, coupled with `d3.zoom` for pan/zoom interactions. Data comes from the world-atlas package, merging TopoJSON geometry with TSV tabular data. The map renders as SVG paths, with hover effects and animated transitions for legend interactions.

AI-generated description
MIT Licensed

Similar vizzes