File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1119,7 +1119,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
11191119 }
11201120 }
11211121
1122- if ( ( major || ticklabelIndex ) && isPeriod ) {
1122+ if ( ( major || ax . _useTicklabelIndex ) && isPeriod ) {
11231123 // if major: add one item to label period before tick0
11241124 // if minor: add one item for ticklabelindex positioning. positionPeriodTicks requires
11251125 // at least 2 ticks to calculate the period length, so we add a dummy tick, ensuring
@@ -1377,7 +1377,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
13771377 }
13781378 }
13791379
1380- if ( isPeriod && ticklabelIndex && minorTicks . length ) {
1380+ if ( isPeriod && ax . _useTicklabelIndex && minorTicks . length ) {
13811381 // drop very first minor tick that we added to handle ticklabelindex
13821382 minorTicks [ 0 ] . noTick = true ;
13831383 }
You can’t perform that action at this time.
0 commit comments