Let's make a World Map - choropleth with interactive filters
✓ Published0🌍 Public
JJimMaltby
Last edited Oct 26, 2020
Created on Oct 26, 2020
This example presents a world choropleth map colored by income group, rendered with SVG paths projected using d3.geoNaturalEarth1 and d3.geoPath. Users can click legend items to filter countries by income level, with non-selected countries dimmed to 10% opacity and a zoom interaction provided via d3.zoom. The map draws country boundaries from TopoJSON data augmented with TSV attributes, while the color legend uses d3.scaleOrdinal with an RdYlGn scheme for categorical coloring.
AI-generated descriptionA Choropleth with interactive filters on map of the world. From Curran Kelleher's: "Interactive Filtering on a Map with D3" .
MIT Licensed