Plot.plot({
label: null,
x: {
axis: "top",
label: "← Victims · Number of Incidents (2022 - 2023) · Culprits →",
labelAnchor: "center",
tickFormat: Math.abs
},
marks: [
Plot.barX(demographics_incidents, {
x: "count_victims",
y: "country",
filter: (d) => i < 10,
sort: { y: "-x" },
fill: "blue"
}),
Plot.text(demographics_incidents, {x: "count_victims", y: "country", text: "count_victims", dx: +10}),
]
})