Published
Edited
Mar 3, 2022
Insert cell
Insert cell
Insert cell
Insert cell
ageDistributionPlot = Plot.plot({
height: 300,
marks: [
Plot.barY(dt_by_age, { x: "Bucket_Age", y: "count", fill: "darkorchid" })
]
})
Insert cell
Insert cell
dt_by_age = dt
.groupby("Bucket_Age")
.rollup({
count: aq.op.count()
})
.derive({
pct: (d) => d.count / aq.op.sum(d.count)
})
.orderby("Bucket_Age")
Insert cell
Inputs.table(dt_by_parish)
Insert cell
dt_by_parish = dt
.groupby("Parish of Conviction")
.rollup({
count: aq.op.count()
})
.orderby(aq.desc("count"))
Insert cell
Insert cell
dt = aq.from(data)
Insert cell
data = d3.json(data_url)
Insert cell
data_url = "https://raw.githubusercontent.com/themarshallproject/LWOP-Louisiana/main/data/LWOP_data.json"
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