Public
Edited
May 20, 2018
Fork of Sinebow
Insert cell
Insert cell
Insert cell
function interpolateSinebow(t) {
return t = 0.5 - t, d3.rgb(
255 * Math.sin(Math.PI * (t + 0 / 3)) ** 2,
255 * Math.sin(Math.PI * (t + 1 / 3)) ** 2,
255 * Math.sin(Math.PI * (t + 2 / 3)) ** 2
);
}
Insert cell
Insert cell
Insert cell
function interpolateRainbow(t) {
return t = (t + 0.2) % 1, d3.cubehelix(
360 * t - 100,
1.5 - 1.5 * Math.abs(t - 0.5),
0.8 - 0.9 * Math.abs(t - 0.5)
);
}
Insert cell
Insert cell
Insert cell
function interpolateAngry(t) {
return d3.hsl(
t * 360,
1,
0.5
);
}
Insert cell
Insert cell
Insert cell
Insert cell
chartRgb(interpolateSinebow)
Insert cell
chartRgb(interpolateRainbow)
Insert cell
chartRgb(interpolateAngry)
Insert cell
Insert cell
chartL(interpolateSinebow)
Insert cell
chartL(interpolateRainbow)
Insert cell
chartL(interpolateAngry)
Insert cell
Insert cell
chartDifference(interpolateSinebow)
Insert cell
chartDifference(interpolateRainbow)
Insert cell
chartDifference(interpolateAngry)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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