File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -226,16 +226,16 @@ function convertMarkerSelection(trace, target) {
226
226
}
227
227
228
228
function convertErrorBarStyle ( trace , target ) {
229
+ if ( target . copy_ystyle ) {
230
+ target = trace . error_y ;
231
+ }
232
+
229
233
var optsOut = {
230
234
capSize : target . width * 2 ,
231
235
lineWidth : target . thickness ,
232
236
color : target . color
233
237
} ;
234
238
235
- if ( target . copy_ystyle ) {
236
- optsOut = trace . error_y ;
237
- }
238
-
239
239
return optsOut ;
240
240
}
241
241
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ function calc(gd, trace) {
47
47
var x = xa . makeCalcdata ( trace , 'x' ) ;
48
48
var y = ya . makeCalcdata ( trace , 'y' ) ;
49
49
50
+ // FIXME: without that undefined x is not detected in convertErrorBarPositions
51
+ if ( ! trace . x ) trace . x = x ;
52
+ if ( ! trace . y ) trace . y = y ;
53
+
50
54
// we need hi-precision for scatter2d,
51
55
// regl-scatter2d uses NaNs for bad/missing values
52
56
var positions = new Array ( count2 ) ;
You can’t perform that action at this time.
0 commit comments