Published
Edited
Sep 10, 2020
Insert cell
Insert cell
Insert cell
function getLabComplement(col) {
const c = d3.lab(col);
c.a = -c.a;
c.b = -c.b;
const rgbC = d3.color(c);
return rgbToHex(rgbC.r, rgbC.g, rgbC.b);
}
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