Skip to main content
100%

Choropleth Map with Interactive Filtering.js

✓ Published0🌍 Public
NNeepaB
Last edited Dec 31, 2020
Created on Dec 29, 2020
Forked from Choropleth Map.js

This choropleth map visualizes countries’ economic classifications using color-coded regions, with an interactive legend enabling users to filter which categories remain highlighted. The map pairs an ordinal color scale with a natural Earth projection via `d3.geoPath`, while a `d3.zoom` handler controls pan and zoom. Clicking a legend option dims non-matching countries and emphasizes the selection, using `d3.scaleOrdinal` and `schemeSpectral`. Data comes from TopoJSON world-atlas shapes merged with TSV attributes, rendered as SVG paths.

AI-generated description
MIT Licensed

Similar vizzes