Published
Edited
Aug 12, 2022
Insert cell
Insert cell
chart = Plot.plot({
marks: [Plot.barX(data, { x: x, y: y, fill: color })],
x: { grid: true },
line: true,
height: height,
marginLeft: margin.left,
marginRight: margin.right,
marginTop: margin.top,
marginBottom: margin.bottom
})
Insert cell
Insert cell
x = "frequency"
Insert cell
y = "letter"
Insert cell
color = "steelblue"
Insert cell
height = 500
Insert cell
margin = ({ top: 0, right: 0, bottom: 30, left: 30 })
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