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
Ssrrajendran
Last edited Oct 25, 2018
Created on Oct 10, 2018

This example demonstrates how to build a map using the D3.js library. It loads GeoJSON data from a file and projects it using the `d3.geo.mercator` projection, with the map centered and scaled to fit the view. The code uses `d3.json` to fetch the data and `d3.geo.path` to generate SVG paths for each feature, styling them as the "zipcode" class. The page includes a YouTube tutorial video in an iframe, and the map is rendered as an SVG element with a blue sphere background.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed