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

Select events #1

Closed
BrockReece opened this issue Mar 2, 2016 · 2 comments
Closed

Select events #1

BrockReece opened this issue Mar 2, 2016 · 2 comments
Assignees
Labels

Comments

@BrockReece
Copy link

Hey,

Awesome library, this isn't an issue but I wanted to get some advice before I contributed

I was just wondering if you had any thoughts on handling 'select' events?

I am currently messing around with syncing a 'selected' prop between the parent and graph components, which works but it doesn't feel right. Another idea would be to dispatch an event but it could get messy if you have multiple graphs on the same page.

Cheers
Brock

@haydenbbickerton
Copy link
Owner

Sorry, what is it you're trying to do?

If you're trying to change charts when the user selects something different in an dropdown/radio/input, you can do something like this.

If you'd like to hook into the actual select event from Google Charts itself, well, event functionality is in the next commit :)

@BrockReece
Copy link
Author

Sorry for the ambiguity.

I was trying to hook into the select event from Google Charts. Since asking this though, I forked your project and made a small change that dispatches an event to the parent component when the Google Charts' select event is triggered.

Looks like you are a few steps ahead of me though :)

Thanks for your help.
Brock

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

No branches or pull requests

2 participants