Public
Edited
Mar 18, 2024
Insert cell
Insert cell
Insert cell
monthTimer = {
let i = 0
yield i
while(storyStep >= 3) {
yield Promises.tick(500).then(() => i++ % 12)
}
}
Insert cell
currentMonth = storyStep >= 3 ? monthTimer : 1
Insert cell
viewof storyStep = Inputs.range([1, 5], { value: 1, step: 1 })
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