Public
Edited
Jun 20, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data_from_api = {
getDataButton;
const data = await getData(apiUrl);
return data;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
example_data = () => {
sendData; // generates new random data on the button click
sendData2;
const data = {
data_id: new Date().valueOf().toString(),
name: shortName(),
countries: countries(),
score: Math.floor(Math.random() * 100),
fav: "Favourite character: " + fav(),
random_text: readable(),
notebook_id: notebookID // Unique and persistent notebook identifier. Changes when the notebook is forked
};
return data;
}
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