@@ -5216,8 +5216,8 @@ describe('Test axes', function() {
5216
5216
expect ( labels ) . withContext ( msg ) . toEqual ( expLabels ) ;
5217
5217
}
5218
5218
5219
- [ '%Y' , '%y' ] . forEach ( function ( tickformat , i ) {
5220
- it ( 'should respect yearly tickformat that includes ' + tickformat , function ( done ) {
5219
+ [ '%Y' , '%y' ] . forEach ( function ( formatter , i ) {
5220
+ it ( 'should respect yearly tickformat that includes ' + formatter , function ( done ) {
5221
5221
Plotly . newPlot ( gd , {
5222
5222
data : [ {
5223
5223
x : [ '2020-01-01' , '2026-01-01' ]
@@ -5226,7 +5226,7 @@ describe('Test axes', function() {
5226
5226
width : 1000 ,
5227
5227
xaxis : {
5228
5228
ticklabelmode : 'period' ,
5229
- tickformat : tickformat
5229
+ tickformat : formatter
5230
5230
}
5231
5231
}
5232
5232
} )
@@ -5281,8 +5281,8 @@ describe('Test axes', function() {
5281
5281
. then ( done ) ;
5282
5282
} ) ;
5283
5283
5284
- [ '%B' , '%b' , '%m' ] . forEach ( function ( tickformat , i ) {
5285
- it ( 'should respect monthly tickformat that includes ' + tickformat , function ( done ) {
5284
+ [ '%B' , '%b' , '%m' ] . forEach ( function ( formatter , i ) {
5285
+ it ( 'should respect monthly tickformat that includes ' + formatter , function ( done ) {
5286
5286
Plotly . newPlot ( gd , {
5287
5287
data : [ {
5288
5288
x : [ '2020-01-01' , '2020-07-01' ]
@@ -5291,7 +5291,7 @@ describe('Test axes', function() {
5291
5291
width : 1000 ,
5292
5292
xaxis : {
5293
5293
ticklabelmode : 'period' ,
5294
- tickformat : '%q-' + tickformat
5294
+ tickformat : '%q-' + formatter
5295
5295
}
5296
5296
}
5297
5297
} )
@@ -5347,8 +5347,8 @@ describe('Test axes', function() {
5347
5347
. then ( done ) ;
5348
5348
} ) ;
5349
5349
5350
- [ '%V' , '%W' ] . forEach ( function ( tickformat , i ) {
5351
- it ( 'should respect Monday-based week tickformat that includes ' + tickformat , function ( done ) {
5350
+ [ '%V' , '%W' ] . forEach ( function ( formatter , i ) {
5351
+ it ( 'should respect Monday-based week tickformat that includes ' + formatter , function ( done ) {
5352
5352
Plotly . newPlot ( gd , {
5353
5353
data : [ {
5354
5354
x : [ '2020-02-01' , '2020-04-01' ]
@@ -5357,7 +5357,7 @@ describe('Test axes', function() {
5357
5357
width : 1000 ,
5358
5358
xaxis : {
5359
5359
ticklabelmode : 'period' ,
5360
- tickformat : '%b-' + tickformat
5360
+ tickformat : '%b-' + formatter
5361
5361
}
5362
5362
}
5363
5363
} )
@@ -5383,7 +5383,7 @@ describe('Test axes', function() {
5383
5383
} ) ;
5384
5384
} ) ;
5385
5385
5386
- [ '%U' , '%V' , '%W' ] . forEach ( function ( tickformat , i ) {
5386
+ [ '%U' , '%V' , '%W' ] . forEach ( function ( formatter , i ) {
5387
5387
it ( 'should move weekly labels by one day (i.e. to help center the labels) when *day of week* rangebreak is present' , function ( done ) {
5388
5388
Plotly . newPlot ( gd , {
5389
5389
data : [ {
@@ -5426,7 +5426,7 @@ describe('Test axes', function() {
5426
5426
xaxis : {
5427
5427
rangebreaks : [ { bounds : [ 'sat' , 'mon' ] } ] ,
5428
5428
ticklabelmode : 'period' ,
5429
- tickformat : '%b-' + tickformat
5429
+ tickformat : '%b-' + formatter
5430
5430
}
5431
5431
}
5432
5432
} )
@@ -5446,8 +5446,8 @@ describe('Test axes', function() {
5446
5446
} ) ;
5447
5447
} ) ;
5448
5448
5449
- [ '%A' , '%a' , '%d' , '%e' , '%j' , '%u' , '%w' , '%x' ] . forEach ( function ( tickformat , i ) {
5450
- it ( 'should respect daily tickformat that includes ' + tickformat , function ( done ) {
5449
+ [ '%A' , '%a' , '%d' , '%e' , '%j' , '%u' , '%w' , '%x' ] . forEach ( function ( formatter , i ) {
5450
+ it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
5451
5451
Plotly . newPlot ( gd , {
5452
5452
data : [ {
5453
5453
x : [ '2020-01-01' , '2020-01-08' ]
@@ -5456,7 +5456,7 @@ describe('Test axes', function() {
5456
5456
width : 1000 ,
5457
5457
xaxis : {
5458
5458
ticklabelmode : 'period' ,
5459
- tickformat : '%b-' + tickformat
5459
+ tickformat : '%b-' + formatter
5460
5460
}
5461
5461
}
5462
5462
} )
@@ -5487,8 +5487,8 @@ describe('Test axes', function() {
5487
5487
} ) ;
5488
5488
} ) ;
5489
5489
5490
- [ '%f' , '%L' , '%Q' , '%s' , '%S' , '%M' , '%H' , '%I' , '%p' , '%X' ] . forEach ( function ( tickformat , i ) {
5491
- it ( 'should respect daily tickformat that includes ' + tickformat , function ( done ) {
5490
+ [ '%f' , '%L' , '%Q' , '%s' , '%S' , '%M' , '%H' , '%I' , '%p' , '%X' ] . forEach ( function ( formatter , i ) {
5491
+ it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
5492
5492
Plotly . newPlot ( gd , {
5493
5493
data : [ {
5494
5494
x : [ '2020-01-01' , '2020-01-02' ]
@@ -5497,7 +5497,7 @@ describe('Test axes', function() {
5497
5497
width : 1000 ,
5498
5498
xaxis : {
5499
5499
ticklabelmode : 'period' ,
5500
- tickformat : '%a-' + tickformat
5500
+ tickformat : '%a-' + formatter
5501
5501
}
5502
5502
}
5503
5503
} )
0 commit comments