We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f575a3 commit 0e52adbCopy full SHA for 0e52adb
src/plots/cartesian/autorange.js
@@ -228,11 +228,7 @@ function makePadFn(ax, max) {
228
(ax.domain[1] - ax.domain[0]);
229
}
230
231
- if(max) {
232
- return function getPadMax(pt) { return pt.pad + (pt.extrapad ? extrappad : 0); };
233
- } else {
234
- return function getPadMin(pt) { return pt.pad + (pt.extrapad ? extrappad : 0); };
235
- }
+ return function getPad(pt) { return pt.pad + (pt.extrapad ? extrappad : 0); };
236
237
238
var TEXTPAD = 3;
0 commit comments