Plot.plot({
marks: [
Plot.barX(pizzaorders, Plot.groupY({x: "count"}, {y: "name", sort: {y: "x", reverse: false},
fill: d => d.category === "Vegetarian" ? "#b6d7a8" : (d.category === "Specialty" ? "#8e81b7" : "lightgray")})),
Plot.ruleX([0])
],
marginLeft: 50,
width
})