multiline = Plot.plot({
width: width,
height: 420,
marginRight: 120,
color: {
type: "sequential",
scheme: "purples",
},
marks: [
Plot.lineY(pizza.filter( d => d.name !== maxOrderedPizzaName), Plot.binX({y: 'sum'}, {
x: "order_date",
y: "orders",
z: "name",
opacity: 0.7,
stroke: "orders",
interval: d3.utcWeek
}))
,
Plot.lineY(pizza.filter( d => d.name === maxOrderedPizzaName), Plot.binX({y: 'sum'}, {
x: "order_date",
y: "orders",
stroke: "red",
interval: d3.utcWeek,
tip: true
})),
Plot.tip(
[`${maxOrderedPizzaName}`],
{x: new Date("2022-09-01"), y: 10, dy: -320, anchor: "bottom-right", strokeWidth: 1, fontWeight: "bold"}
),
]
})