Skip to content

Commit cf68ae7

Browse files
committed
fixes issue 5321 - more than necessary space
1 parent f0709c3 commit cf68ae7

7 files changed

+1
-4
lines changed

src/plots/cartesian/autorange.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,10 @@ function padInsideLabelsOnAnchorAxis(ax, max) {
300300
var w = t.bb.width;
301301
var h = t.bb.height;
302302

303-
pad = Math.max(pad, isX ?
303+
pad = Math.max(pad, TEXTPAD + isX ?
304304
Math.max(w * cosA, h * sinA) :
305305
Math.max(h * cosA, w * sinA)
306306
);
307-
308-
// add extra pad around label
309-
pad += 3;
310307
}
311308
});
312309
}
920 Bytes
Loading
-3.6 KB
Loading
-258 Bytes
Loading
1.27 KB
Loading
-519 Bytes
Loading
-1.47 KB
Loading

0 commit comments

Comments
 (0)