Skip to main content
100%

Fork of New York Census Tracts Demographics: Black, Sqrt scale

✓ Published1🌍 Public
CCurran Kelleher
Last edited Jan 27, 2021
Created on Jan 27, 2021

This example visualizes the Black population distribution across New York census tracts, using a sequential square-root scale with the orange color palette to emphasize differences in population counts. The map supports pan and zoom interactions, with hover effects highlighting individual tracts. The code fetches demographic data from the American Community Survey API and combines it with TopoJSON geographic boundaries, rendering the result as SVG paths using `d3.geoPath`. It employs `d3.scaleSequentialSqrt` and `d3.interpolateOranges` for color encoding, with zoom handled by `d3.zoom`.

AI-generated description

An intermediate state on the way towards trying to visualize multidimensional data for census tracts. The more orange it is, the more black people there are.

Data from bl.ocks.org: New York Census Tracts by Mike Bostock.

Fetching of American Community Survey data inspired by Observable: Racial distribution in NC by Mark McClure.

The variables used are documented in the ACS API Reference.

MIT Licensed

Similar vizzes