@@ -5198,6 +5198,7 @@ describe('Test axes', function() {
5198
5198
} ) ;
5199
5199
5200
5200
describe ( 'label positioning using *ticklabelmode*: "period"' , function ( ) {
5201
+ var hovertemplate = 'x:%{x|%x %X}' ; // to make debugging easier
5201
5202
var gd ;
5202
5203
5203
5204
beforeEach ( function ( ) {
@@ -5220,6 +5221,7 @@ describe('Test axes', function() {
5220
5221
it ( 'should respect yearly tickformat that includes ' + formatter , function ( done ) {
5221
5222
Plotly . newPlot ( gd , {
5222
5223
data : [ {
5224
+ hovertemplate : hovertemplate ,
5223
5225
x : [ '2020-01-01' , '2026-01-01' ]
5224
5226
} ] ,
5225
5227
layout : {
@@ -5253,6 +5255,7 @@ describe('Test axes', function() {
5253
5255
it ( 'should respect quarters tickformat that includes %q' , function ( done ) {
5254
5256
Plotly . newPlot ( gd , {
5255
5257
data : [ {
5258
+ hovertemplate : hovertemplate ,
5256
5259
x : [ '2020-01-01' , '2022-01-01' ]
5257
5260
} ] ,
5258
5261
layout : {
@@ -5285,6 +5288,7 @@ describe('Test axes', function() {
5285
5288
it ( 'should respect monthly tickformat that includes ' + formatter , function ( done ) {
5286
5289
Plotly . newPlot ( gd , {
5287
5290
data : [ {
5291
+ hovertemplate : hovertemplate ,
5288
5292
x : [ '2020-01-01' , '2020-07-01' ]
5289
5293
} ] ,
5290
5294
layout : {
@@ -5319,6 +5323,7 @@ describe('Test axes', function() {
5319
5323
it ( 'should respect Sunday-based week tickformat that includes %U' , function ( done ) {
5320
5324
Plotly . newPlot ( gd , {
5321
5325
data : [ {
5326
+ hovertemplate : hovertemplate ,
5322
5327
x : [ '2020-02-01' , '2020-04-01' ]
5323
5328
} ] ,
5324
5329
layout : {
@@ -5351,6 +5356,7 @@ describe('Test axes', function() {
5351
5356
it ( 'should respect Monday-based week tickformat that includes ' + formatter , function ( done ) {
5352
5357
Plotly . newPlot ( gd , {
5353
5358
data : [ {
5359
+ hovertemplate : hovertemplate ,
5354
5360
x : [ '2020-02-01' , '2020-04-01' ]
5355
5361
} ] ,
5356
5362
layout : {
@@ -5387,6 +5393,7 @@ describe('Test axes', function() {
5387
5393
it ( 'should move weekly labels by one day (i.e. to help center the labels) when *day of week* rangebreak is present' , function ( done ) {
5388
5394
Plotly . newPlot ( gd , {
5389
5395
data : [ {
5396
+ hovertemplate : hovertemplate ,
5390
5397
x : [
5391
5398
'2020-01-01' ,
5392
5399
'2020-01-02' ,
@@ -5450,6 +5457,7 @@ describe('Test axes', function() {
5450
5457
it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
5451
5458
Plotly . newPlot ( gd , {
5452
5459
data : [ {
5460
+ hovertemplate : hovertemplate ,
5453
5461
x : [ '2020-01-01' , '2020-01-08' ]
5454
5462
} ] ,
5455
5463
layout : {
@@ -5491,6 +5499,7 @@ describe('Test axes', function() {
5491
5499
it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
5492
5500
Plotly . newPlot ( gd , {
5493
5501
data : [ {
5502
+ hovertemplate : hovertemplate ,
5494
5503
x : [ '2020-01-01' , '2020-01-02' ]
5495
5504
} ] ,
5496
5505
layout : {
@@ -5606,6 +5615,7 @@ describe('Test axes', function() {
5606
5615
it ( 'should position auto labels | range:' + t . range , function ( done ) {
5607
5616
Plotly . newPlot ( gd , {
5608
5617
data : [ {
5618
+ hovertemplate : hovertemplate ,
5609
5619
x : [
5610
5620
'2020-12-15' ,
5611
5621
'2020-12-15 0:45' ,
@@ -5701,6 +5711,7 @@ describe('Test axes', function() {
5701
5711
it ( 'should position auto labels with rangebreaks | range:' + t . range , function ( done ) {
5702
5712
Plotly . newPlot ( gd , {
5703
5713
data : [ {
5714
+ hovertemplate : hovertemplate ,
5704
5715
x : [
5705
5716
'2020-12-14 08:00' , '2020-12-14 12:00' , '2020-12-14 16:00' ,
5706
5717
'2020-12-15 08:00' , '2020-12-15 12:00' , '2020-12-15 16:00' ,
0 commit comments