-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bar #onClick handler should also work for the Label of that Bar #1103
Comments
any idea how to do this |
I ran into the same issue and would appreciate a solution 👍 |
A dirty fix for this issue is to add the "pointer-events: none" css-style to allow for clicking trough the label: |
@DigidragonZX that pointerEvents hack worked wonders on my project, thanks |
+1 |
+1 for hacky solution, but would be nice to have this work out of the box. |
A possible simple solution might be to allow an |
Any chance of fixing this? A valid use case is: LabelList with position="right" used with a vertical bar chart where the cells are too small to click Sample: |
Why was it closed? |
Thanks for commenting - these buried closed issues are hard for me to find. I'll reopen this. |
Good point! |
@DigidragonZX , @olastor , @dan-h-ch ,I tried your solution but it is not working for me. Could you please go through the below cod and lemme know if it is the correct way to do it? I appreciate it guys!. I tried to give onClick even as well @ihryshchenko
|
hey there,
I use the Vertical Barchart Component. The Bar#onClick handler works like expected. But when I have a Label on top of the Bar, clicking on the label won't call the onClick handler with the bar data. Check the attached screen, you can imagine, that clicking on the bar works, but clicking on the label does not, confuses quite a lot of Users.
Thus I would propose: the Bar onClick handler gets also triggered when the respective label is clicked.
Code that produces above Chart.
The text was updated successfully, but these errors were encountered: