monthly_cases = Plot.plot({
marginTop: 20,
marginRight: 20,
marginBottom: 30,
marginLeft: 70,
width: 900,
color: {legend: true},
y: {
grid: true,
label: "MMCF"
},
x: {
grid: false,
label: selectedState
},
marks: [
Plot.areaY(usgas.filter(d => d.state == selectedState &&
d.process != "Delivered to Consumers" &&
d.date >= new Date("2020-01-01")), {x: "date", y: "y", fill: "process", tip: true, offset: "center"})
]
})