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.

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 & exportHTML, source ZIP

Viewing a saved revision (read-only)

YBZXUOoF5eBydHvnbiWsm

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

0 stars0Public
Mmroufail72
Last edited Nov 9, 2026
Created on Nov 9, 2026

This example demonstrates how to create a map of the world using D3.js, rendering countries as green polygons with a blue sphere background. The visualization loads geographic data from the world-atlas TopoJSON file and converts it into GeoJSON features using the topojson library. D3’s geoNaturalEarth1 projection and geoPath generator handle the coordinate mapping and SVG path creation, while the code appends each country as a separate path element to the SVG canvas.

MIT Licensed