File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,7 @@ function maybeBin(options) {
172172}
173173
174174function maybeThresholds ( thresholds ) {
175- if ( thresholds === undefined ) {
176- return ( ...args ) => Math . min ( 200 , thresholdScott ( ...args ) ) ;
177- }
175+ if ( thresholds === undefined ) return thresholdDefault ;
178176 if ( typeof thresholds === "string" ) {
179177 switch ( thresholds . toLowerCase ( ) ) {
180178 case "freedman-diaconis" : return thresholdFreedmanDiaconis ;
@@ -186,6 +184,10 @@ function maybeThresholds(thresholds) {
186184 return thresholds ; // pass array, count, or function to bin.thresholds
187185}
188186
187+ function thresholdDefault ( values , min , max ) {
188+ return Math . min ( 200 , thresholdScott ( values , min , max ) ) ;
189+ }
190+
189191function isTimeInterval ( t ) {
190192 return t ? typeof t . range === "function" : false ;
191193}
You can’t perform that action at this time.
0 commit comments