Public
Edited
Mar 3, 2023
Insert cell
Insert cell
SPY (1)@1.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
data = await FileAttachment("SPY (1)@1.csv").csv()
Insert cell
change = data.map(x => ({
...x,
date: new Date(x.Date).getDate(),
change: (x.Close - x.Open) / x.Open
}))
Insert cell
Plot.plot({
marks: [
Plot.boxX(change, {x: "change", y: "date", sort: {y: "x"}})
]
})
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