Skip to main content
Public

Share visualization

Loading preview…

Fork of Multivariate Choropleth Live Coded at Outlier

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Multivariate Choropleth Live Coded at Outlier

0
MMatthew Talty Colvard
Last edited Mar 13, 2021
Created on Mar 13, 2021

This example visualizes racial demographics across New York census tracts by blending colored transparent layers for white, black, and Asian populations. The map uses D3 v5 with `d3.geoPath` and TopoJSON to render tract polygons, while the `color-blend` library applies multiplicative blending of `scaleSqrt`-mapped opacity values for each racial group. Data comes from the American Community Survey API, fetched as JSON, with darker composite colors indicating higher population densities. The visualization supports interactive zoom via `d3.zoom` and hover logging of tract properties.

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.

Comments

Sign in to join the discussion.

MIT Licensed