@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.
111 lines (110 loc) • 4.41 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2024 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 axis labels configuration.
*/
export class XAxisLabelsComponent extends SettingsComponent {
configurationService;
background;
border;
color;
content;
culture;
dateFormats;
/**
* The font style of the labels.
* @default '12px sans-serif'
*/
font;
format;
margin;
mirror;
/**
* The padding of the labels. A numeric value sets all paddings.
* @default 0
*/
padding;
/**
* The position of the axis labels. By default, labels are positioned next to the axis.
* @default 'onAxis'
*/
position;
/**
* The rotation angle of the labels. By default, the labels are not rotated. Can be set to `"auto"`.
* In this case, the labels are rotated only if the slot size is not sufficient for the entire labels.
* @default 0
*/
rotation;
/**
* The number of labels to skip.
* @default 1
*/
skip;
/**
* The label rendering step—renders every n<sup>th</sup> label. By default, every label is rendered.
* @default 1
*/
step;
/**
* If set to `true`, the Chart displays the X-axis labels. By default, the X-axis labels are visible.
* @default true
*/
visible;
visual;
constructor(configurationService) {
super('labels', configurationService);
this.configurationService = configurationService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XAxisLabelsComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: XAxisLabelsComponent, isStandalone: true, selector: "kendo-chart-x-axis-item-labels", inputs: { background: "background", border: "border", color: "color", content: "content", culture: "culture", dateFormats: "dateFormats", font: "font", format: "format", margin: "margin", mirror: "mirror", padding: "padding", position: "position", rotation: "rotation", skip: "skip", step: "step", visible: "visible", visual: "visual" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XAxisLabelsComponent, decorators: [{
type: Component,
args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-chart-x-axis-item-labels',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { background: [{
type: Input
}], border: [{
type: Input
}], color: [{
type: Input
}], content: [{
type: Input
}], culture: [{
type: Input
}], dateFormats: [{
type: Input
}], font: [{
type: Input
}], format: [{
type: Input
}], margin: [{
type: Input
}], mirror: [{
type: Input
}], padding: [{
type: Input
}], position: [{
type: Input
}], rotation: [{
type: Input
}], skip: [{
type: Input
}], step: [{
type: Input
}], visible: [{
type: Input
}], visual: [{
type: Input
}] } });