Plot.plot({
marginLeft: 60,
marginRight: 150,
width: 1000,
label: null,
x: {label: "Frequency"},
y: {padding: 0},
marks: [
Plot.barX(transactions.filter(d => d.category === 'Coffee'), {fy: "name", y: "count", x: 1, inset: 0, fill: "amount"}),
Plot.ruleX([0])
]
})