Plot.plot({
title:
"Delay between request for school assignment request and final school assignment",
facet: { data: request_delay, y: "type", marginRight: 100 },
marks: [
Plot.rectY(
request_delay,
Plot.binX({ y: "count" }, { x: "delay", thresholds: 20 })
),
Plot.ruleY([0]),
Plot.ruleX([0]),
Plot.ruleX([10], { stroke: "red" }),
Plot.axisFy({ lineWidth: 8 })
]
})