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
Ssriramvsharma
Last edited Aug 4, 2020
Created on Aug 4, 2020

This example visualizes U.S. county boundaries as a natural Earth projection map, with the sphere background filled in blue and country shapes rendered in light green. It loads GeoJSON data from a freeCodeCamp choropleth dataset and uses `d3.geoPath` with `d3.geoNaturalEarth1` to project and draw the paths. The code selects an SVG element, appends a sphere path, then joins the TopoJSON features to append individual county paths using D3's data join. The map is static, with no interaction or animation beyond the initial rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed