Platform
Resources
Pricing
Sign in
Get started
Ralph Spandl
Workspace
Fork
Public
By
Ralph Spandl
Edited
Jan 19, 2023
Insert cell
Insert cell
startArray
=
[
{
a
:
1
,
b
:
1
,
c
:
1
,
color
:
{
r
:
0
,
g
:
0
,
b
:
0
}
}
,
{
a
:
1
,
b
:
1
,
c
:
1
,
color
:
{
r
:
0
,
g
:
0
,
b
:
0
}
}
,
{
a
:
1
,
b
:
1
,
c
:
1
,
color
:
{
r
:
0
,
g
:
0
,
b
:
0
}
}
,
]
Insert cell
endArray
=
[
{
a
:
10
,
b
:
10
,
c
:
10
,
color
:
{
r
:
200
,
g
:
200
,
b
:
200
}
}
,
{
a
:
12
,
b
:
12
,
c
:
12
,
color
:
{
r
:
200
,
g
:
200
,
b
:
200
}
}
,
{
a
:
16
,
b
:
16
,
c
:
16
,
color
:
{
r
:
200
,
g
:
200
,
b
:
200
}
}
,
]
Insert cell
{
const
interpolator
=
d3
.
interpolate
(
startArray
,
endArray
)
;
return
interpolator
(
0.7
)
;
}
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
startArray
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
endArray
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML