File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ function LineWithMarkers(scene, uid) {
33
33
this . scene = scene ;
34
34
this . uid = uid ;
35
35
36
+ this . pickXData = [ ] ;
37
+ this . pickYData = [ ] ;
36
38
this . xData = [ ] ;
37
39
this . yData = [ ] ;
38
40
this . textLabels = [ ] ;
@@ -113,8 +115,8 @@ proto.handlePick = function(pickResult) {
113
115
trace : this ,
114
116
dataCoord : pickResult . dataCoord ,
115
117
traceCoord : [
116
- this . xData [ index ] ,
117
- this . yData [ index ]
118
+ this . pickXData [ index ] ,
119
+ this . pickYData [ index ]
118
120
] ,
119
121
textLabel : Array . isArray ( this . textLabels ) ?
120
122
this . textLabels [ index ] :
@@ -267,8 +269,8 @@ proto.update = function(options) {
267
269
} ;
268
270
269
271
proto . updateFast = function ( options ) {
270
- var x = this . xData = options . x ;
271
- var y = this . yData = options . y ;
272
+ var x = this . xData = this . pickXData = options . x ;
273
+ var y = this . yData = this . pickYData = options . y ;
272
274
273
275
var len = x . length ,
274
276
idToIndex = new Array ( len ) ,
@@ -349,8 +351,8 @@ proto.updateFancy = function(options) {
349
351
bounds = this . bounds ;
350
352
351
353
// makeCalcdata runs d2c (data-to-coordinate) on every point
352
- var x = xaxis . makeCalcdata ( options , 'x' ) . slice ( ) ;
353
- var y = yaxis . makeCalcdata ( options , 'y' ) . slice ( ) ;
354
+ var x = this . pickXData = xaxis . makeCalcdata ( options , 'x' ) . slice ( ) ;
355
+ var y = this . pickYData = yaxis . makeCalcdata ( options , 'y' ) . slice ( ) ;
354
356
355
357
this . xData = x . slice ( ) ;
356
358
this . yData = y . slice ( ) ;
You can’t perform that action at this time.
0 commit comments