@@ -5262,7 +5262,7 @@ describe('Test axes', function() {
52625262 width : 1000 ,
52635263 xaxis : {
52645264 ticklabelmode : 'period' ,
5265- tickformat : '%Y-%q'
5265+ tickformat : '%Y-Q %q'
52665266 }
52675267 }
52685268 } )
@@ -5278,7 +5278,7 @@ describe('Test axes', function() {
52785278 '2021-08-16' ,
52795279 '2021-11-16' ,
52805280 '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 ' , '' ] ) ;
52825282 } )
52835283 . catch ( failTest )
52845284 . then ( done ) ;
@@ -5295,7 +5295,7 @@ describe('Test axes', function() {
52955295 width : 1000 ,
52965296 xaxis : {
52975297 ticklabelmode : 'period' ,
5298- tickformat : '%q-' + formatter
5298+ tickformat : 'Q %q-' + formatter
52995299 }
53005300 }
53015301 } )
@@ -5310,9 +5310,9 @@ describe('Test axes', function() {
53105310 '2020-06-16' ,
53115311 '2020-07-16'
53125312 ] , [
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' , '' ]
53165316 ] [ i ] ) ;
53175317 } )
53185318 . catch ( failTest )
@@ -5330,7 +5330,7 @@ describe('Test axes', function() {
53305330 width : 1000 ,
53315331 xaxis : {
53325332 ticklabelmode : 'period' ,
5333- tickformat : '%b-%U'
5333+ tickformat : '%b-W %U'
53345334 }
53355335 }
53365336 } )
@@ -5346,7 +5346,7 @@ describe('Test axes', function() {
53465346 '2020-03-18 12:00' ,
53475347 '2020-03-25 12:00' ,
53485348 '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 ' ] ) ;
53505350 } )
53515351 . catch ( failTest )
53525352 . then ( done ) ;
@@ -5363,7 +5363,7 @@ describe('Test axes', function() {
53635363 width : 1000 ,
53645364 xaxis : {
53655365 ticklabelmode : 'period' ,
5366- tickformat : '%b-' + formatter
5366+ tickformat : '%b-W ' + formatter
53675367 }
53685368 }
53695369 } )
@@ -5380,8 +5380,8 @@ describe('Test axes', function() {
53805380 '2020-03-26 12:00' ,
53815381 '2020-04-02 12:00'
53825382 ] , [
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 ' ]
53855385 ] [ i ] ) ;
53865386 } )
53875387 . catch ( failTest )
@@ -5433,7 +5433,7 @@ describe('Test axes', function() {
54335433 xaxis : {
54345434 rangebreaks : [ { bounds : [ 'sat' , 'mon' ] } ] ,
54355435 ticklabelmode : 'period' ,
5436- tickformat : '%b-' + formatter
5436+ tickformat : '%b-W ' + formatter
54375437 }
54385438 }
54395439 } )
@@ -5443,9 +5443,9 @@ describe('Test axes', function() {
54435443 [ '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' ] ,
54445444 [ '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' ]
54455445 ] [ 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 ' ]
54495449 ] [ i ] ) ;
54505450 } )
54515451 . catch ( failTest )
0 commit comments