Unlisted
Edited
Apr 25, 2023
1 fork
1 star
Insert cell
Insert cell
Plot.plot({
marginLeft: 60,
marginRight: 60,
grid: true,
y: {label: null},
fy: {label: null},
color: {legend: true},
marks: [
Plot.barX(penguins, Plot.groupY({x: "count"}, {fy: "species", y: "island", fill: "sex"})),
Plot.text([`While Chinstrap and Gentoo penguins were each observed on only one island, Adelie penguins were observed on all three islands.`], {
fy: ["Adelie"],
frameAnchor: "top-right",
lineWidth: 18,
dx: -6,
dy: 6
}),
Plot.frame()
]
})
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