Easy map interactions
✓ Published0🌍 Public
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 descriptionMIT Licensed