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
DDy-Diana
Last edited Nov 8, 2020
Created on Nov 8, 2020

A D3.js map renders world countries as light-green SVG paths atop a blue sphere, using the Natural Earth projection. The code loads GeoJSON from the world-atlas TopoJSON source, converts it with the `feature` method, and draws each country with `geoPath`. The sphere outline is generated from a spherical geometry object, while CSS applies fill and stroke styling. This example demonstrates a minimal choropleth-free geographic visualization, relying on `json`, `geoNaturalEarth1`, and `topojson` to project and display the data.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed