Platform
Resources
Pricing
Sign in
Get started
James Goldie
Data and Digital Storytelling Lead @ 360info.org, hosted by Monash University. ❤️ making things for fun and for social good!
Workspace
Fork
Public
By
James Goldie
Edited
Mar 18, 2024
ISC
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
monthTimer
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
currentMonth
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
storyStep
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML