@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.
61 lines (60 loc) • 2.18 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Border, Margin, Padding } from '../common/property-types';
/**
* Specifies the configuration options of the title
* ([see example]({% slug api_charts_titlecomponent %})).
*/
export interface Title {
/**
* Specifies the alignment of the title.
* Use `center` for middle alignment, `left` for left alignment, and `right` for right alignment.
*/
align?: 'center' | 'left' | 'right';
/**
* Specifies the background color of the title. Accepts a valid CSS color string, including HEX and RGB.
*/
background?: string;
/**
* Specifies the border of the title.
*/
border?: Border;
/**
* Specifies the text color of the title. Accepts a valid CSS color string, including HEX and RGB.
*/
color?: string;
/**
* Specifies the font of the title.
*/
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 margins.
*/
padding?: Padding | number;
/**
* Specifies the position of the title.
* Use `bottom` to place the title at the bottom or `top` to place it at the top.
*/
position?: 'top' | 'bottom';
/**
* Specifies the text of the chart title. You can also set the text directly for a title with default options.
* Use line feed characters ("\n") to split the text into multiple lines.
*/
text?: string;
/**
* Specifies the accessible description of the Chart.
*
* Screen readers announce the description when the Chart is focused.
*/
description?: string;
/**
* Determines whether the Chart displays the title. By default, the title is displayed.
*/
visible?: boolean;
}