Public
Edited
Dec 19
1 star
Insert cell
Insert cell
Insert cell
viewof ts = TimeWidget(data, {
x: "Date",
y: "Low",
id: "stock",
width: "900"
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
TimeWidget = {
try {
return await require(`http://localhost:8080/dist/TimeWidget.js?${Date.now()}`);
} catch (e) {
return await require("time-widget@0.0.25");
}
}
Insert cell
Insert cell
data = FileAttachment("sp500_20-22.csv")
.csv({
typed: true
})
.then((d) => d.filter((d) => d.stock !== "BRK-A")) // Filter an outlier
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