Public
Edited
Mar 9, 2023
Insert cell
Insert cell
Insert cell
Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
marks: [Plot.ruleY([0]), Plot.lineY(data, { x: "date", y: "value" })]
})
Insert cell
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.lineY(data, Plot.windowY({x: "date", y: "value", k: 10, reduce: "mean"}))
]
})
Insert cell
year = data[yearIndex].date
Insert cell
function deflate(index) {
return data[data.length - 1].value / data[index].value;
}
Insert cell
poundToday = deflate(yearIndex)
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