Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Choropleth Map

0
VVictor
Last edited Feb 25, 2022
Created on Feb 19, 2022
Forked from Choropleth Map

This choropleth map visualizes world countries colored by their `mapcolor7` property, with an ordinal color scale using `d3.scaleOrdinal` and `d3.schemeSpectral`. It renders geographic boundaries via `d3.geoPath` and a `geoNaturalEarth1` projection, with data loaded from TopoJSON and TSV files using `d3.json` and `d3.tsv`. A custom `colorLegend` function builds an SVG legend with circles and labels, while `d3.zoom` enables interactive panning and zooming on the map.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed