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

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
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

Successfully merging a pull request may close this issue.

1 participant