Platform
Resources
Pricing
Sign in
Get started
Dan Kerrigan
Ph.D. student at Northeastern
Workspace
Fork
Public
By
Dan Kerrigan
Edited
Oct 1, 2024
Insert cell
Insert cell
n
=
1000000
Insert cell
random
=
d3
.
randomUniform
(
)
Insert cell
maxes
=
Array
.
from
(
{
length
:
n
}
,
(
)
=>
Math
.
max
(
random
(
)
,
random
(
)
)
)
Insert cell
roots
=
Array
.
from
(
{
length
:
n
}
,
(
)
=>
Math
.
max
(
random
(
)
,
random
(
)
)
)
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
rectY
(
maxes
,
Plot
.
binX
(
{
y
:
"count"
}
)
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
rectY
(
roots
,
Plot
.
binX
(
{
y
:
"count"
}
)
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
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
n
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
random
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
maxes
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
roots
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML