Skip to content

Handle TouchEvents in Pie Chart #524

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

Open
InkAndSteel opened this issue Mar 14, 2025 · 1 comment
Open

Handle TouchEvents in Pie Chart #524

InkAndSteel opened this issue Mar 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@InkAndSteel
Copy link

Description

Hi :)

Me and my Team are in the process of migrating to the new VictoryNative architecture. We have an interactive piechart, where users can click on a slice to trigger an effect in the GUI.

If I understand correctly, currently interacting with charts in that way is supported through "Chart Gestures", which are not supported for Pie Charts. Is there another way to make slices clickable?

Proposal

Introduce the option to add a callback to the slices, that will get executed when the user clicks on the respective slice.

Thanks :)

@Quentin-Piot
Copy link

I found a way by adding an invisible layer on top with react-native-svg. But then, it almost takes away the point of having victory-native. I agree that it should be directly integrated.

@zibs zibs added the enhancement New feature or request label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants