Skip to content

Hoverformat fails to apply when showticklabels=False #398

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 11, 2016 · 2 comments
Closed

Hoverformat fails to apply when showticklabels=False #398

jzuccollo opened this issue Feb 11, 2016 · 2 comments

Comments

@jzuccollo
Copy link

When setting a hoverformat on an axis, the format is not applied unless showticklabels=True. For example, the following hoverformat silently fails to apply:

from plotly.graph_objs import Scatter, Layout, YAxis, Figure
import plotly.plotly as py

data = [Scatter(x=[1, 2, 3],
                 y=[0.12345, 0.23456, 0.34567])]
layout = Layout(yaxis=YAxis(showticklabels=False,
                            hoverformat=",.2r",))
figure = Figure(data=data, layout=layout)
py.iplot(figure)
@yankev
Copy link
Contributor

yankev commented Feb 17, 2016

@jameszuccollo So this might be an issue with the javascript backend. I've posted this issue in the plotly.js repo: plotly/plotly.js#261.

@cldougl
Copy link
Member

cldougl commented Mar 3, 2016

fixed w/ plotly/plotly.js#267

@cldougl cldougl closed this as completed Mar 3, 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