Public
Edited
Apr 9, 2023
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// incomes = {
// let data = await fetch(
// "https://api.census.gov/data/2021/acs/acs5/pums?get=FFINCP,FINCP,FHINCP,HINCP&for=state:37"
// ).then((r) => r.json());
// let columns = data[0];
// data = data.slice(1).map((row) => Object.fromEntries(d3.zip(columns, row)));
// return data.filter((o) => o.FHINCP == 1);
// }
Insert cell
Insert cell
incomes = all_incomes
// .filter((o) => o.FFINCP == 1)
.map((o) => ({ income: o.HINCP }))
Insert cell
all_incomes = FileAttachment("nc_income.csv").csv({ typed: true })
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more