Choropleth Map with Interactive Filtering
✓ Published0🌍 Public
PPyRed1
Last edited Oct 20, 2019
Created on Oct 20, 2019
Forked from Choropleth Map with Interactive Filtering
This choropleth map displays world economies by color, with an interactive legend that filters countries by economic category. Clicking a legend item dims non-matching countries while highlighting the selected group. The visualization uses d3.geoNaturalEarth1 projection with d3.geoPath to render TopoJSON data from the world-atlas package, while d3.scaleOrdinal with schemeSpectral assigns colors. Zoom and pan are enabled via d3.zoom, and clicking legend items toggles opacity and stroke styling through SVG attributes.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!
MIT Licensed