File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -255,15 +255,17 @@ var minicharts_d3fns_date = function() {
255
255
. attr ( 'y' , barcodeTop )
256
256
. attr ( 'height' , barcodeBottom - barcodeTop ) ;
257
257
258
- var lines = g . selectAll ( '.selectable' )
259
- . data ( values , function ( d ) {
260
- return d . ts ;
261
- } ) ;
258
+ var lineContainer = gEnter . append ( 'g' )
259
+ . attr ( 'class' , 'line-container' ) ;
260
+
261
+ var lines = lineContainer . selectAll ( '.selectable' ) . data ( values , function ( d ) {
262
+ return d . ts ;
263
+ } ) ;
262
264
263
265
lines . enter ( ) . append ( 'line' )
264
266
. attr ( 'class' , 'line selectable' )
265
267
. style ( 'opacity' , function ( ) {
266
- return values . length > 200 ? 0.3 : 1.0 ;
268
+ return lines . size ( ) > 200 ? 0.3 : 1.0 ;
267
269
} )
268
270
. on ( 'mouseover' , tip . show )
269
271
. on ( 'mouseout' , tip . hide )
Original file line number Diff line number Diff line change @@ -586,7 +586,7 @@ module.exports = {
586
586
* @return {Any } value to be returned that can be used for comparisons < and >
587
587
*/
588
588
_getOrderedValueHelper : function ( d ) {
589
- if ( ! d . _bsontype ) {
589
+ if ( ! d || ! d . _bsontype ) {
590
590
return d ;
591
591
}
592
592
return d . _bsontype === 'ObjectID' ? d . getTimestamp ( ) : d ;
You can’t perform that action at this time.
0 commit comments