Unlisted
Edited
Apr 21, 2023
Insert cell
Insert cell
Plot.plot({
y: {
grid: true,
label: "↑ Unemployment (%)"
},
color: {
domain: [false, true],
range: ["#ccc", "red"]
},
marks: [
Plot.ruleY([0]),
Plot.line(bls, {
x: "date",
y: "unemployment",
z: "division",
stroke: (d) => /, MI /.test(d.division),
sort: {channel: "stroke"}
})
]
})
Insert cell
bls = FileAttachment("bls-metro-unemployment.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