I’m attempting to replicate a feature in Grafana dashboards called “Shared Tooltip”. The plotly option for showspikes replicate the behavior I’m looking for on a single graph but I’m unsure how to carry that over to other graphs.
At the moment I have I create graphs like so:
graph_type = 'graph'
fig = px.line(
lap_data,
x='elapsed_distance_m',
y=point_value,
color='lap_id',
hover_data=['lap_id', 'lap_number', point_value])
fig.update_xaxes(showspikes=True)
fig.update_yaxes(fixedrange=True)
fig.update_layout(hovermode="x unified")
graph = dcc.Graph({'type': graph_type,
'index': point_values.index(point_value)},
figure=fig,
Actual code can be found here.