Plot.plot({
width,
marginLeft: 150,
x: {
label: "TWh",
axis: "top",
},
y: {
label: "",
},
marks: [
Plot.barX(top10, {
y: "country",
x: "value",
fill: (d) => d.source === selectSource ? "red" : "#ddd",
stroke: "#bbb",
sort: {y: "x", reverse: true}
}),
]
})