Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Opacity Linear Scale

Public visualization

Viewing a saved revision (read-only)

3dd072f1501c49c9a9dd6f60b1a4a0e0

Fork of Opacity Linear Scale

0 stars0🌍 Public
MMaxene Graze
Last edited Feb 4, 2021
Created on Feb 4, 2021

This visualization shows the racial distribution of New York State census tracts, mapping the white population share using a green color scale where opacity varies linearly from fully transparent to fully opaque. The map uses `d3.geoPath` with TopoJSON data to render tract boundaries as SVG paths, while `d3.scaleLinear` maps each tract’s white population count to an rgba color string. Data comes from the American Community Survey via Mike Bostock’s census tract GeoJSON, with the color scale defined in code at lines 80–85.

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.