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

Click event on a pie wedge #68

Open
jwaldner opened this issue Oct 7, 2022 · 3 comments
Open

Click event on a pie wedge #68

jwaldner opened this issue Oct 7, 2022 · 3 comments

Comments

@jwaldner
Copy link

jwaldner commented Oct 7, 2022

would this just be a matter of adding the code that is in the bar already for the click to the pie chart or is there more to it than that?
[I mean for me to do :-) ]
Thanks!

@mindok
Copy link
Owner

mindok commented Oct 10, 2022

That sounds about right. I'd be more than happy to review a PR, and thanks for offering to help!

@jwaldner
Copy link
Author

would a repo change be needed or is it a matter of adding existing properties to the pie?

@mindok
Copy link
Owner

mindok commented Oct 11, 2022

It will definitely need a code change - the phx-click attribute isn't currently generated for the pie slice, so the option needs to be passed in and read by the rendering code. However, it will be almost identical code to what's in the Barchart.

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

No branches or pull requests

2 participants