Plot.plot({
y: { grid: true, label: "# Evictions" },
x: { label: "Month", round: true },
marks: [
Plot.rectY(
data,
Plot.binX(
{
y: "count"
},
{
x: {
thresholds: radios.toLowerCase(),
value: "executed_date"
},
tip: true,
inset: 0,
fill: color
}
)
),
Plot.ruleY([0])
]
})