Blocky Counties
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Dec 4, 2012
This example visualizes the lat-lon bounding box for each county in the United States, rendering blocky, rectangular outlines instead of the actual county shapes. The map uses the Albers USA projection and displays all county bounding boxes as steel-blue, stroked paths on an SVG canvas. The code loads US county data from a JSON file, then applies `d3.geo.bounds` to compute each county’s geographic extent, which is drawn via a single `d3.geo.path` object. It relies on the `d3.geo` module and `topojson.feature` to filter and structure the geographic features.
AI-generated descriptionThis example uses d3.geo.bounds to draw the lat-lon bounding box for each county. Compare to the projected bounding box using path.bounds.
gpl-3.0 Licensed