Choropleth Map with Interactive Filtering
✓ Published1🌍 Public
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 descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!
MIT Licensed