Published
Edited
Mar 30, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// to change to another state just swap the state_abbr variable to whatever state you're interested in. Depending on which state you select, you might want to change the limit on the number of rows that the API returns :)
data={
let state_abbr='SC'
let data=d3.csv(`https://healthdata.gov/resource/anag-cw7u.csv?$limit=10000&&state=${state_abbr}`,d3.autoType)
return data
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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