UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

129 lines (128 loc) 5.59 kB
import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core'; import { IgxStrategyBasedIndicatorComponent } from "./igx-strategy-based-indicator-component"; import { IgxFinancialIndicatorComponent } from "./igx-financial-indicator-component"; import { IgxFinancialSeriesComponent } from "./igx-financial-series-component"; import { IgxSeriesComponent } from "./igx-series-component"; import { MoneyFlowIndexIndicator } from "./MoneyFlowIndexIndicator"; import * as i0 from "@angular/core"; /** * Represents a IgxDataChartComponent Money Flow Index indicator series. * Default required members: Close, Low, High, Volume * * Represents a Ignite UIDataChart Money Flow Index indicator series. * * Example: * * ```html * <igx-data-chart * [dataSource]="data"> * <igx-category-x-axis * label="label" * #xAxis> * </igx-category-x-axis> * <igx-numeric-y-axis * #yAxis> * </igx-numeric-y-axis> * <igx-money-flow-index-indicator * #series * [xAxis]="xAxis" * [yAxis]="yAxis" * openMemberPath="open" * highMemberPath="high" * lowMemberPath="low" * closeMemberPath="close" * volumeMemberPath="volume"> * </igx-money-flow-index-indicator> * </igx-data-chart> * ``` * * ```ts * let series = new IgxMoneyFlowIndexIndicatorComponent(); * series.xAxis = this.xAxis; * series.yAxis = this.yAxis; * series.openMemberPath="open" * series.highMemberPath = "high"; * series.lowMemberPath = "low"; * series.closeMemberPath="close" * series.volumeMemberPath= "volume"; * this.chart.series.add(series); * ``` */ export let IgxMoneyFlowIndexIndicatorComponent = /*@__PURE__*/ (() => { class IgxMoneyFlowIndexIndicatorComponent extends IgxStrategyBasedIndicatorComponent { constructor() { super(); } createImplementation() { return new MoneyFlowIndexIndicator(); } /** * @hidden */ get i() { return this._implementation; } /** * Gets default display type for the current Financial Indicator */ get defaultDisplayType() { return this.i.abm; } /** * Gets or sets the moving average period for the current MoneyFlowIndexIndicator object. * The typical, and initial, value for MoneyFlowIndexIndicator periods is 14. * * Gets or sets the moving average period for the current MoneyFlowIndexIndicator object. * * Example: * * ```html * <igx-data-chart * [dataSource]="data"> * <igx-category-x-axis * label="label" * #xAxis> * </igx-category-x-axis> * <igx-numeric-y-axis * #yAxis> * </igx-numeric-y-axis> * <igx-money-flow-index-indicator * #series * [xAxis]="xAxis" * [yAxis]="yAxis" * openMemberPath="open" * highMemberPath="high" * lowMemberPath="low" * closeMemberPath="close" * volumeMemberPath="volume" * period="14"> * </igx-money-flow-index-indicator> * </igx-data-chart> * ``` * * ```ts * this.series.period = 14; * ``` */ get period() { return this.i.ac0; } set period(v) { this.i.ac0 = +v; } } IgxMoneyFlowIndexIndicatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxMoneyFlowIndexIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); IgxMoneyFlowIndexIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxMoneyFlowIndexIndicatorComponent, selector: "igx-money-flow-index-indicator", inputs: { period: "period" }, providers: [{ provide: IgxStrategyBasedIndicatorComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }, { provide: IgxFinancialIndicatorComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }, { provide: IgxFinancialSeriesComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); return IgxMoneyFlowIndexIndicatorComponent; })(); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxMoneyFlowIndexIndicatorComponent, decorators: [{ type: Component, args: [{ selector: 'igx-money-flow-index-indicator', template: ``, providers: [{ provide: IgxStrategyBasedIndicatorComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }, { provide: IgxFinancialIndicatorComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }, { provide: IgxFinancialSeriesComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxMoneyFlowIndexIndicatorComponent) }], changeDetection: ChangeDetectionStrategy.OnPush }] }], ctorParameters: function () { return []; }, propDecorators: { period: [{ type: Input }] } });