Choropleth Map with Interactive Filtering
✓ Published0🌍 Public
This choropleth map displays global economic classifications using a categorical color scale, with a legend that filters countries by clicking on a category to highlight matches and fade others. Built with D3 v5, it renders country shapes via d3.geoPath and TopoJSON data from the World Atlas, while the legend uses d3.scaleOrdinal with a spectral scheme. Zoom and pan interactions are handled through d3.zoom, and hovering changes a country’s fill to red.
AI-generated descriptionMIT Licensed