Public
Edited
Feb 14, 2024
Insert cell
Insert cell
a = 12
Insert cell
b = 12
Insert cell
a + b + range
Insert cell
viewof range = Inputs.range([0, 100], {label: "Amount", step: 1})
Insert cell
Insert cell
data.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
viewof color = Inputs.color({label: "Favorite color", value: "#4682b4"})
Insert cell
Plot.plot({
marks: [
Plot.barY(data, {
x: "area",
y: "sales",
fill: color,
sort: { x: "y", reverse: true }
}),
Plot.ruleY([0])
]
})
Insert cell
Plot.plot({
marks: [
Plot.dot(data, { x: "area", y: "sales", sort: { x: "y", reverse: true } }),
Plot.barY(data, { x: "area", y: "sales", sort: { x: "y", reverse: true } }),
Plot.ruleY([0])
]
})
Insert cell
Plot.plot({
marks: [Plot.tickX(data, { x: "area", y: "sales" })]
})
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