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
KKonstantin Krumin
Last edited Apr 9, 2020
Created on Apr 9, 2020

This example demonstrates how to create a choropleth map of U.S. counties using D3.js and TopoJSON. It renders a geographic projection with the `d3.geoAlbersUsa()` projection and `d3.geoPath()`, drawing landmasses as light green paths over a blue sphere. The map fetches county boundary data from the freeCodeCamp CDN, processes it with TopoJSON’s `feature()` function, and appends each country as an SVG path. The visualization uses an SVG canvas and is accompanied by a video tutorial, showcasing a straightforward workflow for building interactive maps.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed