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

1
NNeepaB
Last edited Dec 29, 2020
Created on Dec 28, 2020

This choropleth map colors countries by their economy classification using an ordinal color scale with a spectral palette. A hover effect highlights individual countries, and a custom legend displays the color categories. The visualization loads world geometry from TopoJSON and joins it with tabular TSV data, rendered as SVG paths via `d3.geoPath` and a natural Earth projection. Interactive pan and zoom are enabled through `d3.zoom`, while the legend and map styling are built with D3’s selection and data-join methods.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed