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.

85 lines (84 loc) 4.8 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 { SettingsComponent } from '../common/settings.component'; import { Border, LegendLabels, Margin, Padding, LegendMarkers, LegendInactiveItems, LegendItem, Legend, LegendTitle, FocusHighlight } from '../common/property-types'; import * as i0 from "@angular/core"; /** * The configuration options of the Chart legend * ([see example]({% slug legend_chart_charts %})). */ export declare class LegendComponent extends SettingsComponent implements Legend { configurationService: ConfigurationService; /** * The legend is horizontally aligned when [`legend.position`]({% slug api_charts_legend %}#toc-position) is set to `"top"` or `"bottom"`. * The legend is vertically aligned when [`legend.position`]({% slug api_charts_legend %}#toc-position) is set to `"left"` or `"right"`. * @default 'center' */ align: 'start' | 'center' | 'end'; /** * The background color of the legend. Accepts a valid CSS color string, including hex and rgb. * @default 'white' */ background: string; border: Border; height: number; labels: LegendLabels; /** * The margin of the Chart legend. A numeric value sets all paddings. * @default 5 */ margin: Margin | number; /** * The X offset of the Chart legend. The offset is relative to the default position of the legend. * For example, a value of `20` moves the legend 20 pixels to the right of its initial position. * Negative values move the legend to the left of its current position. * @default 0 */ offsetX: number; /** * The Y offset of the chart legend. The offset is relative to the current position of the legend. * For example, a value of `20` moves the legend 20 pixels down from its initial position. * Negative values move the legend upwards from its current position. * @default 0 */ offsetY: number; /** * The orientation of the legend items. * @default 'vertical' */ orientation: 'vertical' | 'horizontal'; /** * The padding of the Chart legend. A numeric value sets all paddings. * @default 5 */ padding: Padding | number; /** * The positions of the Chart legend. * Setting the legend position to `custom` allows you to position the legend using the [`legend.offsetX`](slug:api_charts_legend#toc-offsetx) and [`legend.offsetY`](slug:api_charts_legend#toc-offsety) options. * @default 'right' */ position: 'top' | 'bottom' | 'left' | 'right' | 'custom'; /** * If set to `true`, the legend items are reversed. * @default false */ reverse: boolean; /** * If set to `true`, the Chart displays the legend. By default, the Chart legend is visible. * @default true */ visible: boolean; width: number; markers: LegendMarkers; spacing: number; inactiveItems: LegendInactiveItems; item: LegendItem; title: LegendTitle; focusHighlight?: FocusHighlight; constructor(configurationService: ConfigurationService); static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "kendo-chart-legend", never, { "align": { "alias": "align"; "required": false; }; "background": { "alias": "background"; "required": false; }; "border": { "alias": "border"; "required": false; }; "height": { "alias": "height"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "position": { "alias": "position"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "width": { "alias": "width"; "required": false; }; "markers": { "alias": "markers"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "inactiveItems": { "alias": "inactiveItems"; "required": false; }; "item": { "alias": "item"; "required": false; }; "title": { "alias": "title"; "required": false; }; "focusHighlight": { "alias": "focusHighlight"; "required": false; }; }, {}, never, never, true, never>; }