@@ -223,9 +223,9 @@ suite.addBatch({
223223 } ,
224224 "applies fixed-scale SI-prefix notation" : function ( d3 ) {
225225 var x = d3 . scale . linear ( ) . domain ( [ 0 , 1e6 ] ) ;
226- assert . deepEqual ( x . ticks ( 10 ) . map ( x . tickFormat ( 10 , "s" ) ) , [ "0M" , "0.1M" , "0.2M" , "0.3M" , "0.4M" , "0.5M" , "0.6M" , "0.7M" , "0.8M" , "0.9M" , "1M " ] ) ;
227- assert . deepEqual ( x . ticks ( 10 ) . map ( x . tickFormat ( 10 , ".1s " ) ) , [ "0.0M " , "0.1M " , "0.2M " , "0.3M " , "0.4M " , "0.5M " , "0.6M " , "0.7M " , "0.8M " , "0.9M " , "1.0M " ] ) ;
228- assert . deepEqual ( x . ticks ( 10 ) . map ( x . tickFormat ( 10 , "+$.1s " ) ) , [ "+$0.0M" , "+$0.1M" , "+$0.2M" , "+$0.3M" , "+$0.4M" , "+$0.5M" , "+$0.6M" , "+$0.7M" , "+$0.8M" , "+$0.9M" , "+$1.0M" ] ) ;
226+ assert . deepEqual ( x . ticks ( 10 ) . map ( x . tickFormat ( 10 , "s" ) ) , [ "0. 0M" , "0.1M" , "0.2M" , "0.3M" , "0.4M" , "0.5M" , "0.6M" , "0.7M" , "0.8M" , "0.9M" , "1.0M " ] ) ;
227+ assert . deepEqual ( x . ticks ( 10 ) . map ( x . tickFormat ( 10 , ".2s " ) ) , [ "0.00M " , "0.10M " , "0.20M " , "0.30M " , "0.40M " , "0.50M " , "0.60M " , "0.70M " , "0.80M " , "0.90M " , "1.00M " ] ) ;
228+ assert . deepEqual ( x . ticks ( 10 ) . map ( x . tickFormat ( 10 , "+$s " ) ) , [ "+$0.0M" , "+$0.1M" , "+$0.2M" , "+$0.3M" , "+$0.4M" , "+$0.5M" , "+$0.6M" , "+$0.7M" , "+$0.8M" , "+$0.9M" , "+$1.0M" ] ) ;
229229 var x = d3 . scale . linear ( ) . domain ( [ 0 , 1e5 ] ) ;
230230 assert . deepEqual ( x . ticks ( 10 ) . map ( x . tickFormat ( 10 , "s" ) ) , [ "0k" , "10k" , "20k" , "30k" , "40k" , "50k" , "60k" , "70k" , "80k" , "90k" , "100k" ] ) ;
231231 var x = d3 . scale . linear ( ) . domain ( [ 0 , 1e-4 ] ) ;
0 commit comments