UNPKG

igniteui-angular-charts

Version:

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

83 lines (82 loc) 2.88 kB
import { IgxStrategyBasedIndicatorComponent } from "./igx-strategy-based-indicator-component"; import { CommodityChannelIndexIndicator } from "./CommodityChannelIndexIndicator"; import * as i0 from "@angular/core"; /** * Represents a IgxDataChartComponent Commodity Channel Index indicator series. * Default required members: High, Low, Close * * `CommodityChannelIndexIndicator` class specify the series as Commodity Channel Index Indicator series. * * ```html * <igx-data-chart [dataSource]="data"> * <igx-category-x-axis #xAxis * label="time"> * </igx-category-x-axis> * <igx-numeric-y-axis #yAxis> * </igx-numeric-y-axis> * * <igx-commodity-channel-index-indicator * [xAxis]="xAxis" * [yAxis]="yAxis" * openMemberPath="open" * highMemberPath="high" * lowMemberPath="low" * closeMemberPath="close" * volumeMemberPath="volume" * longPeriod="30" > * </igx-commodity-channel-index-indicator> * </igx-data-chart> * ``` * * ```ts * let series = new IgxCommodityChannelIndexIndicatorComponent(); * series.xAxis = this.xAxis; * series.yAxis = this.yAxis; * series.openMemberPath = "open"; * series.highMemberPath = "high"; * series.lowMemberPath = "low"; * series.closeMemberPath = "close"; * this.chart.series.add(series); * ``` */ export declare class IgxCommodityChannelIndexIndicatorComponent extends IgxStrategyBasedIndicatorComponent { protected createImplementation(): CommodityChannelIndexIndicator; /** * @hidden */ get i(): CommodityChannelIndexIndicator; constructor(); /** * Gets or sets the moving average period for the current CCISeries object. * The typical, and initial, value for CCI periods is 20. * * ```html * <igx-data-chart [dataSource]="data"> * <igx-category-x-axis #xAxis * label="time"> * </igx-category-x-axis> * <igx-numeric-y-axis #yAxis> * </igx-numeric-y-axis> * <igx-commodity-channel-index-indicator * [xAxis]="xAxis" * [yAxis]="yAxis" * openMemberPath="open" * highMemberPath="high" * lowMemberPath="low" * closeMemberPath="close" * volumeMemberPath="volume" * period="30" > * </igx-commodity-channel-index-indicator> * </igx-data-chart> * ``` * * ```ts * this.series.period = 30; * ``` */ get period(): number; set period(v: number); static ngAcceptInputType_period: number | string; static ɵfac: i0.ɵɵFactoryDeclaration<IgxCommodityChannelIndexIndicatorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<IgxCommodityChannelIndexIndicatorComponent, "igx-commodity-channel-index-indicator", never, { "period": "period"; }, {}, never, never>; }