Skip to main content
100%

Choropleth Map with Interactive Filtering

✓ Published0🌍 Public
Vvic126
Last edited Jun 30, 2020
Created on Jun 30, 2020
Forked from Choropleth Map

This example presents a choropleth map of world countries colored by economic classification, with an interactive legend that filters the map's display. Clicking a legend category highlights matching countries while dimming others; clicking again clears the filter. The visualization uses D3 v5's `geoNaturalEarth1` projection with `geoPath` for rendering, and `scaleOrdinal` with `schemeSpectral` for color mapping. Pan and zoom are enabled via `d3.zoom`. Geographic data comes from the World Atlas TopoJSON dataset, loaded and processed with `topojson.feature` and merged with TSV metadata.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes