Plot.plot({
title: "B",
marks: [
Plot.frame({ stroke: "#ccc" }),
Plot.lineY(b, { x: (d, i) => i }),
Plot.dotY(b, {
x: (d, i) => i,
fill: "#000"
}),
Plot.ruleX(
b,
Plot.pointerX({
x: (d, i) => i,
stroke: "#f00"
})
),
Plot.tip(
b,
Plot.pointerX({
y: (d) => d,
x: (d, i) => i
})
)
],
height: 200
})