We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentea934c3 commitb1e8fffCopy full SHA for b1e8fff
src/traces/bar/cross_trace_calc.js
@@ -10,6 +10,7 @@ var getAxisGroup = require('../../plots/cartesian/constraints').getAxisGroup;
10
varSieve=require('./sieve.js');
11
12
varTEXTPAD=require('./constants').TEXTPAD;
13
+varLINE_SPACING=require('../../constants/alignment').LINE_SPACING;
14
varBR_TAG_ALL=require('../../lib/svg_text_utils').BR_TAG_ALL;
15
16
/*
@@ -797,7 +798,7 @@ function estimateAxisPaddingForText(trace, calcTrace) {
797
798
?Math.max(...trace.text.map((t)=>countLines(t)))
799
:countLines(trace.text);
800
-constpadAmount=trace.outsidetextfont.size*nLines+TEXTPAD;
801
+constpadAmount=trace.outsidetextfont.size*LINE_SPACING*nLines+TEXTPAD;
802
return{
803
// Yes, I know this looks backwards from what it should be,
804
// but it works like this