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

Add onmousemove event handler #403

Open
masayuki0812 opened this issue Jun 29, 2014 · 5 comments
Open

Add onmousemove event handler #403

masayuki0812 opened this issue Jun 29, 2014 · 5 comments
Labels
C-feature-request Category: A feature request or an enhancement

Comments

@masayuki0812
Copy link
Member

This should be able to work as:

  • Called when mouse moving in the chart
  • Accept the position of mouse as a argument
@maxklenk
Copy link

maxklenk commented Jul 2, 2014

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

@masayuki0812
Copy link
Member Author

Yes, it would be data.onmousemove and just onmousemove.

@volpino
Copy link

volpino commented Mar 12, 2015

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.
Any hints?

Thanks!

@hoprocker
Copy link

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.,

oninit: function(e, el) { ... }

Does this make sense?

@DemersM
Copy link

DemersM commented Aug 21, 2018

When this will be implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request or an enhancement
Projects
None yet
Development

No branches or pull requests

5 participants