igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
64 lines (63 loc) • 2.49 kB
JavaScript
import { Component, Input } from '@angular/core';
import { NumericScaleMode, NumericScaleMode_$type } from "./NumericScaleMode";
import { IgxNumericAxisBaseComponent } from "./igx-numeric-axis-base-component";
import { ensureEnum } from "igniteui-angular-core";
import * as i0 from "@angular/core";
/**
* Defines a set of basic methods and properties used to create a StraightNumeric axis.
*/
export class IgxStraightNumericAxisBaseComponent extends IgxNumericAxisBaseComponent {
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
/**
* Gets or sets the axis scale mode.
*
* `ScaleMode` can be used on numeric axes to allow scaling data values using built-in scalers. The available scalers are linear or logarithmic.
*
* ```html
* <igx-data-chart
* [dataSource]="data">
* <igx-category-x-axis
* label="label"
* #xAxis>
* </igx-category-x-axis>
* <igx-numeric-y-axis
* #yAxis
* scaleMode="logarithmic">
* </igx-numeric-y-axis>
* <igx-line-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* valueMemberPath="value">
* </igx-line-series>
* </igx-data-chart>
* ```
*
* ```ts
* this.yAxis.scaleMode = NumericScaleMode.Logarithmic;
* ```
*/
get scaleMode() {
return this.i.tn;
}
set scaleMode(v) {
this.i.tn = ensureEnum(NumericScaleMode_$type, v);
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0-rc.1", ngImport: i0, type: IgxStraightNumericAxisBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0-rc.1", type: IgxStraightNumericAxisBaseComponent, isStandalone: true, selector: "ng-component", inputs: { scaleMode: "scaleMode" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0-rc.1", ngImport: i0, type: IgxStraightNumericAxisBaseComponent, decorators: [{
type: Component,
args: [{
template: ``,
}]
}], ctorParameters: () => [], propDecorators: { scaleMode: [{
type: Input
}] } });