@@ -53,6 +53,7 @@ exports.transform = function transform(dataIn, state) {
53
53
} ;
54
54
55
55
function makeTrace ( traceIn , state , direction ) {
56
+ var len = traceIn . _inputLength ;
56
57
var traceOut = {
57
58
type : 'scatter' ,
58
59
mode : 'lines' ,
@@ -64,7 +65,8 @@ function makeTrace(traceIn, state, direction) {
64
65
yaxis : traceIn . yaxis ,
65
66
66
67
hoverinfo : makeHoverInfo ( traceIn ) ,
67
- transforms : helpers . makeTransform ( traceIn , state , direction )
68
+ transforms : helpers . makeTransform ( traceIn , state , direction ) ,
69
+ _inputLength : len
68
70
} ;
69
71
70
72
// the rest of below may not have been coerced
@@ -79,7 +81,7 @@ function makeTrace(traceIn, state, direction) {
79
81
xcalendar : traceIn . xcalendar ,
80
82
81
83
// concat low and high to get correct autorange
82
- y : [ ] . concat ( traceIn . low ) . concat ( traceIn . high ) ,
84
+ y : traceIn . low . slice ( 0 , len ) . concat ( traceIn . high . slice ( 0 , len ) ) ,
83
85
84
86
text : traceIn . text ,
85
87
@@ -138,7 +140,7 @@ exports.calcTransform = function calcTransform(gd, trace, opts) {
138
140
var lowName = _ ( gd , 'low:' ) + ' ' ;
139
141
var closeName = _ ( gd , 'close:' ) + ' ' ;
140
142
141
- var len = open . length ,
143
+ var len = trace . _inputLength ,
142
144
x = [ ] ,
143
145
y = [ ] ,
144
146
textOut = [ ] ;
0 commit comments