Unlisted
Edited
Apr 20, 2023
1 fork
Insert cell
Insert cell
Plot.plot({
x: {percent: true, grid: true, axis: "both"},
marks: [
Plot.barX(alphabet, {x: "frequency", y: "letter"}),
Plot.ruleX([0])
]
})
Insert cell
Insert cell
Plot.plot({
x: {percent: true},
marks: [
Plot.axisX({anchor: "top"}),
Plot.axisX({anchor: "bottom", label: null}),
Plot.barX(alphabet, {x: "frequency", y: "letter"}),
Plot.gridX({interval: 1, stroke: "var(--vp-c-bg)", strokeOpacity: 0.5}),
Plot.ruleX([0])
]
})
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