Skip to main content
100%

Fork of Multivariate Choropleth Live Coded at Outlier

✓ Published0🌍 Public
AAlex Haynes
Last edited Mar 28, 2022
Created on Mar 28, 2022

This fork of a multivariate choropleth live-coded at Outlier maps New York census tracts, blending colored layers to visualize population counts across racial groups. Green, orange, and magenta fills represent white, Black, and Asian residents respectively, with each color’s intensity scaled by a d3.scaleSqrt. The code loads TopoJSON tract boundaries and American Community Survey data via d3.json, then composites the three semi-transparent scales using the color-blend library’s multiply operation. d3.geoPath renders the SVG paths, while d3.zoom enables panning and zooming over the dark canvas.

AI-generated description

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

This uses a linear scale that varies in opacity only.

<iframe height="300" width="960" src="https://vizhub.com/curran/e73025c231e445e09cbdfa9f421246e8?mode=snippet&file=index.js#L80-85" title="Opacity Linear Scale" frameborder="0" ></iframe>

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