Skip to content

Commit b41f3cd

Browse files
committed
bar: describe textposition options
1 parent 5c8e7b4 commit b41f3cd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/traces/bar/attributes.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,26 @@ module.exports = {
5757
dflt: 'none',
5858
arrayOk: true,
5959
description: [
60-
'Specifies the location of the `textinfo`.'
60+
'Specifies the location of the `text`.',
61+
'*inside* positions `text` inside, next to the bar end',
62+
'(rotated and scaled if needed).',
63+
'*outside* positions `text` outside, next to the bar end',
64+
'(scaled if needed).',
65+
'*auto* positions `text` inside or outside',
66+
'so that `text` size is maximized.'
6167
].join(' ')
6268
},
6369

6470
textfont: extendFlat({}, textFontAttrs, {
65-
description: 'Sets the font used for `textinfo`.'
71+
description: 'Sets the font used for `text`.'
6672
}),
6773

6874
insidetextfont: extendFlat({}, textFontAttrs, {
69-
description: 'Sets the font used for `textinfo` lying inside the bar.'
75+
description: 'Sets the font used for `text` lying inside the bar.'
7076
}),
7177

7278
outsidetextfont: extendFlat({}, textFontAttrs, {
73-
description: 'Sets the font used for `textinfo` lying outside the bar.'
79+
description: 'Sets the font used for `text` lying outside the bar.'
7480
}),
7581

7682
orientation: {

0 commit comments

Comments
 (0)