Is there a way to identify a point across multiple plots? I am thinking of mouse over on a point in one plot would highlight that same point across plots.
viewof table = Inputs.table(diamonds)
viewof col = Inputs.select(Object.keys(diamonds[0]).sort(), {value: "cut", multiple: false, label: "Color variable"})
plot1 = Plot.plot({
color: { legend: true },
marks: [
Plot.dot(diamonds, {
x: "depth",
y: "table",
stroke: col,
tip: true,
channels: { Color: "color", Clarity: "clarity" }
})
],
grid: true
})
plot2 = Plot.plot({
color: { legend: true },
marks: [
Plot.dot(diamonds, {
x: "price",
y: "carat",
stroke: col,
tip: true,
channels: { Color: "color", Clarity: "clarity" }
})
],
grid: true
})
Here is the notebook I am working with: Linked plots / workbook | Observable