New York Census Tracts Demographics: Black, Log scale
This example visualizes the racial demographics of New York census tracts, focusing on the Black population using a sequential log color scale that maps darker oranges to higher counts. It renders an SVG map of tracts using d3.geoPath and topojson, with geographic data from a local GeoJSON file and demographic data fetched live from the American Community Survey API. The map supports zooming and panning through d3.zoom, and tract details are printed to the console on mouse hover.
AI-generated descriptionAn 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.