Skip to main content
100%

Chloropleth Map with Interactive Filtering

✓ Published0🌍 Public
Ccornshoots
Last edited Mar 17, 2021
Created on Mar 17, 2021
Forked from Chloropleth Map

A choropleth map colors countries by income group, with an interactive legend that filters the map to highlight selected categories and dim others. The map uses d3.geoEquirectangular and d3.geoPath to render countries from TopoJSON world-atlas data, while d3.zoom enables pan and zoom. The color legend, built with d3.scaleOrdinal and schemeBlues, responds to clicks to toggle selection. Hovering a country changes its fill, and a tooltip shows its name and income group.

AI-generated description
MIT Licensed

Similar vizzes