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 & text on shapes #4780

Open
nicolaskruchten opened this issue Apr 22, 2020 · 2 comments
Open

Hover & text on shapes #4780

nicolaskruchten opened this issue Apr 22, 2020 · 2 comments

Comments

@nicolaskruchten
Copy link
Member

We don't want layout shapes to be full traces but it would be pretty convenient to be able to add hoverlabels and text to them, for something like object-annotation or to label horizontal lines on plots.

@jorgenherje
Copy link

jorgenherje commented Jan 20, 2022

@nicolaskruchten Would be nice with hover text for shapes.

Shapes are nice to utilize for marking/annotation in plots with vertical/horizontal lines. However it would be nice to have hover text, s.t. info is not visible at all times.

Working in WebViz using Dash and plotly. I've been testing some ways to obtain vertical lines with text info, and found the two possible solutions so far:

  1. Shapes + annotations (text labels always visible - not optimal):
    image

  2. Vertical trace (must add after data, and calculate min and max y-value. Can become slow with many traces? And does not span across y-axis when zooming out):
    image

@RichardNeill
Copy link

Agree, this would be great. If we can't have the full "hover" mechanism, what about enabling
the HTML title attribute?

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

No branches or pull requests

3 participants