Choropleth Map with Interactive Filtering
✓ Published0🌍 Public
AAjayyy
Last edited Sep 30, 2018
Created on Sep 28, 2018
Forked from Choropleth Map with Interactive Filtering
This choropleth map displays country-level economic data using a color scale, with a legend allowing viewers to filter the map by clicking a specific economic category. The map uses a natural Earth projection through `d3.geoNaturalEarth1` and `d3.geoPath`, rendering country boundaries as SVG paths. Filtering dims non-selected countries and highlights the chosen one, while the legend’s interactive ticks use `d3.scaleOrdinal` and `schemeSpectral` for colors. Data is loaded from the world-atlas TSV and TopoJSON files, with interactive zoom via `d3.zoom`.
AI-generated descriptionMIT Licensed