@@ -5118,7 +5118,7 @@ describe('Test axes', function() {
5118
5118
} ] ,
5119
5119
layout : {
5120
5120
width : 1600 ,
5121
- height : 1600
5121
+ height : 400
5122
5122
}
5123
5123
} ;
5124
5124
@@ -5148,7 +5148,7 @@ describe('Test axes', function() {
5148
5148
'1970-01-09 08:00' , '1970-01-09 12:00' , '1970-01-09 16:00' ,
5149
5149
'1970-01-12 08:00' , '1970-01-12 12:00' , '1970-01-12 16:00' ,
5150
5150
'1970-01-13 08:00' , '1970-01-13 12:00' , '1970-01-13 16:00' ,
5151
- '1970-01-14 08:00' , '1970-01-14 12:00'
5151
+ '1970-01-14 08:00' , '1970-01-14 12:00' , '1970-01-14 16:00'
5152
5152
]
5153
5153
} , autorange ) ;
5154
5154
} )
@@ -5210,7 +5210,7 @@ describe('Test axes', function() {
5210
5210
'1970-01-09 08:00' , '1970-01-09 10:00' , '1970-01-09 12:00' , '1970-01-09 14:00' , '1970-01-09 16:00' ,
5211
5211
'1970-01-12 08:00' , '1970-01-12 10:00' , '1970-01-12 12:00' , '1970-01-12 14:00' , '1970-01-12 16:00' ,
5212
5212
'1970-01-13 08:00' , '1970-01-13 10:00' , '1970-01-13 12:00' , '1970-01-13 14:00' , '1970-01-13 16:00' ,
5213
- '1970-01-14 08:00' , '1970-01-14 10:00' , '1970-01-14 12:00' , '1970-01-14 14:00'
5213
+ '1970-01-14 08:00' , '1970-01-14 10:00' , '1970-01-14 12:00' , '1970-01-14 14:00' , '1970-01-14 16:00'
5214
5214
]
5215
5215
} , autorange ) ;
5216
5216
} )
@@ -5528,13 +5528,13 @@ describe('Test axes', function() {
5528
5528
} )
5529
5529
. then ( function ( ) {
5530
5530
_assert ( '' , [
5531
- [ '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' ] ,
5532
- [ '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' ] ,
5533
- [ '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' ]
5531
+ [ '2020-01-08 12:00' , '2020-01-15 12:00' , '2020-01-22 12:00' , '2020-01-29 12:00' ] ,
5532
+ [ '2020-01-08 12:00' , '2020-01-15 12:00' , '2020-01-22 12:00' , '2020-01-29 12:00' ] ,
5533
+ [ '2020-01-08 12:00' , '2020-01-15 12:00' , '2020-01-22 12:00' , '2020-01-29 12:00' ]
5534
5534
] [ i ] , [
5535
- [ 'Dec-W52' , ' Jan-W01', 'Jan-W02' , 'Jan-W03' , 'Jan-W04' ] ,
5536
- [ 'Dec-W01' , ' Jan-W02', 'Jan-W03' , 'Jan-W04' , 'Jan-W05' ] ,
5537
- [ 'Dec-W52' , ' Jan-W01', 'Jan-W02' , 'Jan-W03' , 'Jan-W04' ]
5535
+ [ 'Jan-W01' , 'Jan-W02' , 'Jan-W03' , 'Jan-W04' ] ,
5536
+ [ 'Jan-W02' , 'Jan-W03' , 'Jan-W04' , 'Jan-W05' ] ,
5537
+ [ 'Jan-W01' , 'Jan-W02' , 'Jan-W03' , 'Jan-W04' ]
5538
5538
] [ i ] ) ;
5539
5539
} )
5540
5540
. catch ( failTest )
@@ -5926,48 +5926,48 @@ describe('Test axes', function() {
5926
5926
[
5927
5927
{
5928
5928
range : [ '2020-12-14 08:00' , '2022-12-14 08:00' ] ,
5929
- positions : [ '2020-10-06 07:45' , ' 2021-01-06 07:45', '2021-04-06 07:45' , '2021-07-06 07:45' , '2021-10-06 07:45' , '2022-01-06 07:45' , '2022-04-06 07:45' , '2022-07-06 07:45' , '2022-10-06 07:45' ] ,
5930
- labels : [ ' ' , ' Jan 2021', 'Apr 2021' , 'Jul 2021' , 'Oct 2021' , 'Jan 2022' , 'Apr 2022' , 'Jul 2022' , 'Oct 2022' ]
5929
+ positions : [ '2021-01-06 07:45' , '2021-04-06 07:45' , '2021-07-06 07:45' , '2021-10-06 07:45' , '2022-01-06 07:45' , '2022-04-06 07:45' , '2022-07-06 07:45' , '2022-10-06 07:45' ] ,
5930
+ labels : [ 'Jan 2021' , 'Apr 2021' , 'Jul 2021' , 'Oct 2021' , 'Jan 2022' , 'Apr 2022' , 'Jul 2022' , 'Oct 2022' ]
5931
5931
} ,
5932
5932
{
5933
5933
range : [ '2020-12-14 08:00' , '2021-08-14 08:00' ] ,
5934
- positions : [ '2020-12-16 18:00' , ' 2021-01-16 18:00', '2021-02-15 06:00' , '2021-03-16 18:00' , '2021-04-16 06:00' , '2021-05-16 18:00' , '2021-06-16 06:00' , '2021-07-16 18:00' , '2021-08-16 18:00' ] ,
5935
- labels : [ 'Dec 2020' , ' Jan 2021', 'Feb 2021' , 'Mar 2021' , 'Apr 2021' , 'May 2021' , 'Jun 2021' , 'Jul 2021' , ' ' ]
5934
+ positions : [ '2021-01-16 18:00' , '2021-02-15 06:00' , '2021-03-16 18:00' , '2021-04-16 06:00' , '2021-05-16 18:00' , '2021-06-16 06:00' , '2021-07-16 18:00' , '2021-08-16 18:00' ] ,
5935
+ labels : [ 'Jan 2021' , 'Feb 2021' , 'Mar 2021' , 'Apr 2021' , 'May 2021' , 'Jun 2021' , 'Jul 2021' , ' ' ]
5936
5936
} ,
5937
5937
{
5938
5938
range : [ '2020-12-14 08:00' , '2021-04-14 08:00' ] ,
5939
- positions : [ '2020-12-07 12:00' , '2020-12- 21 12:00', '2021-01-04 12:00' , '2021-01-18 12:00' , '2021-02-01 12:00' , '2021-02-15 12:00' , '2021-03-01 12:00' , '2021-03-15 12:00' , '2021-03-29 12:00' , '2021-04-12 12:00' ] ,
5940
- labels : [ ' ' , ' Dec 21<br>2020', 'Jan 4<br>2021' , 'Jan 18' , 'Feb 1' , 'Feb 15' , 'Mar 1' , 'Mar 15' , 'Mar 29' , 'Apr 12' ]
5939
+ positions : [ '2020-12-21 12:00' , '2021-01-04 12:00' , '2021-01-18 12:00' , '2021-02-01 12:00' , '2021-02-15 12:00' , '2021-03-01 12:00' , '2021-03-15 12:00' , '2021-03-29 12:00' , '2021-04-12 12:00' ] ,
5940
+ labels : [ 'Dec 21<br>2020' , 'Jan 4<br>2021' , 'Jan 18' , 'Feb 1' , 'Feb 15' , 'Mar 1' , 'Mar 15' , 'Mar 29' , 'Apr 12' ]
5941
5941
} ,
5942
5942
{
5943
5943
range : [ '2020-12-14 08:00' , '2021-02-14 08:00' ] ,
5944
- positions : [ '2020-12-14 12:00' , '2020-12- 21 12:00', '2020-12-28 12:00' , '2021-01-04 12:00' , '2021-01-11 12:00' , '2021-01-18 12:00' , '2021-01-25 12:00' , '2021-02-01 12:00' , '2021-02-08 12:00' ] ,
5945
- labels : [ 'Dec 14 <br>2020' , 'Dec 21 ', 'Dec 28' , 'Jan 4<br>2021' , 'Jan 11' , 'Jan 18' , 'Jan 25' , 'Feb 1' , 'Feb 8' ]
5944
+ positions : [ '2020-12-21 12:00' , '2020-12-28 12:00' , '2021-01-04 12:00' , '2021-01-11 12:00' , '2021-01-18 12:00' , '2021-01-25 12:00' , '2021-02-01 12:00' , '2021-02-08 12:00' ] ,
5945
+ labels : [ 'Dec 21 <br>2020' , 'Dec 28' , 'Jan 4<br>2021' , 'Jan 11' , 'Jan 18' , 'Jan 25' , 'Feb 1' , 'Feb 8' ]
5946
5946
} ,
5947
5947
{
5948
5948
range : [ '2020-12-14 08:00' , '2021-01-14 08:00' ] ,
5949
- positions : [ '2020-12-14 12:00' , '2020-12- 21 12:00', '2020-12-28 12:00' , '2021-01-04 12:00' , '2021-01-11 12:00' ] ,
5950
- labels : [ 'Dec 14 <br>2020' , 'Dec 21 ', 'Dec 28' , 'Jan 4<br>2021' , 'Jan 11' ]
5949
+ positions : [ '2020-12-21 12:00' , '2020-12-28 12:00' , '2021-01-04 12:00' , '2021-01-11 12:00' ] ,
5950
+ labels : [ 'Dec 21 <br>2020' , 'Dec 28' , 'Jan 4<br>2021' , 'Jan 11' ]
5951
5951
} ,
5952
5952
{
5953
5953
range : [ '2020-12-14 08:00' , '2021-01-01 08:00' ] ,
5954
- positions : [ '2020-12-14 12:00' , '2020-12- 16 12:00', '2020-12-18 12:00' , '2020-12-22 12:00' , '2020-12-24 12:00' , '2020-12-28 12:00' , '2020-12-30 12:00' , '2021-01-01 12:00' ] ,
5955
- labels : [ 'Dec 14 <br>2020' , 'Dec 16 ', 'Dec 18' , 'Dec 22' , 'Dec 24' , 'Dec 28' , 'Dec 30' , ' ' ]
5954
+ positions : [ '2020-12-16 12:00' , '2020-12-18 12:00' , '2020-12-22 12:00' , '2020-12-24 12:00' , '2020-12-28 12:00' , '2020-12-30 12:00' , '2021-01-01 12:00' ] ,
5955
+ labels : [ 'Dec 16 <br>2020' , 'Dec 18' , 'Dec 22' , 'Dec 24' , 'Dec 28' , 'Dec 30' , ' ' ]
5956
5956
} ,
5957
5957
{
5958
5958
range : [ '2020-12-14 08:00' , '2020-12-22 08:00' ] ,
5959
- positions : [ '2020-12-14 12:00' , '2020-12- 15 12:00', '2020-12-16 12:00' , '2020-12-17 12:00' , '2020-12-18 12:00' , '2020-12-21 12:00' , '2020-12-22 12:00' ] ,
5960
- labels : [ 'Dec 14 <br>2020' , 'Dec 15 ', 'Dec 16' , 'Dec 17' , 'Dec 18' , 'Dec 21' , ' ' ]
5959
+ positions : [ '2020-12-15 12:00' , '2020-12-16 12:00' , '2020-12-17 12:00' , '2020-12-18 12:00' , '2020-12-21 12:00' , '2020-12-22 12:00' ] ,
5960
+ labels : [ 'Dec 15 <br>2020' , 'Dec 16' , 'Dec 17' , 'Dec 18' , 'Dec 21' , ' ' ]
5961
5961
} ,
5962
5962
{
5963
5963
range : [ '2020-12-14 08:00' , '2020-12-18 08:00' ] ,
5964
- positions : [ '2020-12-14' , '2020-12-14 12:00', '2020-12-15 06:00' , '2020-12-15 12:00' , '2020-12-16 06:00' , '2020-12-16 12:00' , '2020-12-17 06:00' , '2020-12-17 12:00' , '2020-12-18 06:00' ] ,
5965
- labels : [ ' ' , ' 12:00<br>Dec 14, 2020', '06:00<br>Dec 15, 2020' , '12:00' , '06:00<br>Dec 16, 2020' , '12:00' , '06:00<br>Dec 17, 2020' , '12:00' , '06:00<br>Dec 18, 2020' ]
5964
+ positions : [ '2020-12-14 12:00' , '2020-12-15 06:00' , '2020-12-15 12:00' , '2020-12-16 06:00' , '2020-12-16 12:00' , '2020-12-17 06:00' , '2020-12-17 12:00' , '2020-12-18 06:00' ] ,
5965
+ labels : [ '12:00<br>Dec 14, 2020' , '06:00<br>Dec 15, 2020' , '12:00' , '06:00<br>Dec 16, 2020' , '12:00' , '06:00<br>Dec 17, 2020' , '12:00' , '06:00<br>Dec 18, 2020' ]
5966
5966
} ,
5967
5967
{
5968
5968
range : [ '2020-12-14 08:00' , '2020-12-16 08:00' ] ,
5969
- positions : [ '2020-12-14 06:00' , '2020-12-14 12:00', '2020-12-15 06:00' , '2020-12-15 12:00' , '2020-12-16 06:00' ] ,
5970
- labels : [ ' ' , ' 12:00<br>Dec 14, 2020', '06:00<br>Dec 15, 2020' , '12:00' , '06:00<br>Dec 16, 2020' ]
5969
+ positions : [ '2020-12-14 12:00' , '2020-12-15 06:00' , '2020-12-15 12:00' , '2020-12-16 06:00' ] ,
5970
+ labels : [ '12:00<br>Dec 14, 2020' , '06:00<br>Dec 15, 2020' , '12:00' , '06:00<br>Dec 16, 2020' ]
5971
5971
}
5972
5972
] . forEach ( function ( t ) {
5973
5973
it ( 'should position auto labels with rangebreaks | range:' + t . range , function ( done ) {
0 commit comments