@@ -909,7 +909,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
909909 var calendar = ax . calendar ;
910910 var ticklabelstep = ax . ticklabelstep ;
911911 var isPeriod = ax . ticklabelmode === 'period' ;
912- var drawMinorTickLabel = ax . drawminorticklabel ;
912+ var ticklabelIndex = ax . ticklabelindex ;
913913 var rng = Lib . simpleMap ( ax . range , ax . r2l , undefined , undefined , opts ) ;
914914 var axrev = ( rng [ 1 ] < rng [ 0 ] ) ;
915915 var minRange = Math . min ( rng [ 0 ] , rng [ 1 ] ) ;
@@ -923,7 +923,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
923923 var tickVals = [ ] ;
924924 var minorTickVals = [ ] ;
925925 // all ticks for which labels are drawn which is not necessarily the major ticks when
926- // `drawminorticklabel ` is set.
926+ // `ticklabelindex ` is set.
927927 var labelTickVals = [ ] ;
928928
929929 var hasMinor = ax . minor && ( ax . minor . ticks || ax . minor . showgrid ) ;
@@ -1079,20 +1079,20 @@ axes.calcTicks = function calcTicks(ax, opts) {
10791079 }
10801080 }
10811081
1082- // check if drawMinorTickLabel makes sense, otherwise ignore it
1082+ // check if ticklabelIndex makes sense, otherwise ignore it
10831083 if ( ! minorTickVals || minorTickVals . length < 2 ) {
1084- drawMinorTickLabel = false ;
1084+ ticklabelIndex = false ;
10851085 } else {
10861086 var diff = minorTickVals [ 1 ] . value - minorTickVals [ 0 ] . value ;
10871087 if ( ! periodCompatibleWithTickformat ( diff , ax . tickformat ) ) {
1088- drawMinorTickLabel = false ;
1088+ ticklabelIndex = false ;
10891089 }
10901090 }
10911091 // Determine for which ticks to draw labels
1092- if ( ! drawMinorTickLabel ) {
1092+ if ( ! ticklabelIndex ) {
10931093 labelTickVals = tickVals ;
10941094 } else {
1095- // Collect and sort all major and minor ticks, to find the minor ticks `drawMinorTickLabel `
1095+ // Collect and sort all major and minor ticks, to find the minor ticks `ticklabelIndex `
10961096 // steps away from each major tick. For those minor ticks we want to draw the label.
10971097
10981098 var allTickVals = tickVals . concat ( minorTickVals ) ;
@@ -1115,7 +1115,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
11151115 . filter ( function ( index ) { return index !== null ; } ) ;
11161116
11171117 majorTickIndices . forEach ( function ( majorIdx ) {
1118- var minorIdx = majorIdx + drawMinorTickLabel ;
1118+ var minorIdx = majorIdx + ticklabelIndex ;
11191119 if ( minorIdx >= 0 && minorIdx < allTickVals . length ) {
11201120 labelTickVals . push ( allTickVals [ minorIdx ] ) ;
11211121 }
@@ -1239,7 +1239,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
12391239 var _value = tickVals [ i ] . value ;
12401240
12411241 if ( _minor ) {
1242- if ( drawMinorTickLabel && labelTickVals . indexOf ( tickVals [ i ] ) !== - 1 ) {
1242+ if ( ticklabelIndex && labelTickVals . indexOf ( tickVals [ i ] ) !== - 1 ) {
12431243 t = setTickLabel ( ax , tickVals [ i ] ) ;
12441244 } else {
12451245 t = { x : _value } ;
@@ -1250,7 +1250,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
12501250 lastVisibleHead = ax . _prevDateHead ;
12511251 t = setTickLabel ( ax , tickVals [ i ] ) ;
12521252 if ( tickVals [ i ] . skipLabel ||
1253- drawMinorTickLabel && labelTickVals . indexOf ( tickVals [ i ] ) === - 1 ) {
1253+ ticklabelIndex && labelTickVals . indexOf ( tickVals [ i ] ) === - 1 ) {
12541254 hideLabel ( t ) ;
12551255 }
12561256
0 commit comments