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

3
PPeter S
Last edited Jul 4, 2020
Created on Aug 24, 2019

This choropleth map colors countries by their income group using a categorical color scale applied from the `schemeSpectral` range. The visualization renders geographic boundaries from TopoJSON data processed with `topojson.feature` and projects them using `d3.geoNaturalEarth1` and `d3.geoPath`. A legend, built with a custom `colorLegend` function, displays the colored circles and labels for each income category. Country names and income groups appear as tooltips via SVG `title` elements, and the map supports zooming through `d3.zoom`.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed