Skip to main content
100%

Fork of Choropleth Map with Interactive Filtering

✓ Published0🌍 Public
GGuan
Last edited Sep 13, 2024
Created on Sep 13, 2024

This choropleth map visualizes world countries colored by their economic group, with an interactive color legend that filters the map to show only countries in a selected category. Clicking a legend entry dims non-matching countries to 10% opacity while highlighting the selected group, and clicking again resets the view. The visualization uses d3.geoPath with a natural Earth projection, d3.scaleOrdinal with a spectral color scheme, and loads country boundaries and metadata from the world-atlas package. A zoom interaction is also included, allowing users to pan and scale the map.

AI-generated description

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

MIT Licensed

Similar vizzes