Plot.plot({
width: 720,
height: 420,
facet: {
data: pizza,
y: "pizza_name",
x: "size",
marginRight: 90,
label: ""
},
color: {
legend: true,
domain: ["Classic", "Specialty", "Vegetarian"],
range: ["purple", "orange", "green"]
},
marks: [
Plot.areaY(pizza, Plot.binX({y: 'sum'}, {
x: "order_date",
y: "orders",
interval: d3.utcWeek,
tip: true,
fill: "category",
})),
Plot.ruleY([0])
],
y: {
tickFormat: d => ""
}
})