Chloropleth Map with Interactive Filtering
✓ Published0🌍 Public
A choropleth map colors countries by income group, with an interactive legend that filters the map to highlight selected categories and dim others. The map uses d3.geoEquirectangular and d3.geoPath to render countries from TopoJSON world-atlas data, while d3.zoom enables pan and zoom. The color legend, built with d3.scaleOrdinal and schemeBlues, responds to clicks to toggle selection. Hovering a country changes its fill, and a tooltip shows its name and income group.
AI-generated descriptionMIT Licensed