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

SubtitleComponent

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

html
<kendo-chart [categoryAxis]="{ categories: categories }">
    <kendo-chart-subtitle text="/GDP annual %/"></kendo-chart-subtitle>
</kendo-chart>

Selector

kendo-chart-subtitle

Inputs

NameTypeDefaultDescription

align

"center" | "left" | "right"

The alignment of the subtitle.

By default, the subtitle has the same alignment as the title.

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

background

string

'white'

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

border

Border

The border of the subtitle.

color

string

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

font

string

'12px sans-serif'

The font of the subtitle.

margin

number | Margin

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

padding

number | Padding

5

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

position

"top" | "bottom"

'top'

The position of the subtitle.

text

string

The text of the chart subtitle. 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 subtitle.

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.

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

changes

any

An object containing the updated input fields.

In this article
SelectorInputsMethods
Not finding the help you need?
Contact Support