Public
Edited
Feb 6, 2024
Fork of Bar chart
Insert cell
Insert cell
data = FileAttachment("enforcement_by_year.csv").csv({typed: "auto"})
Insert cell
Insert cell
Plot.plot({
x: {
tickFormat: "",
label: "Reporting Year"
},
y: { label: "Cases" },
marks: [
Plot.barY(data, {x: "reporting_year", y: "cases", fill: "steelblue", sort: {x: "x"}}),
Plot.ruleY([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