Public
Edited
May 23, 2020
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
d3.extent(data.map(c => getValue(c[0], 'lch', 'c')))
Insert cell
Insert cell
rawdata = FileAttachment("css-color-keywords@1.json").json()
Insert cell
Insert cell
Insert cell
Insert cell
getValue = (color, space, channel) => {
const v = d3[space](color)[channel];
return v ? v : 0;
}
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