Plot.plot({
width: width,
y: {
grid: true,
label: "↑ count"
},
x: { domain:[start, range.ceil(d3.max(data, d=>d.date))], nice:range},
marks: [
Plot.rectY(data, Plot.binX({y: "count"}, {x: k => k.date, thresholds: range, fill: "#444791"})),
Plot.ruleY([0])
]
})