1. Chris Leonello
  2. jqplot
Issue #758 new

MouseUp event

iamarsey
created an issue

Hello! How can I get new draged data point after MouseUp event? MouseDown event is perfectly work and I know how get data point, but that method doesn't work in MouseUp. Here is my code,(and ,yes, I know that in second part 'neighbor' is null)

$('#blockforgraph').bind('jqplotMouseDown', 
            function (ev, gridpos, datapos, neighbor, plot) {
            var firstdataX =  neighbor.data[0]; 
            var firstdataY = neighbor.data[1];
             $('#firstfieldX').html('Первый X:'+firstdataX);
             $('#firstfieldY').html('Первый Y:'+firstdataY);
              /*   $('.recommendations').prepend('series: '+seriesIndex+', point: '+pointIndex+', data: '+data);*/
            }
        ); 

       $('#blockforgraph').bind('jqplotMouseUp', 
            function (ev, gridpos, datapos, neighbor, plot) {
            var seconddataX = gridpos;
            var seconddataY =  2;
             $('#secondfieldX').html('Второй X:'+seconddataX);
             $('#secondfieldY').html('Второй Y:'+seconddataY);
              /*   $('.recommendations').prepend('series: '+seriesIndex+', point: '+pointIndex+', data: '+data);*/
            }
        );

Comments (0)

  1. Log in to comment