Fork of Choropleth Map with Interactive Filtering
✓ Published0🌍 Public
KKamal Bahadur Rana
Last edited May 15, 2023
Created on May 15, 2023
Forked from Choropleth Map with Interactive Filtering
This choropleth map visualizes global economic classifications using a natural Earth projection, with countries colored according to their income group. Users can click color legend entries to filter the map, dimming unselected regions while highlighting matching ones, with zoom and pan support. The visualization uses d3.geoNaturalEarth1 and d3.geoPath to render country features from TopoJSON world-atlas data, while d3.scaleOrdinal and d3.schemeSpectral define the color encoding. Interactive filtering is handled through click events on the legend, which toggles the selected color value and updates fill opacity and CSS highlighting.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!
MIT Licensed