Skip to content

Commit 5861fc5

Browse files
committed
Revert code style for checking if the label should be hidden to how it was before.
1 parent 202ea7b commit 5861fc5

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/plots/cartesian/axes.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,14 +1303,9 @@ axes.calcTicks = function calcTicks(ax, opts) {
13031303
} else {
13041304
lastVisibleHead = ax._prevDateHead;
13051305
t = setTickLabel(ax, tickVals[i]);
1306-
if (ticklabelIndex) {
1307-
if (allTicklabelVals.indexOf(tickVals[i]) === -1) {
1308-
hideLabel(t);
1309-
}
1310-
} else {
1311-
if (tickVals[i].skipLabel) {
1312-
hideLabel(t);
1313-
}
1306+
if (tickVals[i].skipLabel
1307+
|| (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) === -1)) {
1308+
hideLabel(t);
13141309
}
13151310

13161311
ticksOut.push(t);

0 commit comments

Comments
 (0)