Plot.plot({
width,
height: 250,
label: null,
x: {
axis: "top",
domain: [start, end]
},
y: {
grid: true
},
marks: [
Plot.ruleX(d3.utcDay.range(start, end), { strokeOpacity: 0.1 }),
Plot.ruleX([today], { stroke: "red" }),
Plot.barX(data, {
y: "NAME",
x: "DATE",
interval: d3.utcDay,
inset: 0,
fill: "COUNTRY",
title: (d) => `${d.NAME}\n${d.COUNTRY}`,
clip: true
})
]
})