Plot.plot({
x: {grid:true , nice:true},
y: {grid:true, nice:true , label: "Z-score"},
marks: [
Plot.lineY(data_standardized_filter, {
x: "Date",
y: "CloseStandardized",
stroke: "salmon",}),
Plot.lineY(data_standardized_filter, {
x: "Date",
y: d => d["VolumeStandardized"],
curve: "step",
stroke: "dodgerblue", }),
Plot.dot(data_standardized_filter, {
x: "Date",
y: "CloseStandardized",
fill: "salmon",
title: d => d3.format(" .3s")(d["Close"]) + " USD" ,
r: 1.5,
}),
Plot.dot(data_standardized_filter, {
x: "Date",
y: d => d["VolumeStandardized"],
fill: "dodgerblue",
title: d => (d3.format(" .3s")(d["Volume"] / 1_000_000_000)) + " Billions USD",
r: 1.5,
})
]
})