Skip to content

Commit caf3239

Browse files
committed
make ticks hide/show similar to gridlines
1 parent 1f146f5 commit caf3239

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plots/cartesian/axes.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,10 @@ axes.drawTicks = function(gd, ax, opts) {
28042804
.classed('crisp', opts.crisp !== false)
28052805
.call(Color.stroke, ax.tickcolor)
28062806
.style('stroke-width', Drawing.crispRound(gd, ax.tickwidth, 1) + 'px')
2807-
.attr('d', opts.path);
2807+
.attr('d', opts.path)
2808+
.style('display', null); // visible
2809+
2810+
hideCounterAxisInsideTickLabels(ax, [TICK_PATH]);
28082811

28092812
ticks.attr('transform', opts.transFn);
28102813
};

0 commit comments

Comments
 (0)