-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
plotly.js/src/traces/pie/attributes.js
Lines 305 to 329 in 206d117
_deprecated: { | |
title: { | |
valType: 'string', | |
dflt: '', | |
editType: 'calc', | |
description: [ | |
'Deprecated in favor of `title.text`.', | |
'Note that value of `title` is no longer a simple', | |
'*string* but a set of sub-attributes.' | |
].join(' ') | |
}, | |
titlefont: extendFlat({}, textFontAttrs, { | |
description: 'Deprecated in favor of `title.font`.' | |
}), | |
titleposition: { | |
valType: 'enumerated', | |
values: [ | |
'top left', 'top center', 'top right', | |
'middle center', | |
'bottom left', 'bottom center', 'bottom right' | |
], | |
editType: 'calc', | |
description: 'Deprecated in favor of `title.position`.' | |
} | |
} |
Instead one should use these attributes:
plotly.js/src/traces/pie/attributes.js
Lines 200 to 236 in 206d117
title: { | |
text: { | |
valType: 'string', | |
dflt: '', | |
editType: 'plot', | |
description: [ | |
'Sets the title of the chart.', | |
'If it is empty, no title is displayed.', | |
'Note that before the existence of `title.text`, the title\'s', | |
'contents used to be defined as the `title` attribute itself.', | |
'This behavior has been deprecated.' | |
].join(' ') | |
}, | |
font: extendFlat({}, textFontAttrs, { | |
description: [ | |
'Sets the font used for `title`.', | |
'Note that the title\'s font used to be set', | |
'by the now deprecated `titlefont` attribute.' | |
].join(' ') | |
}), | |
position: { | |
valType: 'enumerated', | |
values: [ | |
'top left', 'top center', 'top right', | |
'middle center', | |
'bottom left', 'bottom center', 'bottom right' | |
], | |
editType: 'plot', | |
description: [ | |
'Specifies the location of the `title`.', | |
'Note that the title\'s position used to be set', | |
'by the now deprecated `titleposition` attribute.' | |
].join(' ') | |
}, | |
editType: 'plot' | |
}, |
Metadata
Metadata
Assignees
Labels
No labels