Plot.plot({
x: {
ticks: 29,
tickSpacing: 100,
tickFormat: (d) => (d > 30 ? "30+" : d)
},
marks: [
Plot.rectY(data, {
x1: "minute",
x2: (d) => d.minute + 1,
y: "count",
fill: "blue",
inset: 2,
tip: true
}),
Plot.ruleX([10.67], { stroke: "orange", strokeWidth: 2, tip: true })
]
})