Unlisted
Edited
Feb 9
Insert cell
Insert cell
a = Plot.barX(olympians, Plot.groupY({ x: "count" }, { y: "sport" })).plot({
marginLeft: 120,
height: 450
})
Insert cell
s = a.scale("y")
Insert cell
b = Plot.barX(penguins, Plot.groupY({ x: "count" }, { y: "sex" })).plot({
style: "overflow: visible;",
marginLeft: 120,
height: s.apply(s.domain[2]) + s.bandwidth + 40,
y: {
paddingOuter: 0,
range: [s.apply(s.domain[0]), s.apply(s.domain[2]) + s.bandwidth]
}
})
Insert cell
b.scale("y")
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