Plot.plot({
x: {
domain: stateage.ages,
label: "Age range (years) →",
labelAnchor: "right"
},
y: {
label: "↑ Population (%)",
percent: true,
grid: true
},
marks: [
Plot.ruleY([0]),
Plot.line(stateage, Plot.normalizeY("sum", {x: "age", y: "population", z: "state", strokeWidth: 1}))
]
})