Published
Edited
Sep 29, 2021
Insert cell
Insert cell
dates = d3.range(42).map(i => d3.randomInt(1600,2021)()).sort()
Insert cell
viewof date = {
const form = html`<form><input name=i min=0 max=${dates.length-1} step=1 type=range>`
form.i.value = form.value ?? 5;
form.value = dates[form.i.value];
form.i.oninput = () => form.value = dates[form.i.value] ;
return form;
}
Insert cell
date
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