Skip to main content
Public

Share visualization

Loading preview…

Fork of Map with Selectable Countries

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

Fork of Map with Selectable Countries

0
Mmirasnag
Last edited Jun 17, 2023
Created on Jun 17, 2023

This interactive choropleth map displays countries colored by economic group, with a legend that filters the map's color encoding. Clicking a country selects it, dimming all others, while a click on the legend resets the selection. The visualization uses a natural Earth projection via d3.geoNaturalEarth1 and renders geographic paths with d3.geoPath. Data is loaded from a world-atlas TopoJSON with TSV metadata, and the ordinal color scheme comes from d3.scaleOrdinal and d3.schemeSpectral. Interactivity is handled with D3's selection API and event listeners.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed