Published
Edited
Jan 31, 2021
1 fork
13 stars
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
renderNote = (value, idx) => {
const div = html`<div>${scale[idx]}</div>`;
div.style.backgroundColor = `rgba(0,${Math.round(255 * value)},0,1)`;
div.style.textAlign = "center";
div.style.float = "left";
div.style.width = "2.5em";
div.style.border = "1px solid #333";
return div;
}
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