@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.
113 lines (112 loc) • 4.49 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { ConfigurationService } from '../../common/configuration.service';
import { SettingsComponent } from '../../common/settings.component';
import * as i0 from "@angular/core";
import * as i1 from "../../common/configuration.service";
/**
* The configuration of the Chart series label
* ([see example]({% slug labels_chart_charts %})).
*/
export class SeriesLabelsComponent extends SettingsComponent {
configurationService;
align;
background;
border;
color;
content;
ariaContent;
/**
* The distance between the labels when [`series.type`]({% slug api_charts_series %}#toc-type) is set to `"donut"` or `"pie"`.
* @default 35
*/
distance;
/**
* The font style of the labels.
* @default '12px sans-serif'
*/
font;
/**
* The format of the labels. Uses the [`format`]({% slug api_intl_intlservice %}#toc-format) method of the `IntlService`.
* @default '{0}'
*/
format;
/**
* The margin of the labels. A numeric value sets all margins.
* @default 5
*/
margin;
/**
* The padding of the labels. A numeric value sets all paddings.
* Bar and Column series always apply full padding and ignore this setting.
* @default 0
*/
padding;
/**
* The position of the labels.
*/
position;
rotation;
/**
* If set to `true`, the Chart displays the series labels.
* @default false
*/
visible;
visual;
// These options are also available as child components
from;
to;
constructor(configurationService) {
super('labels', configurationService);
this.configurationService = configurationService;
this.markAsVisible();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SeriesLabelsComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SeriesLabelsComponent, isStandalone: true, selector: "kendo-chart-series-item-labels", inputs: { align: "align", background: "background", border: "border", color: "color", content: "content", ariaContent: "ariaContent", distance: "distance", font: "font", format: "format", margin: "margin", padding: "padding", position: "position", rotation: "rotation", visible: "visible", visual: "visual", from: "from", to: "to" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SeriesLabelsComponent, decorators: [{
type: Component,
args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-chart-series-item-labels',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { align: [{
type: Input
}], background: [{
type: Input
}], border: [{
type: Input
}], color: [{
type: Input
}], content: [{
type: Input
}], ariaContent: [{
type: Input
}], distance: [{
type: Input
}], font: [{
type: Input
}], format: [{
type: Input
}], margin: [{
type: Input
}], padding: [{
type: Input
}], position: [{
type: Input
}], rotation: [{
type: Input
}], visible: [{
type: Input
}], visual: [{
type: Input
}], from: [{
type: Input
}], to: [{
type: Input
}] } });