-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add onmousemove event handler #403
Comments
Are you looking for something like this? data: {
columns: [...],
onclick: function (d, element) { console.log("onclick", d, element); },
onmouseover: function (d) { console.log("onmouseover", d); },
onmouseout: function (d) { console.log("onmouseout", d); }
} Source: https://github.com/masayuki0812/c3/blob/master/htdocs/samples/chart_bar.html |
Yes, it would be |
Is it possible to have those events called on the graph area? I would like to be able to select a portion on the graph (i.e. a "bounding box") with the mouse and have a callback that gets x1,x2,y1,y2 of the selected rectangle. Thanks! |
ping Piggybacking on this issue, it seems unclear how to get the element that the callback function is called in response for. I'd propose that either the event object or the element (or both) get passed as argument functions; i.e.,
Does this make sense? |
When this will be implemented? |
This should be able to work as:
The text was updated successfully, but these errors were encountered: