Plot.plot({
style: 'overflow: visible;',
width: width,
y: {
grid: true,
label: `↑ Frequency (Number of Months)`,
},
x: {
grid: true,
label: `Sequence Returns (CAGR normalized)`
},
facet: {
data: selectedStrategyAggregateData,
y: "window_length",
label: "Sequence Length (Months)",
},
marks: [
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.lineY(
selectedStrategyAggregateData, Plot.binX(
{y: "count"},
{x: "period_return", stroke: "strategy", strokeWidth: 3, label: "count"}
)
),
],
})