Skip to content

Commit 60b5d66

Browse files
committed
Revert "Revert code style for checking if the label should be hidden to how it was before."
The previous change wasn't actually cosmetic. If ticklabelindex is set, the skipLabel flag should not be tested here. This reverts commit 5861fc5.
1 parent 474daa5 commit 60b5d66

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/plots/cartesian/axes.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,9 +1303,14 @@ axes.calcTicks = function calcTicks(ax, opts) {
13031303
} else {
13041304
lastVisibleHead = ax._prevDateHead;
13051305
t = setTickLabel(ax, tickVals[i]);
1306-
if (tickVals[i].skipLabel
1307-
|| (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) === -1)) {
1308-
hideLabel(t);
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+
}
13091314
}
13101315

13111316
ticksOut.push(t);

0 commit comments

Comments
 (0)