Choropleth Map with Interactive Filtering
✓ Published0🌍 Public
Eevapavlinek
Last edited Apr 10, 2020
Created on Apr 10, 2020
Forked from Choropleth Map with Interactive Filtering
A choropleth map colors countries by economic category using a spectral color scale, with an interactive legend that filters the map by clicking a category to highlight it. The map loads world geometry from TopoJSON and country metadata from TSV. Built with D3 v5, it uses `d3.geoPath` with a Natural Earth projection, `d3.zoom` for panning, and SVG for rendering. Clicking a legend item toggles selection, dimming non-matching countries and emphasizing the chosen group.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!
MIT Licensed