@@ -5524,7 +5524,7 @@ describe('Test axes', function() {
55245524 } ) ;
55255525 } ) ;
55265526
5527- [ '%Q' , '%s' , '%H' , '%I' , '% X'] . forEach ( function ( formatter , i ) {
5527+ [ '%Q' , '%s' , '%X' ] . forEach ( function ( formatter , i ) {
55285528 it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
55295529 Plotly . newPlot ( gd , {
55305530 data : [ {
@@ -5554,8 +5554,6 @@ describe('Test axes', function() {
55545554 ] , [
55555555 [ '' , 'Wed-1577836800000' , 'Wed-1577847600000' , 'Wed-1577858400000' , 'Wed-1577869200000' , 'Wed-1577880000000' , 'Wed-1577890800000' , 'Wed-1577901600000' , 'Wed-1577912400000' , 'Thu-1577923200000' ] ,
55565556 [ '' , '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' ] ,
55595557 [ '' , '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' ]
55605558 ] [ i ] ) ;
55615559 } )
@@ -5566,6 +5564,16 @@ describe('Test axes', function() {
55665564
55675565
55685566 [
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+ } ,
55695577 {
55705578 formatter : '%p' ,
55715579 positions : [ '2019-12-31 21:00' , '2020-01-01 06:00' , '2020-01-01 18:00' , '2020-01-02 06:00' ] ,
0 commit comments