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

Tooltip direction auto #2358

Open
VelizarVESSELINOV opened this issue Dec 8, 2022 · 0 comments · May be fixed by #2381
Open

Tooltip direction auto #2358

VelizarVESSELINOV opened this issue Dec 8, 2022 · 0 comments · May be fixed by #2381
Labels
feature something new P3 not needed for current cycle

Comments

@VelizarVESSELINOV
Copy link

Is your feature request related to a problem? Please describe.
With the current tooltip, direction information is difficult to define in the code during the hover data event.

Describe the solution you'd like
Keep the tooltip automatically in the visible region depending on the view zone.

Describe alternatives you've considered and additional context

direction = "bottom" if y > 1.5 else "top"

https://dash.plotly.com/dash-core-components/tooltip
image
As you can observe 1.5 threshold is not good in all the contexts.

Examples of similar requests:
https://community.plotly.com/t/how-to-position-custom-tooltip-within-visible-window/58819
https://stackoverflow.com/questions/72715452/plotly-dash-how-to-align-the-tooltip-to-the-top-instead-of-top-right/72717007

@nickmelnikov82 nickmelnikov82 linked a pull request Jan 8, 2023 that will close this issue
@gvwilson gvwilson self-assigned this Jul 24, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added P3 not needed for current cycle feature something new labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 not needed for current cycle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants