Skip to main content
100%

Fork of Choropleth Map with Interactive Filtering

✓ Published0🌍 Public
Aalan489671
Last edited Oct 19, 2022
Created on Oct 19, 2022

A choropleth map colors countries by economic classification using an ordinal scale derived from `d3.scaleOrdinal` and the `schemeSpectral` color scheme. Clicking a legend item filters the map, dimming non-matching countries and increasing the stroke width of the highlighted one. Hovering over the legend dims other items. The map uses `d3.geoNaturalEarth1` projection, `d3.geoPath` for rendering, and `d3.zoom` for panning. Data comes from the World Atlas TopoJSON and TSV files, processed with `topojson.feature`.

AI-generated description

A choropleth map where you can hover over items in the color legend items to interactively filter!

MIT Licensed

Similar vizzes