Plot.plot({
title: "Provincias y población promedio",
marginLeft: 250,
marks: [
Plot.barX(data_2c, {
x: "personas",
y: "provincia",
sort: { y: "x", reverse: true },
tip: true
}),
Plot.ruleX([d3.mean(data_2c, (d) => d.personas)], { stroke: "steelblue" })
]
})