Plot.plot({
title: "Units Ordered by Month",
x: { label: "Pizza Flavor" },
y: { label: "Orders", grid: true },
marginLeft: 60,
marks: [
Plot.barY(
pizzaorder_filtered_month,
Plot.groupX(
{ y: "sum" },
{ y: "total", x: "flavor", fill: "flavor", sort: { x: "y", reverse: true } },
)
)
]
})