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"}))
]
})