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

onclick not working with step chart #489

Closed
kannes opened this issue Aug 11, 2014 · 2 comments
Closed

onclick not working with step chart #489

kannes opened this issue Aug 11, 2014 · 2 comments
Labels
C-bug Category: This is a bug resolved maybe

Comments

@kannes
Copy link

kannes commented Aug 11, 2014

Hi, I am struggling with c3 and the lack of documentation. I thought this would be working, but apparently there is no onclick on step charts? Is that correct or did I just misunderstand how to add a function (clicked() does not exist, but that should just be a console error then)?

Example: http://jsfiddle.net/hncapr46/

Ideally this would register a click on the whole step, not just its edges.

masayuki0812 added a commit that referenced this issue Sep 3, 2014
@masayuki0812
Copy link
Member

Hi, sorry for the late response.
You're right and this has been fixed by the commit above. Now we can handle click event in each step. Could you try the new code? Thanks.

@kannes
Copy link
Author

kannes commented Sep 7, 2014

Works perfectly, thank you very much!

@kannes kannes closed this as completed Sep 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug resolved maybe
Projects
None yet
Development

No branches or pull requests

2 participants