We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fde0d32 commit 096ed73Copy full SHA for 096ed73
src/plots/cartesian/axes.js
@@ -839,8 +839,7 @@ function autoTickRound(ax) {
839
// 2 digits past largest digit of dtick
840
ax._tickround = 2 - Math.floor(Math.log(dtick) / Math.LN10 + 0.01);
841
842
- var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1])) || 1;
843
-
+ var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1]));
844
var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01);
845
if(Math.abs(rangeexp) > 3) {
846
if(isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) {
0 commit comments