File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ proto.handlePick = function(pickResult) {
135135
136136// check if trace is fancy
137137proto . isFancy = function ( options ) {
138- if ( this . scene . xaxis . type !== 'linear' ) return true ;
138+ if ( this . scene . xaxis . type !== 'linear' && this . scene . xaxis . type !== 'date' ) return true ;
139139 if ( this . scene . yaxis . type !== 'linear' ) return true ;
140140
141141 if ( ! options . x || ! options . y ) return true ;
@@ -279,7 +279,8 @@ proto.updateFast = function(options) {
279279 yy = y [ i ] ;
280280
281281 // check for isNaN is faster but doesn't skip over nulls
282- if ( ! isNumeric ( xx ) || ! isNumeric ( yy ) ) continue ;
282+ if ( ! isNumeric ( yy ) ) continue ;
283+ if ( ! isNumeric ( xx ) && ! ( xx instanceof Date ) ) continue ;
283284
284285 idToIndex [ pId ++ ] = i ;
285286
You can’t perform that action at this time.
0 commit comments