Skip to main content
100%

U.S. Counties TopoJSON Mesh

✓ Published0🌍 Public
Mmbostock
Last edited Jan 24, 2017
Created on Nov 16, 2012

This example renders a minimalist map of U.S. counties using a TopoJSON mesh from the U.S. Census Bureau’s shapefile, served via the `us-10m.v1.json` file. The SVG visualization displays county boundaries as thin black lines with rounded joins, and overlays small circles at each arc’s starting point, revealing the topological structure of the data. The code uses `d3.geoPath` to project the mesh and `topojson.mesh` to extract boundaries, while `topojson.transform` positions the circles. Rendering is entirely SVG-based with D3 v4, and the map uses no fill, focusing purely on geometric outlines.

AI-generated description

A demo of TopoJSON on a U.S. counties shapefile from the U.S. census bureau.

gpl-3.0 Licensed

Similar vizzes