Skip to main content
Public

Share visualization

Loading preview…

Choropleth Map

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

0
KKohinoor Chtaterjee
Last edited Aug 6, 2020
Created on Aug 6, 2020
Forked from Choropleth Map

This choropleth map colors countries by economic classification, with a color legend and zooming and panning via d3.zoom. It loads world geometry from TopoJSON and country names from TSV data, joining them by ID. The map uses a natural Earth projection via d3.geoNaturalEarth1 and d3.geoPath, with an ordinal color scale based on d3.scaleOrdinal and a spectral scheme. Hovering highlights countries, and a custom color legend is built with reusable SVG components.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed