File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -913,7 +913,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
913913
914914 var prevX = null ;
915915 var x = x0 ;
916- var id ;
916+ var majorId ;
917917
918918 if ( major ) {
919919 // ids for ticklabelstep
@@ -930,7 +930,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
930930 }
931931 }
932932
933- id = Math . round ( (
933+ majorId = Math . round ( (
934934 ax . r2l ( x ) -
935935 ax . r2l ( ax . tick0 )
936936 ) / _dTick ) - 1 ;
@@ -949,7 +949,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
949949 if ( major && isPeriod ) {
950950 // add one item to label period before tick0
951951 x = axes . tickIncrement ( x , dtick , ! axrev , calendar ) ;
952- id -- ;
952+ majorId -- ;
953953 }
954954
955955 for ( ;
@@ -963,7 +963,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
963963 calendar
964964 )
965965 ) {
966- if ( major ) id ++ ;
966+ if ( major ) majorId ++ ;
967967
968968 if ( mockAx . rangebreaks ) {
969969 if ( ! axrev ) {
@@ -984,7 +984,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
984984 obj . simpleLabel = true ;
985985 }
986986
987- if ( ticklabelstep > 1 && id % ticklabelstep ) {
987+ if ( ticklabelstep > 1 && majorId % ticklabelstep ) {
988988 obj . skipLabel = true ;
989989 }
990990
You can’t perform that action at this time.
0 commit comments