@@ -512,6 +512,7 @@ proto.updateTraces = function(fullData, calcData) {
512512
513513proto . emitPointAction = function ( nextSelection , eventType ) {
514514 var uid = nextSelection . trace . uid ;
515+ var ptNumber = nextSelection . pointIndex ;
515516 var trace ;
516517
517518 for ( var i = 0 ; i < this . fullData . length ; i ++ ) {
@@ -520,18 +521,20 @@ proto.emitPointAction = function(nextSelection, eventType) {
520521 }
521522 }
522523
523- this . graphDiv . emit ( eventType , {
524- points : [ {
525- x : nextSelection . traceCoord [ 0 ] ,
526- y : nextSelection . traceCoord [ 1 ] ,
527- curveNumber : trace . index ,
528- pointNumber : nextSelection . pointIndex ,
529- data : trace . _input ,
530- fullData : this . fullData ,
531- xaxis : this . xaxis ,
532- yaxis : this . yaxis
533- } ]
534- } ) ;
524+ var pointData = {
525+ x : nextSelection . traceCoord [ 0 ] ,
526+ y : nextSelection . traceCoord [ 1 ] ,
527+ curveNumber : trace . index ,
528+ pointNumber : ptNumber ,
529+ data : trace . _input ,
530+ fullData : this . fullData ,
531+ xaxis : this . xaxis ,
532+ yaxis : this . yaxis
533+ } ;
534+
535+ Fx . appendArrayPointValue ( pointData , trace , ptNumber ) ;
536+
537+ this . graphDiv . emit ( eventType , { points : [ pointData ] } ) ;
535538} ;
536539
537540proto . draw = function ( ) {
0 commit comments