Skip to content
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

Hover tooltip positioned wrong in stacked barchart when number of bar is 1 #2154

Closed
alexbyj opened this issue Nov 13, 2017 · 2 comments · Fixed by #2440
Closed

Hover tooltip positioned wrong in stacked barchart when number of bar is 1 #2154

alexbyj opened this issue Nov 13, 2017 · 2 comments · Fixed by #2440
Labels
bug something broken

Comments

@alexbyj
Copy link

alexbyj commented Nov 13, 2017

my macbook screen resolution : 1680x1050
browser: firefox 56.0.2 (64-bit)
reproducible jsfiddle link : https://jsfiddle.net/o9fc44pg/1/
used library : https://cdn.plot.ly/plotly-latest.min.js
Is there any limit of tooltip label character length?
screenshot
screen shot 2017-11-13 at 9 45 24 am

@etpinard etpinard added the bug something broken label Nov 13, 2017
@alexcjohnson
Copy link
Collaborator

Thanks @alexbyj - specifically the problem here is with the centered label: when there isn't enough room to put the label either entirely to the right or entirely to the left of the object it's labeling, we center it; but the text is not positioned properly in this case. This situation doesn't arise very often, which is why it's not well tested I guess.

Probably duplicate of #865

rmoestl added a commit to rmoestl/plotly.js that referenced this issue Feb 27, 2018
- Bug: when a tooltip displays a sufficiently long text (also depends on overall plot dimensions), the tooltip isn't rendered right or left but centered. In this case the tooltip text was partly rendered outside the tooltip box.
rmoestl added a commit that referenced this issue Mar 5, 2018
- Bug: when a tooltip displays a sufficiently long text (also depends
  on overall plot dimensions), the tooltip isn't rendered right or
  left but centered. In this case the tooltip text was partly rendered
  outside the tooltip box and the secondary label (the trace name) was
  hidden underneath the primary label.
rmoestl added a commit that referenced this issue Mar 5, 2018
- No reason to run them asynchronously.
rmoestl added a commit that referenced this issue Mar 5, 2018
@nishantlnmiit
Copy link

I am also facing the same issue while using this with shiny ggplot2 library
Please help me out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants