Plot.plot({
x: { label: "Total Order" },
y: { label: "Pizza Type" },
marginLeft: 160,
color: { legend: true },
marks: [
Plot.frame({ strokeOpacity: 0.1 }),
Plot.barX(
pizzaorders23,
Plot.groupY(
{ fill: "sum", x: "sum" },
{ fx: "Day of the Week", x: "orders", y: "name", fill: "orders", tip: true,sort: {y: "-x"} }
)
),
Plot.ruleX([0])
]
})