Skip to main content
Public

Share visualization

Loading preview…

Let's make a map with D3.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

Let's make a map with D3.js!

0
Nnouralkhoury
Last edited Nov 28, 2020
Created on Nov 28, 2020

This example uses D3.js and TopoJSON to generate an orthographic projection map of the world. It loads world country boundaries from a JSON file hosted on unpkg, converts the TopoJSON data into geographic features, and renders each country as a green SVG path with a subtle black stroke. The visualization employs `d3.geoOrthographic` and `d3.geoPath` to create the projection, with the dark blue background and minimal styling coming from the linked CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed