Plot.plot({
marginBottom: 100,
x: {label: null, tickRotate: -45},
y: {grid: true},
color: {legend: true},
marks: [
Plot.barY(data, Plot.groupX({y: "count"}, {
x: "theftdate", fill: "weapontype",
filter: d=>d.theftdate.startsWith("2022")
})),
Plot.ruleY([0]),
]
})