New to Kendo UI for AngularStart a free 30-day trial

Represents the Kendo UI for Angular Chart Title configuration (see example).

Definition

Package:@progress/kendo-angular-charts

Selector:kendo-chart-title

Syntax:

html
<kendo-chart [categoryAxis]="{ categories: categories }">
    <kendo-chart-title text="Title Text" [padding]="{bottom: 20}"></kendo-chart-title>
    ...
</kendo-chart>

Inputs

align

"left" | "right" | "center"

Specifies the alignment of the title. The alignment options for text include center for middle alignment, left for left alignment, and right for right alignment, allowing for flexible positioning of the title.

Default:

'center'

Specifies the background color of the title. Accepts a valid CSS color string, including HEX and RGB.

Default:

'white'

Specifies the border configuration of the title.

color

string

Specifies the text color of the title.

Specifies the description of the title.

font

string

Specifies the font of the title.

Default:

'16px sans-serif'

margin

number | Margin

Specifies the margin of the title. A numeric value sets all margins.

Specifies the padding of the title. A numeric value sets all paddings.

Default:

5

position

"top" | "bottom"

Specifies the position of the title. The positioning options for titles include bottom for positioning at the bottom and top for positioning at the top, providing flexibility in title placement.

Default:

'top'

text

string

Specifies the text of the title.

visible

boolean

Determines whether the Chart displays the title.

Default:

true

Methods

Updates the component fields with the specified values and refreshes the Chart.

Use this method when the configuration values cannot be set through the template.

Parameters:changesany

An object containing the updated input fields.