Skip to main content
100%

Choropleth Map with Interactive Filtering

✓ Published0🌍 Public
Aanuj1450
Last edited Nov 9, 2020
Created on Nov 9, 2020
Forked from Choropleth Map

This choropleth map shows world countries colored by income group, with interactive filtering controlled by a clickable legend. Selecting a legend category highlights matching countries while dimming others, and clicking again clears the filter. The map uses a natural Earth projection with an SVG rendering, drawing country paths via `d3.geoPath`. The color legend, built with `d3.scaleOrdinal` and a spectral scheme, triggers the filtering through an `onClick` handler. Country data comes from the world-atlas TopoJSON and TSV files.

AI-generated description
MIT Licensed

Similar vizzes