Plot.plot({
color: {
legend: true
},
y:{
grid: true,
nice: true,
label: "Z-Score"
},
x:{
grid: true,
nice: true
},
marks: [
Plot.dot(data_standardized_filtered, {
x:"Date",
y: "VolumeStandardized",
r: 3,
fill: "blue",
title: d => (d["Volume"] / 1_000_000_000).toFixed(1) + " Billion USD",
opacity: 0
}),
Plot.dot(data_standardized_filtered, {
x:"Date",
y: "CloseStandardized",
r: 3,
fill: "red",
title: d => d["CloseStandardized"].toFixed(1) + "USD",
opacity: 0
}),
Plot.lineY(data_standardized_filtered, {
x: "Date",
y: "CloseStandardized",
stroke:"salmon"
}),
Plot.lineY(data_standardized_filtered, {
x: "Date",
y: "VolumeStandardized",
stroke:"dodgerblue",
curve: "step"
})
]
})