Plot.plot({
width: 1000,
height: 2000,
y: {label: null},
x: {axis: "top", tickFormat: "s"},
color: {type: 'categorical',
domain: ["Teaching","Research Environment","Research Quality","International Outlook","Industry"],
range: ["#7e26f0","#ff1786", "#ff950a","#a0ff26","#0dc4fc"],
legend: "ramp", width: 600, label: "Ranking metric"},
marks: [
Plot.barX(tidy, {
y: "university",
x: "score",
fill: "metric",
sort: {color: null, y: "-x"},
})
],
marginLeft: 500,
style: "font-size: 20px; color: white; background: #222222"
})