Skip to content

Drop deprecated pie title in v3? #7185

Closed
@archmoj

Description

@archmoj

_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:

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions