Plot.plot({
marginLeft: 90,
x: { axis: null },
y: { label: null },
marks: [
Plot.barX(brands, {
x: "value",
y: "name",
sort: { y: "x", reverse: true, limit: 10 }
}),
Plot.text(brands, {
text: d => `${Math.floor(d.value / 1000)} B`,
y: "name",
x: "value",
textAnchor: "end",
dx: -3,
fill: "white"
})
]
})