Skip to main content
100%

Choropleth Map with Interactive Filtering

✓ Published1🌍 Public
Ssuprithreddy267
Last edited Apr 2, 2020
Created on Apr 2, 2020

A choropleth map colored by economy category uses color-coding to show global economic groupings, with a legend that filters countries by clicking a category or hovering to highlight. Built with D3.js v5, it projects geographic data using `d3.geoNaturalEarth1` and `d3.geoPath`, while an ordinal `scaleOrdinal` with `schemeSpectral` drives the fill colors. The map loads world atlas TopoJSON and TSV data, and the legend’s click handler toggles the selected value to adjust country opacity, with a zoom interaction via `d3.zoom`. Hovering a country turns it red, and tooltips display the country name and color value.

AI-generated description

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

MIT Licensed

Similar vizzes