@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.
89 lines (88 loc) • 3.64 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 title configuration of the Scatter Chart X axis.
*/
export class XAxisTitleComponent extends SettingsComponent {
configurationService;
background;
border;
color;
/**
* The font style of the title.
* @default 'bold 16px sans-serif'
*/
font;
/**
* The margin of the title. A numeric value sets all margins.
* @default 5
*/
margin;
/**
* The padding of the title. A numeric value sets all paddings.
* @default 5
*/
padding;
/**
* The position of the title.
* @default 'center'
*/
position;
/**
* The rotation angle of the title. By default, the title is not rotated.
* @default 0
*/
rotation;
text;
/**
* If set to `true`, the Chart displays the X axis title of the Scatter Chart.
* By default, the X-axis title of the Scatter Chart is visible.
* @default true
*/
visible;
visual;
constructor(configurationService) {
super('title', configurationService);
this.configurationService = configurationService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: XAxisTitleComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: XAxisTitleComponent, isStandalone: true, selector: "kendo-chart-x-axis-item-title", inputs: { background: "background", border: "border", color: "color", font: "font", margin: "margin", padding: "padding", position: "position", rotation: "rotation", text: "text", 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: XAxisTitleComponent, decorators: [{
type: Component,
args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-chart-x-axis-item-title',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { background: [{
type: Input
}], border: [{
type: Input
}], color: [{
type: Input
}], font: [{
type: Input
}], margin: [{
type: Input
}], padding: [{
type: Input
}], position: [{
type: Input
}], rotation: [{
type: Input
}], text: [{
type: Input
}], visible: [{
type: Input
}], visual: [{
type: Input
}] } });