Public
Edited
Jun 14, 2023
1 star
Insert cell
Insert cell
OWNER = "OWNER"
Insert cell
REPO = "REPO"
Insert cell
PATH = "data.csv"
Insert cell
Insert cell
file = (await fetch(
`https://api.github.com/repos/${OWNER}/${REPO}/contents/${PATH}`,
{
headers: {
authorization: `token ${Secret("GITHUB_ACCESS_TOKEN")}`,
accept: "application/vnd.github.v3+json",
["X-GitHub-Api-Version"]: "2022-11-28"
}
}
)).json()
Insert cell
Insert cell
d3.csvParse(atob(file.content))
Insert cell
Insert cell
d3.csv(file.download_url)
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