Unlisted
Edited
Aug 26, 2024
Insert cell
Insert cell
Plot.plot({
y: {
grid: true,
transform: (d) => d / 1e6,
label: "Daily trade volume (millions)"
},
marks: [
Plot.rectY(aapl.slice(-40), {x: "Date", interval: "day", y: "Volume"}),
Plot.ruleY([0])
]
})
Insert cell
Insert cell
Plot.plot({
x: {type: "band"},
y: {
grid: true,
transform: (d) => d / 1e6,
label: "Daily trade volume (millions)"
},
marks: [
Plot.rectY(aapl.slice(-40), {x: "Date", y: "Volume"}),
Plot.ruleY([0])
]
})
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