@@ -5262,7 +5262,7 @@ describe('Test axes', function() {
5262
5262
width : 1000 ,
5263
5263
xaxis : {
5264
5264
ticklabelmode : 'period' ,
5265
- tickformat : '%Y-%q'
5265
+ tickformat : '%Y-Q %q'
5266
5266
}
5267
5267
}
5268
5268
} )
@@ -5278,7 +5278,7 @@ describe('Test axes', function() {
5278
5278
'2021-08-16' ,
5279
5279
'2021-11-16' ,
5280
5280
'2022-02-16'
5281
- ] , [ '' , '2020-1 ' , '2020-2 ' , '2020-3 ' , '2020-4 ' , '2021-1 ' , '2021-2 ' , '2021-3 ' , '2021-4 ' , '' ] ) ;
5281
+ ] , [ '' , '2020-Q1 ' , '2020-Q2 ' , '2020-Q3 ' , '2020-Q4 ' , '2021-Q1 ' , '2021-Q2 ' , '2021-Q3 ' , '2021-Q4 ' , '' ] ) ;
5282
5282
} )
5283
5283
. catch ( failTest )
5284
5284
. then ( done ) ;
@@ -5295,7 +5295,7 @@ describe('Test axes', function() {
5295
5295
width : 1000 ,
5296
5296
xaxis : {
5297
5297
ticklabelmode : 'period' ,
5298
- tickformat : '%q-' + formatter
5298
+ tickformat : 'Q %q-' + formatter
5299
5299
}
5300
5300
}
5301
5301
} )
@@ -5310,9 +5310,9 @@ describe('Test axes', function() {
5310
5310
'2020-06-16' ,
5311
5311
'2020-07-16'
5312
5312
] , [
5313
- [ '' , '1 -January' , '1 -February' , '1 -March' , '2 -April' , '2 -May' , '2 -June' , '' ] ,
5314
- [ '' , '1 -Jan' , '1 -Feb' , '1 -Mar' , '2 -Apr' , '2 -May' , '2 -Jun' , '' ] ,
5315
- [ '' , '1 -01' , '1 -02' , '1 -03' , '2 -04' , '2 -05' , '2 -06' , '' ]
5313
+ [ '' , 'Q1 -January' , 'Q1 -February' , 'Q1 -March' , 'Q2 -April' , 'Q2 -May' , 'Q2 -June' , '' ] ,
5314
+ [ '' , 'Q1 -Jan' , 'Q1 -Feb' , 'Q1 -Mar' , 'Q2 -Apr' , 'Q2 -May' , 'Q2 -Jun' , '' ] ,
5315
+ [ '' , 'Q1 -01' , 'Q1 -02' , 'Q1 -03' , 'Q2 -04' , 'Q2 -05' , 'Q2 -06' , '' ]
5316
5316
] [ i ] ) ;
5317
5317
} )
5318
5318
. catch ( failTest )
@@ -5330,7 +5330,7 @@ describe('Test axes', function() {
5330
5330
width : 1000 ,
5331
5331
xaxis : {
5332
5332
ticklabelmode : 'period' ,
5333
- tickformat : '%b-%U'
5333
+ tickformat : '%b-W %U'
5334
5334
}
5335
5335
}
5336
5336
} )
@@ -5346,7 +5346,7 @@ describe('Test axes', function() {
5346
5346
'2020-03-18 12:00' ,
5347
5347
'2020-03-25 12:00' ,
5348
5348
'2020-04-01 12:00'
5349
- ] , [ 'Jan-04 ' , 'Feb-05 ' , 'Feb-06 ' , 'Feb-07 ' , 'Feb-08 ' , 'Mar-09 ' , 'Mar-10 ' , 'Mar-11 ' , 'Mar-12 ' , 'Mar-13 ' ] ) ;
5349
+ ] , [ 'Jan-W04 ' , 'Feb-W05 ' , 'Feb-W06 ' , 'Feb-W07 ' , 'Feb-W08 ' , 'Mar-W09 ' , 'Mar-W10 ' , 'Mar-W11 ' , 'Mar-W12 ' , 'Mar-W13 ' ] ) ;
5350
5350
} )
5351
5351
. catch ( failTest )
5352
5352
. then ( done ) ;
@@ -5363,7 +5363,7 @@ describe('Test axes', function() {
5363
5363
width : 1000 ,
5364
5364
xaxis : {
5365
5365
ticklabelmode : 'period' ,
5366
- tickformat : '%b-' + formatter
5366
+ tickformat : '%b-W ' + formatter
5367
5367
}
5368
5368
}
5369
5369
} )
@@ -5380,8 +5380,8 @@ describe('Test axes', function() {
5380
5380
'2020-03-26 12:00' ,
5381
5381
'2020-04-02 12:00'
5382
5382
] , [
5383
- [ 'Jan-05 ' , 'Feb-06 ' , 'Feb-07 ' , 'Feb-08 ' , 'Feb-09 ' , 'Mar-10 ' , 'Mar-11 ' , 'Mar-12 ' , 'Mar-13 ' , 'Mar-14 ' ] ,
5384
- [ 'Jan-04 ' , 'Feb-05 ' , 'Feb-06 ' , 'Feb-07 ' , 'Feb-08 ' , 'Mar-09 ' , 'Mar-10 ' , 'Mar-11 ' , 'Mar-12 ' , 'Mar-13 ' ]
5383
+ [ 'Jan-W05 ' , 'Feb-W06 ' , 'Feb-W07 ' , 'Feb-W08 ' , 'Feb-W09 ' , 'Mar-W10 ' , 'Mar-W11 ' , 'Mar-W12 ' , 'Mar-W13 ' , 'Mar-W14 ' ] ,
5384
+ [ 'Jan-W04 ' , 'Feb-W05 ' , 'Feb-W06 ' , 'Feb-W07 ' , 'Feb-W08 ' , 'Mar-W09 ' , 'Mar-W10 ' , 'Mar-W11 ' , 'Mar-W12 ' , 'Mar-W13 ' ]
5385
5385
] [ i ] ) ;
5386
5386
} )
5387
5387
. catch ( failTest )
@@ -5433,7 +5433,7 @@ describe('Test axes', function() {
5433
5433
xaxis : {
5434
5434
rangebreaks : [ { bounds : [ 'sat' , 'mon' ] } ] ,
5435
5435
ticklabelmode : 'period' ,
5436
- tickformat : '%b-' + formatter
5436
+ tickformat : '%b-W ' + formatter
5437
5437
}
5438
5438
}
5439
5439
} )
@@ -5443,9 +5443,9 @@ describe('Test axes', function() {
5443
5443
[ '2020-01-01 12:00' , '2020-01-08 12:00' , '2020-01-15 12:00' , '2020-01-22 12:00' , '2020-01-29 12:00' ] ,
5444
5444
[ '2020-01-01 12:00' , '2020-01-08 12:00' , '2020-01-15 12:00' , '2020-01-22 12:00' , '2020-01-29 12:00' ]
5445
5445
] [ i ] , [
5446
- [ '' , 'Jan-01 ' , 'Jan-02 ' , 'Jan-03 ' , 'Jan-04 ' ] ,
5447
- [ 'Dec-01 ' , 'Jan-02 ' , 'Jan-03 ' , 'Jan-04 ' , 'Jan-05 ' ] ,
5448
- [ 'Dec-52 ' , 'Jan-01 ' , 'Jan-02 ' , 'Jan-03 ' , 'Jan-04 ' ]
5446
+ [ '' , 'Jan-W01 ' , 'Jan-W02 ' , 'Jan-W03 ' , 'Jan-W04 ' ] ,
5447
+ [ 'Dec-W01 ' , 'Jan-W02 ' , 'Jan-W03 ' , 'Jan-W04 ' , 'Jan-W05 ' ] ,
5448
+ [ 'Dec-W52 ' , 'Jan-W01 ' , 'Jan-W02 ' , 'Jan-W03 ' , 'Jan-W04 ' ]
5449
5449
] [ i ] ) ;
5450
5450
} )
5451
5451
. catch ( failTest )
0 commit comments