Skip to content

Text align when hover on scatterplot #260

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
ifll opened this issue Feb 17, 2016 · 5 comments
Closed

Text align when hover on scatterplot #260

ifll opened this issue Feb 17, 2016 · 5 comments
Labels
feature something new

Comments

@ifll
Copy link

ifll commented Feb 17, 2016

When hovering on a scatter plot two options are available for the displayed box if no fixed box is defined:

  • box appears on the left part of the point
  • box appears on the right part of the point

When box appears on the left part of the point the text is aligned on the right part, and viceversa.

Is there any way to control this and decide which align is desired? (It is mainly to control layout and styling the plot)

@ifll
Copy link
Author

ifll commented Feb 17, 2016

Is there also any way to selectively style the text?

Something which make the text inside the box look like this:

[ Infotag: Description text ]

@alexnum
Copy link

alexnum commented Aug 2, 2017

+1

@brianstamper
Copy link

+1
Any news on this? I just found this issue after having written up an SO question here: https://stackoverflow.com/questions/50003531/r-plotly-hover-label-text-alignment

@zig1000
Copy link

zig1000 commented Jan 12, 2019

+1
Having half the multi-line text in a plot be formatted incorrectly is very unaesthetic.

In fact in addition to having it be settable, I think left-align should be plotly's default for all hovertext, regardless of where the mouseover box is positioned relative to the data point.

@etpinard
Copy link
Contributor

etpinard commented Apr 9, 2019

Closed by #3753

@etpinard etpinard closed this as completed Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

5 participants