Plot.plot({
x: {
grid: true,
nice: true
},
y: {
grid: true,
nice: true,
label: "Z-Score"
},
marks: [
Plot.lineY(data_standardized_filtered, {
x: "Date",
y: "CloseStandardized",
stroke: "salmon",
title: (d) => `Close: ${d3.format(".4s")(d["Close"])}
Open: ${d3.format(".4s")(d["Open"])}
High: ${d3.format(".4s")(d["High"])}
Low: ${d3.format(".4s")(d["Low"])}`
}),
Plot.lineY(data_standardized_filtered, {
x: "Date",
y: "VolumeStandardized",
stroke: "dodgerblue",
curve: "step",
title: d => d3.format(".4s")(d["Volume"])
})
]
})