Skip to content

Commit 96e1c51

Browse files
committed
coerce textposition if textinfo is "none"
1 parent 3c92271 commit 96e1c51

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/traces/funnelarea/defaults.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
5555
moduleHasTextangle: false,
5656
moduleHasInsideanchor: false
5757
});
58+
} else if (textInfo === 'none') {
59+
coerce('textposition', 'none');
5860
}
5961

6062
handleDomainDefaults(traceOut, layout, coerce);

src/traces/pie/defaults.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
111111
if(textposition === 'inside' || textposition === 'auto' || Array.isArray(textposition)) {
112112
coerce('insidetextorientation');
113113
}
114+
} else if (textInfo === 'none') {
115+
coerce('textposition', 'none');
114116
}
115117

116118
handleDomainDefaults(traceOut, layout, coerce);

0 commit comments

Comments
 (0)