Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Choropleth Map with Interactive Filtering

Public visualization

Viewing a saved revision (read-only)

2bf8e97002884cf484fb11a6a0b79b11

Choropleth Map with Interactive Filtering

1 star0🌍 Public
HHe Jianfeng
Last edited Apr 14, 2021
Created on Apr 14, 2021
Forked from Choropleth Map

A choropleth map colors countries by economic classification, sourced from the World Atlas dataset and displayed using the Natural Earth projection. Clicking a color swatch in the legend filters the map, dimming all countries except those matching the selected category, while a highlighted stroke marks the active group. Built with D3 v6, it uses `d3.geoPath` for map geometry, `d3.scaleOrdinal` with the spectral scheme for color mapping, and `d3.zoom` for interactive panning and zooming. Hovering a country reveals its name and value via a tooltip.

AI-generated description