@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.
141 lines (140 loc) • 5.69 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 { CollectionItemComponent } from '../common/collection-item.component';
import { CollectionService } from '../common/collection.service';
import { ConfigurationService } from '../common/configuration.service';
import * as i0 from "@angular/core";
import * as i1 from "../common/configuration.service";
import * as i2 from "../common/collection.service";
/**
* The configuration component for a value axis.
*/
export class ValueAxisItemComponent extends CollectionItemComponent {
configurationService;
collectionService;
axisCrossingValue;
background;
color;
line;
majorGridLines;
majorTicks;
majorUnit;
/**
* The maximum value of the axis.
* @default 1
*/
max;
/**
* The minimum value of the axis.
* @default 0
*/
min;
minorGridLines;
minorTicks;
minorUnit;
/**
* The unique axis name. Used to associate a series with a value axis by using the [`series.axis`]({% slug api_charts_series %}#toc-axis) option.
* @default 'primary'
*/
name;
/**
* If set to `true`, the Chart prevents the automatic axis range from snapping to zero.
* Setting it to `false` forces the automatic axis range to snap to zero.
* @default true
*/
narrowRange;
pane;
plotBands;
/**
* If set to `true`, the value axis direction is reversed.
* By default, the categories are listed from left to right and from bottom to top.
*
* Radar and Polar Charts do not support reverse value axes.
* @default false
*/
reverse;
/**
* The axis type.
*
* The "numeric" value refers to a numeric axis, while "log" represents a logarithmic axis.
* @default 'numeric'
*
*/
type;
/**
* If set to `true`, the Chart displays the value axis. By default, the value axis is visible.
* @default true
*/
visible;
// These options are also available as child components
crosshair;
labels;
notes;
title;
constructor(configurationService, collectionService) {
super(configurationService, collectionService);
this.configurationService = configurationService;
this.collectionService = collectionService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueAxisItemComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ValueAxisItemComponent, isStandalone: true, selector: "kendo-chart-value-axis-item", inputs: { axisCrossingValue: "axisCrossingValue", background: "background", color: "color", line: "line", majorGridLines: "majorGridLines", majorTicks: "majorTicks", majorUnit: "majorUnit", max: "max", min: "min", minorGridLines: "minorGridLines", minorTicks: "minorTicks", minorUnit: "minorUnit", name: "name", narrowRange: "narrowRange", pane: "pane", plotBands: "plotBands", reverse: "reverse", type: "type", visible: "visible", crosshair: "crosshair", labels: "labels", notes: "notes", title: "title" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueAxisItemComponent, decorators: [{
type: Component,
args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [ConfigurationService],
selector: 'kendo-chart-value-axis-item',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; }, propDecorators: { axisCrossingValue: [{
type: Input
}], background: [{
type: Input
}], color: [{
type: Input
}], line: [{
type: Input
}], majorGridLines: [{
type: Input
}], majorTicks: [{
type: Input
}], majorUnit: [{
type: Input
}], max: [{
type: Input
}], min: [{
type: Input
}], minorGridLines: [{
type: Input
}], minorTicks: [{
type: Input
}], minorUnit: [{
type: Input
}], name: [{
type: Input
}], narrowRange: [{
type: Input
}], pane: [{
type: Input
}], plotBands: [{
type: Input
}], reverse: [{
type: Input
}], type: [{
type: Input
}], visible: [{
type: Input
}], crosshair: [{
type: Input
}], labels: [{
type: Input
}], notes: [{
type: Input
}], title: [{
type: Input
}] } });