Platform
Resources
Pricing
Sign in
Get started
Ali Rivera
Workspace
Fork
Public
By
Ali Rivera
Edited
Feb 8, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
count
=
200
Insert cell
Insert cell
Insert cell
Insert cell
randColor
=
(
)
=>
{
let
r
=
Math
.
random
(
)
*
255
;
let
g
=
Math
.
random
(
)
*
255
;
let
b
=
Math
.
random
(
)
*
255
;
return
"rbg("
+
r
+
","
+
g
+
","
+
b
+
")"
}
Insert cell
randColor
(
)
Insert cell
boxes
=
d3
.
select
(
mosiac
)
.
selectAll
(
"div"
)
.
data
(
d3
.
range
(
count
)
)
.
join
(
"div"
)
Insert cell
Insert cell
randLocation
=
(
)
=>
Math
.
random
(
)
*
400
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
count
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
randColor
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
boxes
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
JavaScript
Markdown
HTML