Skip to main content
100%

Fork of Choropleth Map with Interactive Filtering

✓ Published0🌍 Public
Ffrozengem397
Last edited Jan 20, 2021
Created on Jan 20, 2021

A choropleth map of world economies lets users filter countries by clicking legend items, with unselected countries fading to low opacity. The map uses d3.geoPath with a geoNaturalEarth1 projection and a d3.scaleOrdinal color scale with the schemeSpectral palette, rendering as SVG. The color legend, built with custom enter/merge/exit logic, triggers updates via click handlers that toggle the selected category. Geographic data comes from world-atlas TopoJSON, paired with economic metadata from a TSV file.

AI-generated description

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

MIT Licensed

Similar vizzes