Unlisted
Edited
Jun 23, 2023
Insert cell
Insert cell
mutable times = null
Insert cell
Plot.lineY(times).plot()
Insert cell
Plot.lineY(times.map((d, i) => d - times[i - 1])).plot()
Insert cell
d3
.create("svg")
.call((g) =>
g
.append("circle")
.attr("cx", 0)
.attr("cy", 80)
.attr("r", 10)
.transition()
.duration(1000)
.ease(d3.easeLinear)
.attrTween("cx", () => {
mutable times = [];
return (t) => {
mutable times.push(t);
mutable times = mutable times;
return 280 * t;
};
})
)
.node()
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