question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disabling tooltip without disabling interactivity

See original GitHub issue

Is your feature request related to a problem? Please describe. I would like to have more control over how exactly the tooltips are rendered. For instance, I would like to render them in a portal so that they are not cut by the container or use custom positioning logic. Right now it doesn’t seem to be possible without redefining item components e.g. barItemComponent which is quite a limitation. It is possible to disable interactivity but that also disables other interactive features e.g. the crosshair and the onMouse… event handlers are not called at all.

Describe the solution you’d like There should be a property isTooltipEnabled which would disable the tooltip when passed false without disabling the onMouse… event handlers. Alternatively, passing null to the tooltip prop could also disable tooltip.

Additional context Large tooltip in a small chart is cut because it’s not rendered in a portal in a container which needs to use overflow: hidden or overflow: scroll

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ilyabocommented, Jun 14, 2022

Yes, thanks! I’ve actually discovered this approach too now and it works for me at least as a workaround. Does it still mean though that some resources are spent on rendering/positioning or can this be neglected? In any case, I think accepting null or false and documenting it would be more straightforward and helpful for the users of the API.

0reactions
stale[bot]commented, Nov 7, 2022

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable tooltip in google geo chart? - Stack Overflow
You can disable the tooltips by setting the option enableRegionInteractivity: false, which also disables clicking on regions. The API does not expose a ......
Read more >
How to Show tooltip on disabled elements and ... - Syncfusion
By default, Tooltips will not be displayed on disabled elements. However, it is possible to enable this behavior by following the steps below....
Read more >
Disabling tooltip for only one of many series in a LineChart
Disabling tooltips for individual series is not supported. ... You can't specifically disable tooltips, but you can disable user interactivity for a series....
Read more >
KB43892: Disabling tooltip for one graph series does not take ...
Consider running the document in Interactive View mode as it is not Flash based and allows to disable tooltips for individual series.
Read more >
What should the behavior of Disabled Link/Button be?
Adding a Tooltip that guides users on the reason an object is disabled is one way of interaction that would reduce users' frustration....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found