Platform
Solutions
Resources
Pricing
Sign in
Sign up
wolfiex
Workspace
Fork
Public
By
wolfiex
Edited
Mar 2, 2023
1
Insert cell
Insert cell
workbook
=
FileAttachment
(
"rota.xlsx"
)
.
xlsx
(
)
Insert cell
shifts
=
new
Map
(
workbook
.
sheet
(
"Shifts"
)
.
slice
(
1
)
.
map
(
(
d
)
=>
[
d
.
A
,
d
]
)
)
Insert cell
sheet
=
workbook
.
sheet
(
workbook
.
sheetNames
[
0
]
)
//, { range: "B2:J" })
Insert cell
Inputs
.
table
(
sheet
)
Insert cell
dates
=
sheet
.
map
(
(
d
)
=>
d
.
B
)
.
slice
(
1
)
Insert cell
names
=
Object
.
entries
(
sheet
[
0
]
)
Insert cell
viewof
name
=
Inputs
.
select
(
names
,
{
label
:
"Select a name."
,
format
:
(
x
)
=>
x
[
1
]
,
value
:
(
x
)
=>
x
[
0
]
}
)
Insert cell
name
Insert cell
selection
=
sheet
.
slice
(
1
)
.
map
(
(
d
)
=>
d
[
name
[
0
]
]
)
Insert cell
Insert cell
Insert cell
sheet
Filter
1
Columns
15
Sort
Slice
Save
Type Table, then Shift-Enter. Ctrl-space for more options.
Insert cell
sheet
Insert cell
selection
Filter
Columns
Sort
Slice
Save
Type Table, then Shift-Enter. Ctrl-space for more options.
Insert cell
//sheet.shift()
Insert cell
var
cal
=
ics
(
)
;
cal
.
addEvent
(
'Demo Event'
,
'This is an all day event'
,
'Nome, AK'
,
'8/7/2013'
,
'8/7/2013'
)
;
cal
.
addEvent
(
'Demo Event'
,
'This is thirty minute event'
,
'Nome, AK'
,
'8/7/2013 5:30 pm'
,
'8/7/2013 6:00 pm'
)
;
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
workbook
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
shifts
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sheet
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dates
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
names
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
name
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
selection
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
sheet
File attachments
Databases
Filter
B
Operator
Column
Operator
Columns
Sort
Column
Direction
Descending
Ascending
Slice
From
Start
To
End
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
selection
File attachments
Databases
Filter
Column
Operator
Columns
Sort
Column
Direction
Descending
Ascending
Slice
From
Start
To
End
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML