Plot.plot({
marginLeft: 300,
y: { label: "Person state" },
x: { label: "Quantity" },
color: {scheme: "Paired"},
marks: [
Plot.barX((await getData('data?preset=antiwar&language=en')).data, Plot.groupY(
{ x: "count" },
{ fill: "gender_en", y: "persecution_location_en", tip: true, sort: { y: "x", reverse: true } }
))
]
})