Skip to main content
Public

Share visualization

Loading preview…

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

Fork of Let's make a map with D3.js!

0
Mmavercikalvin
Last edited Apr 28, 2023
Created on Apr 28, 2023

This fork of the “Let’s make a map with D3.js!” example renders a world map using an SVG canvas with a natural Earth projection. It uses `d3.geoPath` and `d3.geoNaturalEarth1` to project and draw country boundaries from TopoJSON data loaded via `topojson.feature`. The map displays a blue sphere outline and light green countries with thin black strokes, based on the world-atlas 110m dataset. The code loads D3 v5 and TopoJSON v3 from unpkg, with styling applied via an external CSS file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed