Public
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.
Learn more