Public
Edited
Feb 24, 2024
Paused
Importers
9 stars
Insert cell
Insert cell
Insert cell
viewof myTimeSelection = timeRange(
new Date(2023, 0, 1),
new Date(2024, 11, 31),
{ interval: "month" }
)
Insert cell
Insert cell
myTimeSelection
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
clip: true,
x: { domain: yearZoom }, // The time slider, which reports the selected start and end dates, maps directly to the zoomed domain.
marks: [
Plot.areaY(aapl, {
x: "Date",
y: "Close",
fill: "firebrick",
opacity: 0.1
}),
Plot.lineY(aapl, { x: "Date", y: "Close" })
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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