Multivariate Choropleth
This example visualizes racial demographics across New York census tracts using a multivariate choropleth. The map blends three color scales—blue for White, green for Black, and red for Asian populations—into a single fill per tract, with hover tooltips showing exact counts. It uses the D3 library’s `geoPath` for rendering TopoJSON geometries and `scaleLinear` for each racial category, while the `colorBlend` library composites the overlapping colors. Data comes from the 2018 American Community Survey, fetched via JSON, and the visualization supports zooming through D3’s `zoom` behavior.
AI-generated descriptionA way to visualize multidimensional data for census tracts.
- Blue = White
- Green = Black
- Red = Asian
This is a first working version, not at all optimized or designed.
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.