Choropleth Map with Interactive Filtering
✓ Published1🌍 Public
FFilippaNathhorst
Last edited Oct 30, 2019
Created on Oct 30, 2019
Forked from Choropleth Map with Interactive Filtering
A choropleth map visualizes countries by economic classification, with a color legend that filters the map when clicked. Hovering over legend items highlights matching countries, while clicking isolates one category and dims others. The map uses d3.geoNaturalEarth1, d3.geoPath, and d3.zoom for panning and zooming, while d3.scaleOrdinal with schemeSpectral assigns colors. Data comes from TopoJSON world-atlas and TSV metadata, rendered as SVG paths. Interactive filtering is implemented via click handlers on legend groups, adjusting opacity and stroke width of country paths.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!
MIT Licensed