Plot.plot({
marks: [
Plot.axisY({fontSize:12, marginLeft: 50}),
Plot.ruleY([0]),
Plot.lineY(pizzaorders_selectedState, Plot.groupX({y: "sum"}, {x: "orderDate", y: "total", z: "category", stroke: "category", title: "category"}))
],
color : {
legend: true
},
y: {domain: [0,45000]}
})