Plot.plot({
y: {
grid: true,
domain: [0, 50]
},
facet: {
data: data_bls,
x: "seriesID",
columns: true
},
fx: { paddingInner: 0.2 },
fy: { paddingInner: 0.2 },
marks: [
Plot.text(
data_bls,
Plot.selectFirst({
x: 2000,
y: 50,
dy: -8,
text: (d) =>
d.sector === "Mining, quarrying, and oil and gas extraction"
? "Mining, quarrying, and oil and gas"
: d.sector,
textAnchor: "start",
fontWeight: "bold"
})
),
Plot.line(data_bls, { y: "value", x: "year" })
]
})