Black Lives Matter. Please consider donating to Black Girls Code today.

How to track ALL lines on plotly plot

Hello, I’m creating a plotly plot with multiple lines using add_trace.

I would like to have the plot display all of the line values for a given x… or, trace all the lines as you move the cursor along the x-axis.

There are demos in R that do this on the website and I’m doing the same thing, but it isn’t working - plotly is only displaying the value of each line if I hover of the individual lines.

Thank you in advance!

Hi @jonkaneshiro,

if you’re looking to compare data on hover then try using layout(hovermode = 'x')