UNPKG

@progress/kendo-react-charts

Version:

React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package

69 lines (68 loc) 2.25 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { Border, Margin, Padding } from '../common/property-types.js'; /** * @hidden */ export interface Subtitle { /** * The alignment of the subtitle. * * By default, the subtitle has the same alignment as the title. * * The available options are: * - `"center"`—The text is aligned to the middle. * - `"left"`—The text is aligned to the left. * - `"right"`—The text is aligned to the right. */ align?: 'center' | 'left' | 'right'; /** * The background color of the subtitle. Accepts a valid CSS color string, including hex and rgb. */ background?: string; /** * The border of the subtitle. */ border?: Border; /** * The text color of the subtitle. Accepts a valid CSS color string, including hex and rgb. */ color?: string; /** * The font of the subtitle. */ font?: string; /** * The margin of the subtitle. A numeric value sets all margins. */ margin?: Margin | number; /** * The padding of the subtitle. A numeric value sets all margins. */ padding?: Padding | number; /** * The position of the subtitle. * * By default, the subtitle is placed in the same position as the title. * * The available options are: * - `"bottom"`—The title is positioned on the bottom. * - `"top"`—The title is positioned on the top. */ position?: 'top' | 'bottom'; /** * 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"). */ text?: string; /** * If set to `true`, the Chart displays the subtitle. By default, the subtitle is displayed. */ visible?: boolean; }