Skip to content

Commit 7585121

Browse files
committed
Honor ticklabelstep also when using drawminorticklabel
1 parent e511fc8 commit 7585121

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,9 @@ axes.calcTicks = function calcTicks(ax, opts) {
11091109

11101110
var majorTickIndices =
11111111
allTickVals
1112-
.map(function(item, index) { return item.minor === undefined ? index : null; })
1112+
.map(function(item, index) {
1113+
return item.minor === undefined && !item.skipLabel ? index : null;
1114+
})
11131115
.filter(function(index) { return index !== null; });
11141116

11151117
majorTickIndices.forEach(function(majorIdx) {

0 commit comments

Comments
 (0)