Skip to main content
100%

Choropleth Map with Interactive Filtering

✓ Published0🌍 Public
CCarloGato
Last edited Dec 14, 2019
Created on Dec 10, 2019

A choropleth map colors countries by economic category using an ordinal color scale derived from d3.scaleOrdinal and d3.schemeSpectral. Clicking a legend item filters the map, reducing the opacity of non-matching countries and highlighting the selected category. The map uses d3.geoNaturalEarth1 and d3.geoPath to render world features from TopoJSON data, while d3.zoom enables panning and zooming on the SVG. Hovering a country turns it red via CSS.

AI-generated description
MIT Licensed

Similar vizzes