jywarren/spectral-workbench — Issue #37: commenting on specific wavelengths/annotating graphs
Author: jywarren
Created: 2012-02-04 18:07:52+00:00
State: open
Labels: server

$("#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!");
}
});