@@ -314,6 +314,7 @@ proto.update = function(data) {
314
314
if ( this . linePlot ) this . linePlot . update ( lineOptions ) ;
315
315
else {
316
316
this . linePlot = createLinePlot ( lineOptions ) ;
317
+ this . linePlot . _trace = this ;
317
318
this . scene . glplot . add ( this . linePlot ) ;
318
319
}
319
320
} else if ( this . linePlot ) {
@@ -345,6 +346,7 @@ proto.update = function(data) {
345
346
if ( this . scatterPlot ) this . scatterPlot . update ( scatterOptions ) ;
346
347
else {
347
348
this . scatterPlot = createScatterPlot ( scatterOptions ) ;
349
+ this . scatterPlot . _trace = this ;
348
350
this . scatterPlot . highlightScale = 1 ;
349
351
this . scene . glplot . add ( this . scatterPlot ) ;
350
352
}
@@ -375,6 +377,7 @@ proto.update = function(data) {
375
377
if ( this . textMarkers ) this . textMarkers . update ( textOptions ) ;
376
378
else {
377
379
this . textMarkers = createScatterPlot ( textOptions ) ;
380
+ this . textMarkers . _trace = this ;
378
381
this . textMarkers . highlightScale = 1 ;
379
382
this . scene . glplot . add ( this . textMarkers ) ;
380
383
}
@@ -403,6 +406,7 @@ proto.update = function(data) {
403
406
}
404
407
} else if ( options . errorBounds ) {
405
408
this . errorBars = createErrorBars ( errorOptions ) ;
409
+ this . errorBars . _trace = this ;
406
410
this . scene . glplot . add ( this . errorBars ) ;
407
411
}
408
412
@@ -419,6 +423,7 @@ proto.update = function(data) {
419
423
} else {
420
424
delaunayOptions . gl = gl ;
421
425
this . delaunayMesh = createMesh ( delaunayOptions ) ;
426
+ this . delaunayMesh . _trace = this ;
422
427
this . scene . glplot . add ( this . delaunayMesh ) ;
423
428
}
424
429
} else if ( this . delaunayMesh ) {
0 commit comments