Public
Edited
Apr 5, 2024
Insert cell
Insert cell
{
const change = Plot.valueof(aapl, (d, i, data) => d.Close - data[0].Close);
const absmax = d3.max(change, Math.abs);
return Plot.plot({
y: {
domain: [-absmax, +absmax]
},
marks: [
Plot.ruleY([0]),
Plot.lineY(aapl, {x: "Date", y: change})
]
});
}
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