TitleStyleSettings
23 Sep 20251 minute to read
The TitleStyleSettings class provides options to customize the title and subtitle displayed in the accumulation chart.
Properties
color string
Specifies the color of the text.
Defaults to ’’
fontFamily string
Specifies the font family for the text.
fontStyle string
Specifies the style of the text.
Defaults to ‘Normal’
fontWeight string
Specifies the font weight of the text.
Defaults to ‘Normal’
opacity number
Specifies the opacity level for the text.
Defaults to 1
position TitlePosition
Defines the position for the chart title and subtitle.
The available options are:
- Top: Displays the title and subtitle at the top of the accumulation chart.
- Left: Displays the title and subtitle at the left of the accumulation chart.
- Bottom: Displays the title and subtitle at the bottom of the accumulation chart.
- Right: Displays the title and subtitle at the right of the accumulation chart.
- Custom: Displays the title and subtitle based on the specified x and y values.
Defaults to ‘Top’
size string
Specifies the size of the text.
Defaults to ‘16px’
textAlignment Alignment
Specifies the alignment of the text.
Defaults to ‘Center’
textOverflow TextOverflow
Specifies how the chart title text should handle overflow.
Defaults to ‘Wrap’
x number
Defines the X coordinate for the accumulation chart title and subtitle.
Defaults to 0
y number
Defines the Y coordinate for the accumulation chart title and subtitle.
Defaults to 0