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

Fix tooltip context and position on click #2639

Open
dmitrizzle opened this issue Aug 21, 2024 · 1 comment
Open

Fix tooltip context and position on click #2639

dmitrizzle opened this issue Aug 21, 2024 · 1 comment

Comments

@dmitrizzle
Copy link

Is your feature request related to a problem? Please describe.
Nope.

Describe the solution you'd like
I would like to have the tooltip stay in position and the data shown in the tooltip to remain constant when user clicks on a point. Clicking outside tooltip would resume normal interaction (tooltip appears on hover and moves with crosshair). I think this can be accomplished by forcing the touch interaction functionality on screens with mice.

Describe alternatives you've considered
There's no API for this as far as I can tell, so I figure this would require a mode within the package. If not, please let me know!

Additional context
Tooltips on my graph will include links which will need to stay on screen for users to be able to click them.

@plouc
Copy link
Owner

plouc commented Nov 12, 2024

This is more a popover behavior I feel, and something which could be implemented using the event handlers + potentially a custom layer.

With the current implementation of the tooltip, this would require a lot of changes on all chart types, introducing an optional fixed position, and having conditional handlers.

While I think the feature could be useful, and has been requested a few times in the past already, that's not something I'll be able to implement in a near future.

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

2 participants