Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Choropleth Map with Interactive Filtering F

Public visualization

Viewing a saved revision (read-only)

1b20011f20a8493288b5e6e1ffc81d90

Fork of Choropleth Map with Interactive Filtering F

0 stars0🌍 Public
Ffsajedi22
Last edited Mar 15, 2023
Created on Mar 15, 2023

A choropleth map visualizes countries by their economic classification, with a color legend that doubles as an interactive filter. Users click legend items to highlight matching countries and dim others, while hovering over map regions reveals the country name and value in a tooltip. The map uses `d3.geoNaturalEarth1` and `d3.geoPath` for projection, `d3.zoom` for panning and zooming, and a `d3.scaleOrdinal` with `d3.schemeSpectral`. Data comes from the World Atlas TopoJSON and TSV files, with panning handled via SVG transforms.

AI-generated description

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