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.

108 lines (107 loc) 5.01 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { ConfigurationService } from '../common/configuration.service'; import { AxisLine, AxisTicks, GridLines, PlotBand } from '../common/property-types'; import { AxisDefaults, AxisDefaultsCrosshair, AxisDefaultsLabels, AxisDefaultsTitle } from '../common/property-types'; import { SettingsComponent } from '../common/settings.component'; import * as i0 from "@angular/core"; /** * Represents 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). * * @example * ```html * <kendo-chart> * <kendo-chart-axis-defaults> * <kendo-chart-axis-defaults-crosshair [color]="'red'"></kendo-chart-axis-defaults-crosshair> * <kendo-chart-axis-defaults-labels [color]="'blue'"></kendo-chart-axis-defaults-labels> * <kendo-chart-axis-defaults-title text="My Axis Title"></kendo-chart-axis-defaults-title> * </kendo-chart-axis-defaults> * </kendo-chart> * ``` * * @remarks * Supported children components are: {@link AxisDefaultsCrosshairComponent}, {@link AxisDefaultsLabelsComponent}, and {@link AxisDefaultsTitleComponent}. */ export declare class AxisDefaultsComponent extends SettingsComponent implements AxisDefaults { configurationService: ConfigurationService; /** * Specifies the background color of the axis. */ background: string; /** * Specifies the color of the axis. */ color: string; /** * Specifies the line configuration of the axis. */ line: AxisLine; /** * Specifies the major grid lines configuration of the axis. */ majorGridLines: GridLines; /** * Specifies the major ticks configuration of the axis. */ majorTicks: AxisTicks; /** * Specifies the minor grid lines configuration of the axis. */ minorGridLines: GridLines; /** * Specifies the minor ticks configuration of the axis. */ minorTicks: AxisTicks; /** * Determines whether the Chart prevents the axis range from snapping to zero. * Set it to `false` to force the axis range to snap to zero. * @default false */ narrowRange: boolean; /** * Specifies the pane of the axis. */ pane: string; /** * Specifies the plot bands configuration of the axis. */ plotBands: PlotBand[]; /** * Determines whether the axis direction is reversed. Categories are listed from left to * right and from bottom to top by default. * @default false */ reverse: boolean; /** * Specifies the angle (degrees) of the first category on the axis. * Use positive values to increase the angle clockwise with zero to the left. Negative values are acceptable. * @default 90 */ startAngle: number; /** * Determines whether the Chart displays the axis. * @default true */ visible: boolean; /** * Specifies the crosshair configuration of the axis. */ crosshair: AxisDefaultsCrosshair; /** * Specifies the labels configuration of the axis. */ labels: AxisDefaultsLabels; /** * Specifies the title configuration of the axis. */ title: AxisDefaultsTitle; constructor(configurationService: ConfigurationService); static ɵfac: i0.ɵɵFactoryDeclaration<AxisDefaultsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AxisDefaultsComponent, "kendo-chart-axis-defaults", never, { "background": { "alias": "background"; "required": false; }; "color": { "alias": "color"; "required": false; }; "line": { "alias": "line"; "required": false; }; "majorGridLines": { "alias": "majorGridLines"; "required": false; }; "majorTicks": { "alias": "majorTicks"; "required": false; }; "minorGridLines": { "alias": "minorGridLines"; "required": false; }; "minorTicks": { "alias": "minorTicks"; "required": false; }; "narrowRange": { "alias": "narrowRange"; "required": false; }; "pane": { "alias": "pane"; "required": false; }; "plotBands": { "alias": "plotBands"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "startAngle": { "alias": "startAngle"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "crosshair": { "alias": "crosshair"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>; }