Plot.plot({
width,
title: "Most Popular Pizza by Day of the Week (Taking into account the day with the most orders)",
subtitle: "Weekday (Monday-1, Tuesday-2, Wednesday-3, Thursday-4, Friday-5, Saturday-6, Sunday-7)",
color: { legend: true },
x: { label: "Weekdays", grid: true, axis: "top" },
y: { label: "Total Orders", grid: true },
fx: { label: "Years"},
marks: [
Plot.frame({ strokeOpacity: 0.1 }),
Plot.cell(Popular_Pizza, {
fx: "Order_Year",
x: "Order_Day",
y: "Total_Orders",
fill: "Name",
tip: true
})
]
})