Public
Edited
May 9, 2023
15 forks
2 stars
Insert cell
Insert cell
Plot.plot({
marginLeft: 90,
x: { axis: null },
y: { label: null },
marks: [
Plot.barX(brands, {
x: "value",
y: "name",
sort: { y: "x", reverse: true, limit: 10 }
}),

Plot.text(brands, {
text: d => `${Math.floor(d.value / 1000)} B`,
y: "name",
x: "value",
textAnchor: "end",
dx: -3,
fill: "white"
})
]
})
Insert cell
brands = FileAttachment("brands-2018.csv").csv({typed: true})
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