Unlisted
Edited
Apr 24, 2023
2 stars
Insert cell
Insert cell
Insert cell
Plot.plot({
y: {
grid: true,
label: "↑ Annual revenue (billions, adj.)",
transform: (d) => d / 1000 // convert millions to billions
},
color: {legend: true},
marks: [
Plot.areaY(riaa, {x: "year", y: "revenue", z: "format", fill: "group", order}),
Plot.ruleY([0])
]
})
Insert cell
riaa = FileAttachment("riaa-us-revenue.csv").csv({typed: true})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more