Platform
Resources
Pricing
Sign in
Get started
Jonas Almeida
NCI/DCEG Chief Data Scientist
Workspace
Fork
Published
By
Jonas Almeida
Edited
Jul 13, 2021
Insert cell
Insert cell
//plcoMod = require("http://localhost:8000/plco/plcoMod.js")
plcoMod
=
require
(
"https://episphere.github.io/plco/plcoMod.js"
)
Insert cell
{
let
div
=
DOM
.
element
(
"div"
)
;
let
x
=
[
...
Array
(
100
)
]
.
map
(
(
a
,
i
)
=>
i
)
;
let
trace
=
{
x
:
x
,
y
:
x
.
map
(
(
xi
)
=>
Math
.
sin
(
xi
/
10
)
+
Math
.
random
(
)
-
0.5
)
}
;
plcoMod
.
Plotly
.
newPlot
(
div
,
[
trace
]
)
;
return
div
;
}
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
plcoMod
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML