Public
Edited
May 24, 2023
Insert cell
Insert cell
Plot.plot({
marginLeft: 160,
y: { ticks: 0, label: null, tickFormat: null, tickSize: 0 },
marks: [
Plot.barX(data, {
x: "iq",
y: "region",
fill: "region",
sort: { y: "x", reverse: true }
}),
Plot.text(data, {
x: 0,
y: "region",
text: "region",
textAnchor: "start",
dx: 5
}),
Plot.text(data, {
x: "iq",
y: "region",
text: "iq",
textAnchor: "end",
dx: -5
})
]
})
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