Skip to content

Commit d11e92f

Browse files
authored
Merge pull request #4463 from plotly/sunburst-outside-font-description
Improve description of sunburst/treemap outsidetextfont
2 parents 86af82a + 29ed0ed commit d11e92f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/traces/sunburst/attributes.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,15 @@ module.exports = {
194194
textfont: pieAttrs.textfont,
195195
insidetextorientation: pieAttrs.insidetextorientation,
196196
insidetextfont: pieAttrs.insidetextfont,
197-
outsidetextfont: pieAttrs.outsidetextfont,
197+
outsidetextfont: extendFlat({}, pieAttrs.outsidetextfont, {
198+
description: [
199+
'Sets the font used for `textinfo` lying outside the sector.',
200+
'This option refers to the root of the hierarchy',
201+
'presented at the center of a sunburst graph.',
202+
'Please note that if a hierarchy has multiple root nodes,',
203+
'this option won\'t have any effect and `insidetextfont` would be used.'
204+
].join(' ')
205+
}),
198206

199207
domain: domainAttrs({name: 'sunburst', trace: true, editType: 'calc'})
200208
};

src/traces/treemap/attributes.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,15 @@ module.exports = {
244244

245245
textfont: pieAttrs.textfont,
246246
insidetextfont: pieAttrs.insidetextfont,
247-
outsidetextfont: pieAttrs.outsidetextfont,
247+
outsidetextfont: extendFlat({}, pieAttrs.outsidetextfont, {
248+
description: [
249+
'Sets the font used for `textinfo` lying outside the sector.',
250+
'This option refers to the root of the hierarchy',
251+
'presented on top left corner of a treemap graph.',
252+
'Please note that if a hierarchy has multiple root nodes,',
253+
'this option won\'t have any effect and `insidetextfont` would be used.'
254+
].join(' ')
255+
}),
248256

249257
textposition: {
250258
valType: 'enumerated',

0 commit comments

Comments
 (0)