The titleSettings
class provides options to customize the title and subtitle displayed in the chart.
Options to improve accessibility for chart title and subtitle elements.
string
The background
property sets the background color of the chart title and subtitle.
Defaults to ‘transparent’
The border
property allows configuring the border settings for the chart title and subtitle.
string
The color
property specifies the color of the text used for the chart title and subtitle.
Defaults to ”
string
The fontFamily
property specifies the font family for the text used in the chart title and subtitle.
string
The fontStyle
property specifies the style of the text used for the chart title and subtitle.
Defaults to ‘Normal’
string
The fontWeight
property specifies the weight (thickness) of the text used for the chart title and subtitle.
Defaults to ‘500’
number
Specifies the opacity for the text.
Defaults to 1
Defines the position for the chart title and subtitle. The available options are:
Defaults to ‘Top’
string
Specifies the font size for the chart title and subtitle.
Defaults to ‘15px’
The textAlignment
property determines how the text is aligned within the specified area.
Defaults to ‘Center’
The textOverflow
property determines how the text in the chart title and subtitle behaves when it exceeds the available space.
Defaults to ‘Wrap’
number
Defines the X coordinate for the chart title and subtitle.
Defaults to 0
number
Defines the Y coordinate for the chart title and subtitle.
Defaults to 0