Fork of Grid Sampling on Census Tracts - Optimized
This example visualizes New York City census tracts on an orthographic globe projection, styled as a choropleth-like grid of points sampling each tract’s interior. The visualization shows demographic data from the U.S. Census Bureau’s 2023 ACS estimates. It uses `geoOrthographic`, `geoPath`, and a custom `map` module to render tract boundaries and a uniform grid of points, with an RBush spatial index and turf’s `booleanPointInPolygon` to test which grid points fall inside tracts. Drag and zoom interactions adjust the globe’s rotation and scale via `d3.drag` and `d3.zoom`.
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: