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
CChinzorigt Ganbat
Last edited Sep 19, 2020
Created on Sep 19, 2020

This example demonstrates how to create a world map using D3.js, rendering continents as light green polygons on a blue sphere. It uses the `d3.geoNaturalEarth1` projection and `d3.geoPath` to generate SVG paths from TopoJSON data loaded from the world-atlas package via `d3.json`. The code also draws a background sphere path and applies stroke styling to country boundaries. All visual elements are rendered as SVG in a single 960×500 viewport.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed