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.

104 lines (103 loc) 4.56 kB
/**----------------------------------------------------------------------------------------- * 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 default options for all Chart axes ([see example](slug:axes_chart_charts#toc-default-axis-configuration)). * Accepts the options which are supported by [`categoryAxis`](slug:api_charts_categoryaxisitemcomponent), * [`valueAxis`](slug:api_charts_valueaxisitemcomponent), * [`xAxis`](slug:api_charts_xaxisitemcomponent), * and [`yAxis`](slug:api_charts_yaxisitemcomponent). * */ export class AxisDefaultsComponent extends SettingsComponent { configurationService; background; color; line; majorGridLines; majorTicks; minorGridLines; minorTicks; /** * If set to `true`, the Chart prevents the axis range from snapping to zero. * Setting it to `false`, forces the axis range to snap to zero. * @default false */ narrowRange; pane; plotBands; /** * If set to `true`, the axis direction is reversed. By default, categories are listed from left to * right and from bottom to top. * @default false */ reverse; /** * The angle (degrees) of the first category on the axis. * Angles increase clockwise with zero to the left. Negative values are acceptable. * @default 90 */ startAngle; /** * If set to `true`, the Chart displays the axis. * @default true */ visible; // These options are also available as child components crosshair; labels; title; constructor(configurationService) { super('axisDefaults', configurationService); this.configurationService = configurationService; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AxisDefaultsComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AxisDefaultsComponent, isStandalone: true, selector: "kendo-chart-axis-defaults", inputs: { background: "background", color: "color", line: "line", majorGridLines: "majorGridLines", majorTicks: "majorTicks", minorGridLines: "minorGridLines", minorTicks: "minorTicks", narrowRange: "narrowRange", pane: "pane", plotBands: "plotBands", reverse: "reverse", startAngle: "startAngle", visible: "visible", crosshair: "crosshair", labels: "labels", title: "title" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AxisDefaultsComponent, decorators: [{ type: Component, args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'kendo-chart-axis-defaults', template: '', standalone: true }] }], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { background: [{ type: Input }], color: [{ type: Input }], line: [{ type: Input }], majorGridLines: [{ type: Input }], majorTicks: [{ type: Input }], minorGridLines: [{ type: Input }], minorTicks: [{ type: Input }], narrowRange: [{ type: Input }], pane: [{ type: Input }], plotBands: [{ type: Input }], reverse: [{ type: Input }], startAngle: [{ type: Input }], visible: [{ type: Input }], crosshair: [{ type: Input }], labels: [{ type: Input }], title: [{ type: Input }] } });