Public
Edited
Feb 15, 2024
Insert cell
Insert cell
import { sheetsData } from "@amitkaps/getting-started-with-a-notebook"
Insert cell
data = sheetsData
Insert cell
Inputs.table(sheetsData, { width: 400 })
Insert cell
import { Wrangler, op } from "@observablehq/data-wrangler"
Insert cell
Wrangler(sheetsData)
Insert cell
foldedData = aq.from(data).fold(["sales", "profit"]).objects()
Insert cell
Inputs.table(foldedData, { width: 400 })
Insert cell
Plot.plot({
marks: [
Plot.frame(),
Plot.text(["Hello, world!"], { frameAnchor: "middle" })]
})
Insert cell
Plot.plot({
width: 200,
height: 100,
marks: [Plot.frame()]
})
Insert cell
Plot.plot({
x: { axis: null },
marks: [
Plot.barY(foldedData, { x: "key", y: "value", fill: "key", fx: "area" }),
Plot.ruleY([0])
]
})
Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
viewof table = Inputs.table(cars)
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