Public
Edited
Jan 7, 2023
Paused
1 fork
1 star
Insert cell
Insert cell
Insert cell
data = []
Insert cell
Insert cell
viewof counter = Inputs.button("Add one observation", {
value: null,
reduce: () => data.push({ x: Math.random() })
})
Insert cell
Insert cell
reactive_barplot = (counter,
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.rectY(data, Plot.binX({ y: "sum" }, { x: "x", thresholds: 10 }))
]
}))
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