Skip to main content
Public

Share visualization

Loading preview…

Topojson World 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

Topojson World Map

1
VVenkata Sai Preetham
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from Choropleth Map

This example displays a world map using the Natural Earth projection, rendered as pink countries with faint black outlines against a pale background. The map is generated by loading country boundary data from the `world-atlas` package, then passing the GeoJSON through the TopoJSON `feature` function to extract features. D3’s `geoPath` and `geoNaturalEarth1` APIs construct the projected SVG paths, while an additional `sphere` path outlines the globe. The visualization relies on D3 v5 and TopoJSON v3 to combine geospatial data with SVG rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed