Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hoverinfo='text' fails in plotly.offline when hovermode='x' #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jzuccollo opened this issue Feb 18, 2016 · 5 comments
Closed

hoverinfo='text' fails in plotly.offline when hovermode='x' #409

jzuccollo opened this issue Feb 18, 2016 · 5 comments

Comments

@jzuccollo
Copy link

This fails to display the hovertext.

import plotly.offline as po
from plotly.graph_objs import *

po.init_notebook_mode()

traces = Scatter(x=[0, 1, 2, 3], 
                 y=[2, 3, 4, 5], 
                 text='text',
                 hoverinfo='text')
fig = Figure(data=Data([traces]), 
             layout=Layout(hovermode='x'))
po.iplot(fig)

If hovermode is changed to y or closest, the hovertext shows up again. Plotting through the plotly server or in plotly.js does not generate the error. However, since hovermode='x' is the default, this crops up every time hoverinfo='text'.

@etpinard
Copy link
Contributor

What version of plotly.py are you using?

Updating to the latest should resolve your problems.

@jzuccollo
Copy link
Author

No change, sorry. I'm on

  • plotly 1.9.5
  • jupyter 1.0.0
  • python 3.5.1

Basically, the latest available through conda, or pypi for plotly. Would I need to pull the latest source from github to get the bugfix for this?

@cldougl
Copy link
Member

cldougl commented Feb 19, 2016

Sorry about that @jameszuccollo - plotly.offline was using an older version of plotly.js so as soon as that's updated #411 you can update to plotly 1.9.6 and hoverinfo='text' will work.
Thanks for letting us know!

@jzuccollo
Copy link
Author

Great, thanks so much @cldougl, looking forward to it.

@cldougl
Copy link
Member

cldougl commented Feb 19, 2016

All set @jameszuccollo
pip install plotly --upgrade and you should get v 1.9.6

I'm going to close this issue - but let us know if you have any other problems!

@cldougl cldougl closed this as completed Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants