Plot.plot({
marginLeft: 125,
x: { grid: true },
y: { label: "City" },
color: { legend: true },
marks: [
Plot.barX(
productRecallsInMMakeovermonday0522Queryresult,
Plot.groupY(
{ x: "count" },
{
y: "recalling_firm_city",
fill: "product_type",
sort: { y: "x", limit: 10, reverse: true }
}
)
),
Plot.ruleX([0])
]
})