Public
Edited
Oct 19, 2022
1 star
Insert cell
Insert cell
values = Float32Array.from({ length: 2000 }, d3.randomLcg(0.42))
Insert cell
Plot.areaY(
d3.cumsum(values, (d, i) => (i % 2 ? -d : d)),
{ fill: (d) => d >= 0, z: null }
).plot()
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