Plot.plot({
marginBottom: 60,
x: {
tickRotate: -30,
},
y: {
transform: (d) => d / 1000,
label: "↑ Market value (US dollars, billions)",
grid: 5
},
marks: [
Plot.ruleY([0]),
Plot.barY(brands, {
x: "name",
y: "value",
sort: { x: "y", reverse: true, limit: 20 },
fill: "steelblue"
}),
]
})