Plot.plot({
marginLeft: 400,
color: {
domain: ["1", "2", "3", "4", "5"],
range: ["grey", "orange", "red", "pink", "black"],
legend: true
},
marks: [
Plot.barX(dataset, {
y: data.accessors.y,
x: data.accessors.x,
fill: data.accessors.z,
order: "z",
sort: {
y: "-x"
}
})
]
})