Unlisted
Edited
Sep 24, 2023
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.barX(data, {y: (d) => d.name, x: (d) => d.value})
]
})
Insert cell
Plot.plot({
marks: [
Plot.barX(data, {y: {value: (d) => d.name}, x2: (d) => d.value})
]
})
Insert cell
data = [
{name: "a", value: 1},
{name: "b", value: 3},
{name: "c", value: 2}
]
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