Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js!

Public visualization

Let's make a map with D3.js!

0 stars0🌍 Public
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