Skip to content

Commit 0fe8cec

Browse files
committed
function to call hideCounterAxisInsideTickLabels
1 parent 1df0c42 commit 0fe8cec

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/plots/cartesian/axes.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -2870,11 +2870,7 @@ axes.drawGrid = function(gd, ax, opts) {
28702870
.style('stroke-width', ax._gw + 'px')
28712871
.style(VISIBLE);
28722872

2873-
if(insideTicklabelposition(ax._anchorAxis || {})) {
2874-
if(ax._hideCounterAxisInsideTickLabels) {
2875-
ax._hideCounterAxisInsideTickLabels();
2876-
}
2877-
}
2873+
hideCounterAxisInsideTickLabels(ax);
28782874

28792875
if(typeof opts.path === 'function') grid.attr('d', opts.path);
28802876
};
@@ -3751,3 +3747,11 @@ function moveOutsideBreak(v, ax) {
37513747
function insideTicklabelposition(ax) {
37523748
return ((ax.ticklabelposition || '').indexOf('inside') !== -1);
37533749
}
3750+
3751+
function hideCounterAxisInsideTickLabels(ax) {
3752+
if(insideTicklabelposition(ax._anchorAxis || {})) {
3753+
if(ax._hideCounterAxisInsideTickLabels) {
3754+
ax._hideCounterAxisInsideTickLabels();
3755+
}
3756+
}
3757+
}

0 commit comments

Comments
 (0)