New to Kendo UI for Angular? Start a free 30-day trial

TitleComponent

The configuration options of the Chart title or text (see example).

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

Selector

kendo-chart-title

Inputs

NameTypeDefaultDescription

align

"left" | "right" | "center"

'center'

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.

background

string

'white'

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

border

Border

The border of the title.

color

string

The text color of the title. Accepts a valid CSS color string, including HEX and RGB.

description

string

The accessible description of the Chart.

The description is announced by screen readers when the Chart is focused.

font

string

'16px sans-serif'

The font of the title.

margin

number | Margin

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

padding

number | Padding

5

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

position

"top" | "bottom"

'top'

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.

text

string

The text of the chart title. You can also set the text directly for a title with default options. You can split the text into multiple lines by using the line feed characters ("\n").

visible

boolean

true

If set to true, the Chart displays the title.

Methods

notifyChanges

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.

item.notifyChanges({ visible: true });
Parameters

changes

any

An object containing the updated input fields.

In this article

Not finding the help you need?