Published
Edited
Jun 30, 2019
Insert cell
Insert cell
x
Insert cell
viewof x = html`<input type=range min=0 max=100 step=1>`
Insert cell
Insert cell
Insert cell
incrementDecrement(viewof x)
Insert cell
Insert cell
{
const input = html`<input type=range min=0 max=100 step=1>`;
viewof x.addEventListener("input", () => {
input.value = viewof x.value;
});
input.addEventListener("input", () => {
viewof x.value = input.value;
viewof x.dispatchEvent(new CustomEvent("input"));
});
return input;
}
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