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

feat(pie): added more event listener on bar and arc #2635

Closed
wants to merge 1 commit into from

Conversation

jingcai86
Copy link
Contributor

Requirement:
We need to pass down more event handlers such as onMouse down and sometimes deal with keyboard event such as onFocus on varies charts.

PR content:
This PR adds more event handlers to nivo pie chart. This includes onMouseDown, onMouseUp, onFocus, onBlur. We followed other onMouse events to add them.
We also included a isFocusable similar to barChart with tabIndex. The current structure is a bit different. In BarItem, isFocusable and isInteractive is passed down. While in arc, isInteractive is not passed. So we followed the design, not passing down isFocusable and only to use both onFocus and onBlur function to determine tabIndex

Let us know what else we missing or need for this PR to merge.

Thanks

Jing

Copy link

vercel bot commented Aug 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nivo ❌ Failed (Inspect) Aug 15, 2024 10:13pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant