Public
Edited
Sep 27, 2023
Insert cell
Insert cell
Insert cell
Plot.plot({
marginLeft: 90,
color: { legend: true },
marks: [Plot.barX(coopActives2022, Plot.groupZ({ x: "N" }, { fill: "catégorie" }))]
})
Insert cell
Insert cell
Plot.plot({
marginLeft: 90,
marks: [
Plot.barX(
congress,
Plot.groupY(
{ x: "count" },
{ fill: "gender", y: "party", sort: { y: "x", reverse: true } }
)
)
]
})
Insert cell
Insert cell
Insert cell
Plot.plot({
marginLeft: 90,
color: { scheme: "blues", legend: true },
x: { percent: true },
marks: [
Plot.barX(
coopActives2022,
Plot.groupY(
{ x: "sum" },
{
fill: "Catégorie",
y: "Période",
sort: { y: "x", reverse: true, color: "width" }
}
)
),
]
})
Insert cell
Plot.plot({
marginLeft: 90,
color: { scheme: "BrBG", legend: true },
x: { percent: true },
marks: [
Plot.barX(
coopActives2022,
Plot.groupY(
{ x: "sum" },
{
fill: "Secteur",
y: "Période",
sort: { y: "x", reverse: true, color: "width" },
offset: "normalize"
}
)
),
]
})
Insert cell
congress = FileAttachment("us-congress-2023.csv").csv({typed: true})
Insert cell
Coop actives 2022.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

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