Plot.plot({
marks: [
Plot.barY(data, {
x: "Merchant_Category",
y: "Transaction_Amount",
sort: {x: "y", reverse: true}
}),
Plot.ruleY([0])
],
x: {
label: "Merchant Category",
tickRotate: 45
},
y: {
label: "Mean Transaction Amount ($)"
},
marginBottom: 100
})