Public
Edited
Oct 12, 2024
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
coinFlipData = data.map(d => ({
moduloResult: BigInt(d.rnd) % BigInt(2)
}));
Insert cell
Insert cell
coinFlipResultCount = d3.rollup(coinFlipData, v => v.length, d => d.moduloResult)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
resultCounts.get(5289n)

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