block by mbostock 4330486

Bivariate Hexbin Map

Full Screen

This example shows how to use d3-hexbin for hexagonal binning on a map with the d3.geoAlbersUsa projection. Approximately 3,000 locations of Walmart stores are shown. These are binned into hexagons, and the hexagon area encodes the number of stores that fall into each bin. Color encodes the median age of Walmart stores in that area, with the oldest stores in black and the youngest stores in blue.

Updated Example →

index.html