Public
Edited
Nov 2, 2023
Importers
Insert cell
chart = Plot.plot({
marginTop: 40,
marginBottom: 40,
x: {axis: null,
padding: .4,},
y: {tickFormat: "s", grid: 5, tickSpacing: 50, label: "Population Size"},
color: {scheme: "Set2", legend: true},
style: {
fontFamily: "Helvetica",
fontSize: 17,
},
height:200,
width: 1100,
marks: [
Plot.barY(data, {
x: "Age Group",
y: "Population",
fill: "Age Group",
fx: "States",
tip: true,
sort: {limit: 20 },
}),
Plot.ruleY([0])
]
})
Insert cell
data = FileAttachment("population-1.csv").csv({typed: true})
Insert cell
population.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