Skip to content
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

[Feature]: Add option to make the highlighted area a click target in a bar chart #1082

Open
tarunsachdeva opened this issue Jun 11, 2024 · 0 comments
Labels
Type: Enhancement Small enhancement to existing component or feature

Comments

@tarunsachdeva
Copy link

What problem does this feature solve?

When displaying data that shows power laws, one bar can often be much larger than others. In these cases, if would be helpful to allow the click target on the barchart to be the highlighted area on hover (see image below as an example) when onValueChange is specified.

Screenshot 2024-06-06 at 7 13 13 AM

What does the proposed API look like?

Add makeHoverAreaClickable as a boolean parameter for the <BarChart> component.

If set to true, the hover area is clickable and the same action is performed specified in onValueChange

@severinlandolt severinlandolt added the Type: Enhancement Small enhancement to existing component or feature label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Small enhancement to existing component or feature
Projects
None yet
Development

No branches or pull requests

2 participants