disclaimer = (y, peakYear) => [
Plot.ruleX([1937], { stroke: "#ccc", strokeDasharray: [6, 9] }),
Plot.text(
[{ text: "People born before 1937 may\nnot have registered with the SSA" }],
{
x: peakYear < 1937 ? 1937.5 : 1936.5,
y,
text: "text",
frameAnchor: peakYear < 1937 ? "left" : "right",
fill: "#999",
fontWeight: 500
}
)
]