Public
Edited
Oct 1, 2024
Insert cell
Insert cell
n = 1000000
Insert cell
random = d3.randomUniform()
Insert cell
maxes = Array.from({ length: n }, () => Math.max(random(), random()))
Insert cell
roots = Array.from({ length: n }, () => Math.max(random(), random()))
Insert cell
Plot.plot({
marks: [
Plot.rectY(maxes, Plot.binX({y: "count"})),
Plot.ruleY([0])
]
})
Insert cell
Plot.plot({
marks: [
Plot.rectY(roots, Plot.binX({y: "count"})),
Plot.ruleY([0])
]
})
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