Is there a way to position the hover labels on the Y axis instead on the time series themselves? A simple example would be like the one that is shown on the X axis when we move across on the line charts?
I think what you’re looking for is
import plotly.graph_objs as go import plotly.plotly as py import numpy as np trace1 = go.Scatter( y = np.random.randn(500), mode='markers', ) data = [trace1] layout=dict(hovermode='y') fig = go.FigureWidget(data, layout) fig
Hope that helps!
@jmmease that is great, however now the one on the X-axis disappears. Is there a way to keep both X and Y and remove the blue labels showing on the markers? Thanks for your help
Unfortunately, I don’t think there’s a way to show a hover label on both axes simultaneously. You could hide the blue tooltip here by setting
hoverinfo='y' on the trace, but then the x-info isn’t displayed anywhere.