Skip to content

XYchart show/hide tooltip if y point exists #1655

Answered by williaster
MahemaS27 asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MahemaS27
Comment options

Answer selected by MahemaS27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants