Skip to content

Commit 096ed73

Browse files
committed
revert commit 765ca5a
1 parent fde0d32 commit 096ed73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plots/cartesian/axes.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,7 @@ function autoTickRound(ax) {
839839
// 2 digits past largest digit of dtick
840840
ax._tickround = 2 - Math.floor(Math.log(dtick) / Math.LN10 + 0.01);
841841

842-
var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1])) || 1;
843-
842+
var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1]));
844843
var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01);
845844
if(Math.abs(rangeexp) > 3) {
846845
if(isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) {

0 commit comments

Comments
 (0)