Hover Label Position on Y-axis

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?

Hi @siskos32,

I think what youโ€™re looking for is layout.hovermode='y'.


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

hovermodeY

Hope that helps!
-Jon

@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 :slight_smile:

Hi @siskos32,

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.

-Jon