Skip to content

Commit ed7b3ee

Browse files
Merge branch 'first_poc_tickmode_sync' of https://github.com/VictorBezak/plotly.js into first_poc_tickmode_sync
2 parents 3f5e118 + 7590ef8 commit ed7b3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3219,7 +3219,7 @@ axes.drawGrid = function(gd, ax, opts) {
32193219

32203220
var hasMinor = ax.minor && ax.minor.showgrid;
32213221
var minorVals = hasMinor ? opts.vals.filter(function(d) { return d.minor; }) : [];
3222-
var majorVals = ax.showgrid ? opts.vals.filter(function(d) { return !d.minor; }) : [];
3222+
var majorVals = ax.showgrid && ax.tickmode !== 'sync' ? opts.vals.filter(function(d) { return !d.minor; }) : [];
32233223

32243224
var counterAx = opts.counterAxis;
32253225
if(counterAx && axes.shouldShowZeroLine(gd, ax, counterAx)) {

0 commit comments

Comments
 (0)