Platform
Resources
Pricing
Sign in
Get started
Bryan Gin-ge Chen
here to learn
Workspace
Fork
Published unlisted
By
Bryan Gin-ge Chen
Edited
Mar 6, 2019
1 star
Insert cell
Insert cell
{
const
hello
=
html
``
;
Runtime
.
load
(
notebook1
,
(
variable
)
=>
{
if
(
variable
.
name
===
"canvas"
)
return
{
fulfilled
:
(
value
)
=>
{
while
(
hello
.
firstChild
)
{
hello
.
removeChild
(
hello
.
firstChild
)
;
}
hello
.
appendChild
(
value
)
;
}
}
;
}
)
;
return
hello
;
}
Insert cell
notebook1
=
(
await
importModule
(
"https://api.observablehq.com/@mbostock/fullscreen-canvas.js"
)
)
.
default
Insert cell
Runtime
=
(
await
require
(
'@observablehq/runtime'
)
)
.
Runtime
Insert cell
import
{
importModule
}
from
'@bryangingechen/dynamic-import-polyfill'
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
notebook1
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Runtime
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML