Public
Edited
Oct 17, 2023
1 fork
Insert cell
Insert cell
data = FileAttachment("penguins.csv").csv({ typed: true })
Insert cell
viewof bins = Inputs.range([3, 20], { step: 1, label: "Bins" })
Insert cell
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.rectY(
data,
Plot.binX({ y: "sum" }, { x: "flipper_length_mm", thresholds: bins })
)
]
})
Insert cell
data
Type SQL, then Shift-Enter. Ctrl-space for more options.

Insert cell
data
Type SQL, then Shift-Enter. Ctrl-space for more options.

Insert cell
data
Type SQL, then Shift-Enter. Ctrl-space for more options.

Insert cell
penguins.csv
Type SQL, then Shift-Enter. Ctrl-space for more options.

Insert cell
data
Type SQL, then Shift-Enter. Ctrl-space for more options.

Insert cell
penguins.csv
Type SQL, then Shift-Enter. Ctrl-space for more options.

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