Public
Edited
Mar 8, 2023
Insert cell
Insert cell
data = FileAttachment("city_populations_flat-1.csv").csv({ typed: true })
Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.lineY(data, { x: "year", y: "population", stroke: "city" })
]
})
Insert cell
Plot.plot({
marks: [
Plot.barX(
data.filter((x) => x.year == 2000),
{
x: "population",
y: "city",
sort: { y: "y", reverse: false },
fill: "city"
}
),
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