Choropleth Map with Interactive filtering
✓ Published0🌍 Public
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 descriptionMaking 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