Platform
Resources
Pricing
Sign in
Get started
Michele Mauri
Workspace
Fork
Public
By
Michele Mauri
Edited
Mar 21, 2024
Insert cell
Insert cell
viewof
amount
=
Inputs
.
range
(
[
0
,
4
]
,
{
label
:
"Lamps per color"
,
step
:
1
,
value
:
1
}
)
Insert cell
lamps
=
d3
.
cross
(
[
"r"
,
"g"
,
"b"
]
,
amount
)
Insert cell
{
const
svg
=
d3
.
create
(
"svg"
)
.
attr
(
"viewBox"
,
[
0
,
0
,
width
,
200
]
)
;
return
svg
.
node
(
)
;
}
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
Pin
Add comment
Select
Duplicate
Copy link
Embed
Delete
amount
Unpin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
lamps
Unpin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
Unpin
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
JavaScript
Markdown
HTML
JavaScript
Markdown
HTML