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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more