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.

84 lines (83 loc) 3.43 kB
/**----------------------------------------------------------------------------------------- * 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"; /** * Represents the configuration of the Y-axis notes * ([see example]({% slug api_charts_yaxiscomponent %})). * * @example * ```html * <kendo-chart> * <kendo-chart-y-axis> * <kendo-chart-y-axis-item> * <kendo-chart-y-axis-item-notes [visible]="true" position="top"> * </kendo-chart-y-axis-item-notes> * </kendo-chart-y-axis-item> * </kendo-chart-y-axis> * </kendo-chart> * ``` * * @remarks * Supported children components are: {@link YAxisNotesIconComponent} and {@link YAxisNotesLabelComponent}. */ export class YAxisNotesComponent extends SettingsComponent { configurationService; /** * Specifies the data for the notes. */ data; /** * Specifies the line configuration of the notes. */ line; /** * Specifies the position of the notes. */ position; /** * Specifies a function that returns a custom visual for the notes. */ visual; // These options are also available as child components /** * Specifies the icon configuration of the notes. */ icon; /** * Specifies the label configuration of the notes. */ label; constructor(configurationService) { super('notes', configurationService); this.configurationService = configurationService; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: YAxisNotesComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: YAxisNotesComponent, isStandalone: true, selector: "kendo-chart-y-axis-item-notes", inputs: { data: "data", line: "line", position: "position", visual: "visual", icon: "icon", label: "label" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: YAxisNotesComponent, decorators: [{ type: Component, args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'kendo-chart-y-axis-item-notes', template: '', standalone: true }] }], ctorParameters: () => [{ type: i1.ConfigurationService }], propDecorators: { data: [{ type: Input }], line: [{ type: Input }], position: [{ type: Input }], visual: [{ type: Input }], icon: [{ type: Input }], label: [{ type: Input }] } });