Fork of Fork of Fork of Grid Sampling on Census Tracts - Coloring by Data
This visualization displays New York City census tracts as a grid of colored squares, where each square’s color intensity represents the Black population count within the tract containing that grid point. The map supports drag-to-pan and zoom interactions, using a geographic orthographic projection. It relies on D3’s `geoOrthographic` and `geoPath`, alongside Turf’s `booleanPointInPolygon` and an RBush spatial index for efficient point-in-polygon queries. Data comes from the 2023 Census Bureau shapefiles and American Community Survey demographics, both loaded as JSON.
AI-generated descriptionData for New York census tracts, downloaded from https://www.census.gov/cgi-bin/geo/shapefiles/index.php?year=2023&layergroup=Census+Tracts and processed using https://mapshaper.org/.
Data resides in Gist: New York City Census Tracts.
See also: