addTooltips(
Plot.plot({
color: {
type: "linear",
range: ["steelblue", "black"]
},
y: { reverse: true },
inset: 10,
width: 100,
height: 3400,
marks: [
Plot.frame({ fill: "lightgray" }),
Plot.tickY([0, 56, 99, 440, 560, 975], {y: d => d, stroke: "black"}),
Plot.tickY(allSNPs, {
y: "Position",
stroke: "#00308f",
strokeOpacity: 0.25,
strokeWidth: 2,
}),
Plot.tickY(consensusB, {
y: "AAPOS",
stroke: "#ff7e00",
strokeOpacity: 0.4,
strokeWidth: 2,
title: "AAREF"
})
]
})
)