Replies: 1 comment 1 reply
-
Hi @MarkLyck, I think the easiest way to do this is to tap into the powerful For your purpose, here is an example where I just wrapped the https://codesandbox.io/s/tooltip-bottom-4blhfs In case it's useful to you or others as a completely different approach, there was a non-xychart question about using axes to trigger a tooltip here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I position my tooltip so it shows up in the X axis using
XYChart
?In the screenshot below, I managed to make it always appear at the top using
top={0}
, but I would like to move the tooltip outlined in green to where the red box is, and follow the cursor still of course.currently this is rendered using this:
I've of course tried
bottom={0}
but that does not work.I've also tried
style={{position: 'absolute', bottom: 0}}
but that also doesn't seem to work, likely because it's rendered in a portal, so it's entirely off screen.Any ideas how I can move this to overlay over the X axis instead of the top?
Beta Was this translation helpful? Give feedback.
All reactions