XYchart show/hide tooltip if y point exists #1655
-
Hello! I'm implementing an XYchart that has an component. I've seperated out the Tooltip component to allow for more customization. What I would like to do is only display the tooltip if a
|
Beta Was this translation helpful? Give feedback.
Answered by
williaster
Feb 11, 2023
Replies: 1 comment 1 reply
-
Hi @MahemaS27 thanks for checking out visx. If you return null/a falsy value from the renderTooltip function, the Tooltip will not render. So you should just be able to base this logic on the y value and it should just work! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MahemaS27
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @MahemaS27 thanks for checking out visx.
If you return null/a falsy value from the renderTooltip function, the Tooltip will not render. So you should just be able to base this logic on the y value and it should just work!