Skip to main content
100%

Choropleth Map with Interactive filtering

✓ Published0🌍 Public
NNico Donovan
Last edited Jul 21, 2020
Created on Jul 21, 2020
Forked from Choropleth Map

This choropleth map of world economies uses color to encode categorical economic data, with an interactive legend that filters which countries are highlighted. Clicking a legend value dims all countries not in that category while emphasizing those that match. The visualization is built with d3.geoPath and d3.geoNaturalEarth1 for map projections, d3.scaleOrdinal with schemeSpectral for coloring, and a custom colorLegend component with click handlers. Country data comes from World Atlas TopoJSON and TSV files, rendered as SVG paths.

AI-generated description

Making the color legend clickable

implementing unidirectional data flow

highlighting the selected color value

componentizing the chloropleth map

highlighting countries using the selected color value

MIT Licensed

Similar vizzes