histogram = (key) => (arr, i, parentArr) =>
Plot.plot({
width: 80,
height: 20,
axis: null,
x: { domain: d3.extent(data.flatMap((d) => d[key])) },
marks: [
Plot.rectY(arr, Plot.binX({ y: "count" }, { inset: 0 })),
Plot.ruleY([0], { stroke: "#eee" })
]
})