Choropleth Map with Interactive Filtering
✓ Published0🌍 Public
Aanduskong
Last edited Dec 17, 2020
Created on Dec 17, 2020
Forked from Choropleth Map with Interactive Filtering
A choropleth map of the world displays a categorical color scale, coloring each country by its economy income group. The map uses a geographic projection and SVG paths via `d3.geoPath` and the `geoAlbersUSA` projection. The color legend, built with `d3.scaleOrdinal` and `schemeSpectral`, shows discrete categories; clicking a legend item filters the map by fading non-matching countries to low opacity while highlighting the selected category. The data originates from a TopoJSON file and a TSV table loaded concurrently, which are merged by country ID.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!
MIT Licensed