Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chloropeth Map with Interactive Filtering

Public visualization

Viewing a saved revision (read-only)

e65d35c146634a6ab3844cda8618cd4b

Chloropeth Map with Interactive Filtering

0 stars0🌍 Public
MMuhammad Jarir Kanji
Last edited Feb 14, 2021
Created on Dec 19, 2020
Forked from Chloropeth Map

A choropleth map colors world countries by economy using an ordinal color scale derived from d3.scaleOrdinal and d3.schemeSpectral. Clicking a legend item filters the map, dimming unselected countries and enlarging the selected one’s stroke. The visualization supports zooming and panning via d3.zoom, uses d3.geoNaturalEarth1 and d3.geoPath for projection, and loads TopoJSON and TSV data from the world-atlas package. A hovering effect turns countries pink.

AI-generated description