Public
Edited
May 11, 2023
5 forks
3 stars
Insert cell
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,
Plot.stackY(
{ order, reverse },
{ x: "year", y: "revenue", z: "format", fill: "group" }
)
),
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