Public
Edited
Aug 4, 2023
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.rectY(
d3.range(10).map((d) => 0),
Plot.binX({ y: "sum" })
)
]
})
Insert cell
Plot.plot({
marks: [
Plot.rectY(
d3.range(10).map((d, i) => ({ x: 0 })),
Plot.binX({ y: "sum" }, { x: "x" })
)
]
})
Insert cell
Plot.plot({
marks: [
Plot.rectY(
d3.range(10).map((d, i) => ({ x: 0 })),
Plot.binX({ y: "sum" }, { x: { value: "x", thresholds: 10 } })
)
]
})
Insert cell
data = scaledSimplex(300, 0.1, 50, 0, 0, 10)
Insert cell
Insert cell
viewof selection = ((Plot) =>
Plot.plot({
height: 200,
marks: [
Plot.lineY(data, { x: "x", y: "y" }),
Plot.brushX(data, { x: "x", selection: [] })
]
}))(Plot71)
Insert cell
Insert cell
Insert cell
Insert cell
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