Skip to main content
Public

Share visualization

Loading preview…

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

Make a MAP with D3.js!

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

This example shows how to create a map using D3.js version 6, rendering geographic data as SVG. It loads world country boundaries from the world-atlas TopoJSON dataset and prepares to display them with a Mercator projection. The code uses `d3.geoMercator` for projection, `d3.geoPath` to generate SVG paths, and `topojson.feature` to convert TopoJSON to GeoJSON. The visualization is a simple starter template with an empty SVG canvas waiting for the map to be drawn.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed