Skip to content

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

@tarunsachdeva

Description

@tarunsachdeva

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementSmall enhancement to existing component or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions