@@ -5524,7 +5524,7 @@ describe('Test axes', function() {
5524
5524
} ) ;
5525
5525
} ) ;
5526
5526
5527
- [ '%Q' , '%s' , '%H' , '%I' , '% X'] . forEach ( function ( formatter , i ) {
5527
+ [ '%Q' , '%s' , '%X' ] . forEach ( function ( formatter , i ) {
5528
5528
it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
5529
5529
Plotly . newPlot ( gd , {
5530
5530
data : [ {
@@ -5554,8 +5554,6 @@ describe('Test axes', function() {
5554
5554
] , [
5555
5555
[ '' , 'Wed-1577836800000' , 'Wed-1577847600000' , 'Wed-1577858400000' , 'Wed-1577869200000' , 'Wed-1577880000000' , 'Wed-1577890800000' , 'Wed-1577901600000' , 'Wed-1577912400000' , 'Thu-1577923200000' ] ,
5556
5556
[ '' , 'Wed-1577836800' , 'Wed-1577847600' , 'Wed-1577858400' , 'Wed-1577869200' , 'Wed-1577880000' , 'Wed-1577890800' , 'Wed-1577901600' , 'Wed-1577912400' , 'Thu-1577923200' ] ,
5557
- [ '' , 'Wed-00' , 'Wed-03' , 'Wed-06' , 'Wed-09' , 'Wed-12' , 'Wed-15' , 'Wed-18' , 'Wed-21' , 'Thu-00' ] ,
5558
- [ '' , 'Wed-12' , 'Wed-03' , 'Wed-06' , 'Wed-09' , 'Wed-12' , 'Wed-03' , 'Wed-06' , 'Wed-09' , 'Thu-12' ] ,
5559
5557
[ '' , 'Wed-00:00:00' , 'Wed-03:00:00' , 'Wed-06:00:00' , 'Wed-09:00:00' , 'Wed-12:00:00' , 'Wed-15:00:00' , 'Wed-18:00:00' , 'Wed-21:00:00' , 'Thu-00:00:00' ]
5560
5558
] [ i ] ) ;
5561
5559
} )
@@ -5566,6 +5564,16 @@ describe('Test axes', function() {
5566
5564
5567
5565
5568
5566
[
5567
+ {
5568
+ formatter : '%H' ,
5569
+ positions : [ '2019-12-31 21:30' , '2020-01-01 00:30' , '2020-01-01 03:30' , '2020-01-01 06:30' , '2020-01-01 09:30' , '2020-01-01 12:30' , '2020-01-01 15:30' , '2020-01-01 18:30' , '2020-01-01 21:30' , '2020-01-02 00:30' ] ,
5570
+ labels : [ '' , 'Wed-00' , 'Wed-03' , 'Wed-06' , 'Wed-09' , 'Wed-12' , 'Wed-15' , 'Wed-18' , 'Wed-21' , 'Thu-00' ]
5571
+ } ,
5572
+ {
5573
+ formatter : '%I' ,
5574
+ positions : [ '2019-12-31 21:30' , '2020-01-01 00:30' , '2020-01-01 03:30' , '2020-01-01 06:30' , '2020-01-01 09:30' , '2020-01-01 12:30' , '2020-01-01 15:30' , '2020-01-01 18:30' , '2020-01-01 21:30' , '2020-01-02 00:30' ] ,
5575
+ labels : [ '' , 'Wed-12' , 'Wed-03' , 'Wed-06' , 'Wed-09' , 'Wed-12' , 'Wed-03' , 'Wed-06' , 'Wed-09' , 'Thu-12' ]
5576
+ } ,
5569
5577
{
5570
5578
formatter : '%p' ,
5571
5579
positions : [ '2019-12-31 21:00' , '2020-01-01 06:00' , '2020-01-01 18:00' , '2020-01-02 06:00' ] ,
0 commit comments