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

commenting on specific wavelengths/annotating graphs #45

Open
jywarren opened this issue Feb 10, 2015 · 0 comments
Open

commenting on specific wavelengths/annotating graphs #45

jywarren opened this issue Feb 10, 2015 · 0 comments

Comments

@jywarren
Copy link
Member

$("#placeholder").bind("plotclick", function (event, pos, item) {
  alert("You clicked at " + pos.x + ", " + pos.y);
  // axis coordinates for other axes, if present, are in pos.x2, pos.x3, ...
  // if you need global screen coordinates, they are pos.pageX, pos.pageY

  if (item) {
    highlight(item.series, item.datapoint);
    alert("You clicked a point!");
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant