Skip to main content
Public

Share visualization

Loading preview…

Choropleth Map with Interactive Filtering.js

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Choropleth Map with Interactive Filtering.js

0
NNeepaB
Last edited Dec 31, 2020
Created on Dec 29, 2020
Forked from Choropleth Map.js

This choropleth map visualizes countries’ economic classifications using color-coded regions, with an interactive legend enabling users to filter which categories remain highlighted. The map pairs an ordinal color scale with a natural Earth projection via `d3.geoPath`, while a `d3.zoom` handler controls pan and zoom. Clicking a legend option dims non-matching countries and emphasizes the selection, using `d3.scaleOrdinal` and `schemeSpectral`. Data comes from TopoJSON world-atlas shapes merged with TSV attributes, rendered as SVG paths.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed