How to set a fixed position for the Tooltip

See original GitHub issue

For my PieChart, I want the Tooltip to always appear in the lower right corner of the chart, no matter which section i hover over. I’ve seen that there are coordinate and viewBox props, but if I set them, they are overwritten.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
breadadamscommented, May 4, 2018

And for anyone copy-pasting the above solution, you’ll want:

<Tooltip position={{ x: 400, y: 0 }} />
14reactions
kodellcommented, Jul 12, 2019

It would be great if position prop could accept a function, which would receive mouse coordinate or bar coordinate and return the {x, y} obj.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make tooltip position fixed - Stack Overflow
I am struggling to keep the position fixed regardless of what the content is. Is there anything I can try to fix this?...
Read more >
Tooltip position absolute vs fixed? · Issue #414 - GitHub
Steps to Reproduce. Create a page with a tooltip that's taller than the browser window and scroll while tooltip is exposed. Expected behavior....
Read more >
How to position tooltips correctly with CSS - Tutorialspoint
To position tooltips correctly, use the right, left, top and bottom properties. Let us see how to position tooltips on the right: ...
Read more >
How to Show, Position, and Style a Tooltip in HTML and CSS?
For the purpose of positioning the tooltip we are using the absolute value of the position property so that it can be placed...
Read more >
Tooltip position make fix - CSS-Tricks
I am making a website on table and showing tooltip to describe some images. I want to show tootip in a cell or...
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