Skip to main content
Public

Share visualization

Loading preview…

Choropleth Map.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.js!

0
Dddperdue
Last edited Mar 25, 2020
Created on Mar 25, 2020

This example shows a choropleth map of the world’s countries, colored by economic classification using a spectral color scale. The map renders as SVG and supports mouse hover highlighting, which changes the fill of individual countries to dark green. It loads geographic data from the world-atlas TopoJSON and matches it with country names and economy values from a TSV file. The visualization uses d3.geoPath with a d3.geoNaturalEarth1 projection, applies a d3.scaleOrdinal for colors, and enables pan and zoom through d3.zoom.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed