Skip to content

Commit

Permalink
make ticks hide/show similar to gridlines
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Mar 31, 2021
1 parent 1f146f5 commit caf3239
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,10 @@ axes.drawTicks = function(gd, ax, opts) {
.classed('crisp', opts.crisp !== false)
.call(Color.stroke, ax.tickcolor)
.style('stroke-width', Drawing.crispRound(gd, ax.tickwidth, 1) + 'px')
.attr('d', opts.path);
.attr('d', opts.path)
.style('display', null); // visible

hideCounterAxisInsideTickLabels(ax, [TICK_PATH]);

ticks.attr('transform', opts.transFn);
};
Expand Down

0 comments on commit caf3239

Please sign in to comment.