dot_line_chart = Plot.plot({
width: width,
height: 0.625 * width,
x: { domain: [0, 100], axis: "top", grid: true },
y: { domain: [new Date("2012"), new Date("2023")] },
marks: [
Plot.link(senateAges, {
x1: (o) => o.age_extent[0],
x2: (o) => o.age_extent[1],
y1: "year",
y2: "year"
}),
Plot.dot(data, {
x: "age",
y: "year",
fill: "black",
r: 4
})
]
})