Published
Edited
Oct 20, 2020
Importers
Insert cell
Insert cell
Insert cell
Insert cell
colorFullOpacity = randomColor()
Insert cell
colorHalfOpacity = randomColor(0.5)
Insert cell
randomColor = (opacity = 1) => {
return opacity === 1
? `rgb(${randVal()}, ${randVal()}, ${randVal()})`
: `rgb(${randVal()}, ${randVal()}, ${randVal()}, ${opacity})`;
}
Insert cell
randVal = () => Math.round(Math.random() * 255)
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