@@ -53,6 +53,7 @@ exports.transform = function transform(dataIn, state) {
5353} ;
5454
5555function makeTrace ( traceIn , state , direction ) {
56+ var len = traceIn . _inputLength ;
5657 var traceOut = {
5758 type : 'scatter' ,
5859 mode : 'lines' ,
@@ -64,7 +65,8 @@ function makeTrace(traceIn, state, direction) {
6465 yaxis : traceIn . yaxis ,
6566
6667 hoverinfo : makeHoverInfo ( traceIn ) ,
67- transforms : helpers . makeTransform ( traceIn , state , direction )
68+ transforms : helpers . makeTransform ( traceIn , state , direction ) ,
69+ _inputLength : len
6870 } ;
6971
7072 // the rest of below may not have been coerced
@@ -79,7 +81,7 @@ function makeTrace(traceIn, state, direction) {
7981 xcalendar : traceIn . xcalendar ,
8082
8183 // 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 ) ) ,
8385
8486 text : traceIn . text ,
8587
@@ -138,7 +140,7 @@ exports.calcTransform = function calcTransform(gd, trace, opts) {
138140 var lowName = _ ( gd , 'low:' ) + ' ' ;
139141 var closeName = _ ( gd , 'close:' ) + ' ' ;
140142
141- var len = open . length ,
143+ var len = trace . _inputLength ,
142144 x = [ ] ,
143145 y = [ ] ,
144146 textOut = [ ] ;
0 commit comments