Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdd2e89

Browse files
committed
fix issue 5132
1 parent 72c7f31 commit bdd2e89

File tree

2 files changed

+64
-64
lines changed

2 files changed

+64
-64
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
858858
ticksOut[i].periodX = v;
859859

860860
if(v > maxRange || v < minRange) { // hide label if outside the range
861-
ticksOut[i].text = '';
861+
ticksOut[i].text = ' '; // don't use an empty string here which can confuse automargin (issue 5132)
862862
removedPreTick0Label = true;
863863
}
864864
}

0 commit comments

Comments
 (0)