Plot.plot({
width: 928,
height: 1200,
y: {label: null},
x: {axis: "top", tickFormat: "s"},
color: {scheme: "Spectral", legend: "ramp", width: 340, label: "Age (years)"},
marks: [
Plot.barX(tidy, {
y: "state",
x: "population",
fill: "age",
sort: {color: null, y: "-x"}
})
]
})