@@ -5216,8 +5216,8 @@ describe('Test axes', function() {
52165216 expect ( labels ) . withContext ( msg ) . toEqual ( expLabels ) ;
52175217 }
52185218
5219- [ '%Y' , '%y' ] . forEach ( function ( tickformat , i ) {
5220- it ( 'should respect yearly tickformat that includes ' + tickformat , function ( done ) {
5219+ [ '%Y' , '%y' ] . forEach ( function ( formatter , i ) {
5220+ it ( 'should respect yearly tickformat that includes ' + formatter , function ( done ) {
52215221 Plotly . newPlot ( gd , {
52225222 data : [ {
52235223 x : [ '2020-01-01' , '2026-01-01' ]
@@ -5226,7 +5226,7 @@ describe('Test axes', function() {
52265226 width : 1000 ,
52275227 xaxis : {
52285228 ticklabelmode : 'period' ,
5229- tickformat : tickformat
5229+ tickformat : formatter
52305230 }
52315231 }
52325232 } )
@@ -5281,8 +5281,8 @@ describe('Test axes', function() {
52815281 . then ( done ) ;
52825282 } ) ;
52835283
5284- [ '%B' , '%b' , '%m' ] . forEach ( function ( tickformat , i ) {
5285- it ( 'should respect monthly tickformat that includes ' + tickformat , function ( done ) {
5284+ [ '%B' , '%b' , '%m' ] . forEach ( function ( formatter , i ) {
5285+ it ( 'should respect monthly tickformat that includes ' + formatter , function ( done ) {
52865286 Plotly . newPlot ( gd , {
52875287 data : [ {
52885288 x : [ '2020-01-01' , '2020-07-01' ]
@@ -5291,7 +5291,7 @@ describe('Test axes', function() {
52915291 width : 1000 ,
52925292 xaxis : {
52935293 ticklabelmode : 'period' ,
5294- tickformat : '%q-' + tickformat
5294+ tickformat : '%q-' + formatter
52955295 }
52965296 }
52975297 } )
@@ -5347,8 +5347,8 @@ describe('Test axes', function() {
53475347 . then ( done ) ;
53485348 } ) ;
53495349
5350- [ '%V' , '%W' ] . forEach ( function ( tickformat , i ) {
5351- it ( 'should respect Monday-based week tickformat that includes ' + tickformat , function ( done ) {
5350+ [ '%V' , '%W' ] . forEach ( function ( formatter , i ) {
5351+ it ( 'should respect Monday-based week tickformat that includes ' + formatter , function ( done ) {
53525352 Plotly . newPlot ( gd , {
53535353 data : [ {
53545354 x : [ '2020-02-01' , '2020-04-01' ]
@@ -5357,7 +5357,7 @@ describe('Test axes', function() {
53575357 width : 1000 ,
53585358 xaxis : {
53595359 ticklabelmode : 'period' ,
5360- tickformat : '%b-' + tickformat
5360+ tickformat : '%b-' + formatter
53615361 }
53625362 }
53635363 } )
@@ -5383,7 +5383,7 @@ describe('Test axes', function() {
53835383 } ) ;
53845384 } ) ;
53855385
5386- [ '%U' , '%V' , '%W' ] . forEach ( function ( tickformat , i ) {
5386+ [ '%U' , '%V' , '%W' ] . forEach ( function ( formatter , i ) {
53875387 it ( 'should move weekly labels by one day (i.e. to help center the labels) when *day of week* rangebreak is present' , function ( done ) {
53885388 Plotly . newPlot ( gd , {
53895389 data : [ {
@@ -5426,7 +5426,7 @@ describe('Test axes', function() {
54265426 xaxis : {
54275427 rangebreaks : [ { bounds : [ 'sat' , 'mon' ] } ] ,
54285428 ticklabelmode : 'period' ,
5429- tickformat : '%b-' + tickformat
5429+ tickformat : '%b-' + formatter
54305430 }
54315431 }
54325432 } )
@@ -5446,8 +5446,8 @@ describe('Test axes', function() {
54465446 } ) ;
54475447 } ) ;
54485448
5449- [ '%A' , '%a' , '%d' , '%e' , '%j' , '%u' , '%w' , '%x' ] . forEach ( function ( tickformat , i ) {
5450- it ( 'should respect daily tickformat that includes ' + tickformat , function ( done ) {
5449+ [ '%A' , '%a' , '%d' , '%e' , '%j' , '%u' , '%w' , '%x' ] . forEach ( function ( formatter , i ) {
5450+ it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
54515451 Plotly . newPlot ( gd , {
54525452 data : [ {
54535453 x : [ '2020-01-01' , '2020-01-08' ]
@@ -5456,7 +5456,7 @@ describe('Test axes', function() {
54565456 width : 1000 ,
54575457 xaxis : {
54585458 ticklabelmode : 'period' ,
5459- tickformat : '%b-' + tickformat
5459+ tickformat : '%b-' + formatter
54605460 }
54615461 }
54625462 } )
@@ -5487,8 +5487,8 @@ describe('Test axes', function() {
54875487 } ) ;
54885488 } ) ;
54895489
5490- [ '%f' , '%L' , '%Q' , '%s' , '%S' , '%M' , '%H' , '%I' , '%p' , '%X' ] . forEach ( function ( tickformat , i ) {
5491- it ( 'should respect daily tickformat that includes ' + tickformat , function ( done ) {
5490+ [ '%f' , '%L' , '%Q' , '%s' , '%S' , '%M' , '%H' , '%I' , '%p' , '%X' ] . forEach ( function ( formatter , i ) {
5491+ it ( 'should respect daily tickformat that includes ' + formatter , function ( done ) {
54925492 Plotly . newPlot ( gd , {
54935493 data : [ {
54945494 x : [ '2020-01-01' , '2020-01-02' ]
@@ -5497,7 +5497,7 @@ describe('Test axes', function() {
54975497 width : 1000 ,
54985498 xaxis : {
54995499 ticklabelmode : 'period' ,
5500- tickformat : '%a-' + tickformat
5500+ tickformat : '%a-' + formatter
55015501 }
55025502 }
55035503 } )
0 commit comments