{
const xy = {x: "year", y: "car", z: "format", order: "appearance", reverse: true};
return Plot.plot({
y: {
grid: true,
label: "↑ Annual revenue (billions, adj.)",
transform: d => d / 1000
},
marks: [
Plot.areaY(riaa, Plot.stackY({...xy, fill: "group", title: d => `${d.format}\n${d.group}`})),
Plot.lineY(riaa, Plot.stackY1({...xy, stroke: "white", strokeWidth: 1})),
Plot.ruleY([0])
],
color: {legend: true}
});
}