Skip to content

Commit 96685b3

Browse files
committed
provide extra pad around tick labels
1 parent e8a182d commit 96685b3

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/plots/cartesian/autorange.js

+4
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ function makePadFn(ax, max) {
244244
Math.max(w * cosA, h * sinA) :
245245
Math.max(h * cosA, w * sinA)
246246
);
247+
248+
var fontSize = anchorAxis.tickfont ? anchorAxis.tickfont.size : 12;
249+
// add extra pad around label
250+
morePad += fontSize / 5;
247251
}
248252
});
249253
}
-879 Bytes
Loading
584 Bytes
Loading

0 commit comments

Comments
 (0)