UNPKG

@progress/kendo-angular-charts

Version:

Kendo UI Charts for Angular - A comprehensive package for creating beautiful and interactive data visualization. Every chart type, stock charts, and sparklines are included.

86 lines (85 loc) 3.6 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { ConfigurationService } from '../common/configuration.service'; import { Border, Margin, Padding } from '../common/property-types'; import { Title } from '../common/property-types'; import { SettingsComponent } from '../common/settings.component'; import * as i0 from "@angular/core"; /** * Represents the Kendo UI for Angular Chart Title configuration * ([see example]({% slug title_chart_charts %})). * * @example * ```html * <kendo-chart [categoryAxis]="{ categories: categories }"> * <kendo-chart-title text="Title Text" [padding]="{bottom: 20}"></kendo-chart-title> * ... * </kendo-chart> * ``` */ export declare class TitleComponent extends SettingsComponent implements Title { configurationService: ConfigurationService; /** * 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' */ align: 'center' | 'left' | 'right'; /** * Specifies the background color of the title. Accepts a valid CSS color string, including HEX and RGB. * * @default 'white' */ background: string; /** * Specifies the border configuration of the title. */ border: Border; /** * Specifies the text color of the title. */ color: string; /** * Specifies the font of the title. * * @default '16px sans-serif' */ font: string; /** * Specifies the margin of the title. A numeric value sets all margins. */ margin: Margin | number; /** * Specifies the padding of the title. A numeric value sets all paddings. * * @default 5 */ padding: Padding | number; /** * 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' */ position: 'top' | 'bottom'; /** * Specifies the text of the title. */ text: string; /** * Specifies the description of the title. */ description: string; /** * Determines whether the Chart displays the title. * * @default true */ visible: boolean; constructor(configurationService: ConfigurationService); static ɵfac: i0.ɵɵFactoryDeclaration<TitleComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "kendo-chart-title", never, { "align": { "alias": "align"; "required": false; }; "background": { "alias": "background"; "required": false; }; "border": { "alias": "border"; "required": false; }; "color": { "alias": "color"; "required": false; }; "font": { "alias": "font"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "position": { "alias": "position"; "required": false; }; "text": { "alias": "text"; "required": false; }; "description": { "alias": "description"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, {}, never, never, true, never>; }