Public
Edited
Oct 2, 2024
1 fork
Insert cell
Insert cell
input radio...
Insert cell
//B01001_001E is Total Population
//B16001_042E is Persian speaking population (incl. Farsi, Dari)
//B16001_054E is Punjabi speaking populations

languageData = await d3.json(
"https://api.census.gov/data/2023/acs/acs1?get=NAME,B01001_001E,B16001_042E,B16001_054E&for=state:*"
)
Insert cell
Insert cell
languageStates[2].persian
Insert cell
Insert cell
Insert cell
Insert cell
test = d3.extent([20, 103, 13, 4, 40, 13, 12, 193,2])
Insert cell
test[0]
Insert cell
colors = [
{ waveLength: 425, color: "Indigo" },
{ waveLength: 630, color: "Orange" },
{ waveLength: 470, color: "Blue" },
{ waveLength: 600, color: "Yellow" },
{ waveLength: 400, color: "Violet" },
{ waveLength: 665, color: "Red" },
{ waveLength: 550, color: "Green" }
]
Insert cell
MinAndMax = d3.extent(colors, (s) => s.waveLength)
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