-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VictoryBoxPlot does not show label tooltips #2621
Comments
I'm having a lot of difficulty with this too. Does anyone have a workaround, or is there any update? |
The API Reference: https://commerce.nearform.com/open-source/victory/docs/victory-box-plot |
Hi there @harrisonlo and @troynguyen8 . I'm currently researching this issue. Appreciate the reproduction example. After reviewing the code, I can definitely say Victory does not currently support usage of Do you mind sharing a bit more about your use case here? We do provide specific labelComponents for max, median, and min labelcomponents (Ex: here) which do work as labels, but not as tooltips. I will have to discuss with the team, but it seems to keep this specific BoxPlot api working, it might be preferable to add support for tooltips in each of those labelComponents, rather than adding a new generic If you could provide more about what type of tooltip behavior you want to see that would be helpful, as there are many values associated with each of the box plots. Finally, I realize the documentation for common props makes it appear that all components support labelComponent, so that's our bad. I will make a note to update the documentation so that point is clearer. |
Hey @Burnett2k !
This would work well for my use case! I'm essentially hoping for a press (I'm using Victory Native) on anywhere in the boxplot to show the stats in detail view. Within the tooltip could be something like
In an ideal world this tooltip would always point toward the median of the boxplot, but it would not be a deal breaker if I had to pass tooltip to each of the 5 stats and they'd point to the whisker/box lines all with the same content |
@chriszrc Agreed, I think I was surprised its not supported as well! I have it up at the top of our features list, but currently no one available to tackle it. I don't have any easy workarounds atm, unfortunately. |
This issue is still ongoing, but I have added a small workaround doc that will hopefully unblock some of you. The |
Since we have a current workaround, placing this issue on hold until the new events system is built which makes solving this trivial. No timeline on that build at this time. |
Describe the bug
The
labelComponent
prop does not seem to have an effect on VictoryBoxPlot, unlike the pattern in other charts such as VictoryPie or VictoryBar. Passing VictoryTooltip in would not show a tooltip on hover.Victory version
36.6.10
Code Sandbox link
https://codesandbox.io/s/victory-boxplot-tooltip-issue-33tmtt
To Reproduce
Steps to reproduce the behavior:
Expected behavior
VictoryBoxPlot with a VictoryTooltip component in the
labelComponent
prop would show a tooltip on hoverThe text was updated successfully, but these errors were encountered: