Plot.plot({
color: {
legend: true
},
y:{
grid: true,
nice: true,
label: "Z-Score"
},
x:{
grid: true,
nice: true
},
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 =>
`Close: ${ d3.format('.4s')(d["Close"]) }
Open: ${ d3.format('.4s')(d["Open"]) }
High: ${ d3.format('.4s')(d["High"]) }
Low: ${ d3.format('.4s')(d["Low"]) }`
}
)]
})