Unlisted
Edited
Apr 21, 2023
Insert cell
Insert cell
Plot.plot({
y: {
type: "log",
grid: true,
label: "↑ Change in price (%)",
tickFormat: ((f) => (d) => f((d - 1) * 100))(d3.format("+d"))
},
marks: [
Plot.ruleY([1], {stroke: "red"}),
Plot.line(aapl, Plot.normalizeY("first", {x: "Date", y: "Close"}))
]
})
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