Published
Edited
Feb 23, 2022
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
blue = getColor(parseHexColor("#4A6E91"), parseHexColor("#A1C5E9"))
Insert cell
green = getColor(parseHexColor("#506C44"), parseHexColor("#C3DFB8"))
Insert cell
yellow = getColor(parseHexColor("#A99865"), parseHexColor("#FFEFBC"))
Insert cell
orange = getColor(parseHexColor("#A27546"), parseHexColor("#F9CD9E"))
Insert cell
Insert cell
Insert cell
html`<div style="display: flex">${swatch(blue)}${swatch(green)}${swatch(yellow)}${swatch(orange)}</div>`
Insert cell
html`<div style="display: flex">${swatch(blue, true)}${swatch(green, true)}${swatch(yellow, true)}${swatch(orange, true)}</div>`
Insert cell
[blue, green, yellow, orange].map(toHex)
Insert cell
[blue, green, yellow, orange].map(t => Math.round(t[3]*100))
Insert cell
html = htl.html
Insert cell
Insert cell
// WIP
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// WIP
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