UNPKG

igniteui-angular-charts

Version:

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

53 lines (52 loc) 2.2 kB
import { IgxItemwiseStrategyBasedIndicatorComponent } from "./igx-itemwise-strategy-based-indicator-component"; import { WeightedCloseIndicator } from "./WeightedCloseIndicator"; import * as i0 from "@angular/core"; /** * Represents a IgxDataChartComponent Weigted Close indicator series. * The weighted close indicator shows an average of the high low and close * for a day but with the closing price counted twice in the average. * Default required members: High, Low, Close * * The `WeightedCloseIndicator` is similar to the `TypicalPriceIndicator` in that it represents an average of the high price, low price, and closing price for a day. * However, with the `WeightedCloseIndicator`, more emphasis is placed on the closing price and it is included twice when calculating the arithmetic average. * * ```html * <igx-data-chart * [dataSource]="data"> * <igx-category-x-axis #xAxis * label="label"> * </igx-category-x-axis> * <igx-numeric-y-axis #yAxis> * </igx-numeric-y-axis> * <igx-weighted-close-indicator * [xAxis]="xAxis" * [yAxis]="yAxis" * openMemberPath="open" * highMemberPath="high" * lowMemberPath="low" * closeMemberPath="close"> * </igx-weighted-close-indicator> * </igx-data-chart> * ``` * * ```ts * let series = new IgxWeightedCloseIndicatorComponent(); * 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 IgxWeightedCloseIndicatorComponent extends IgxItemwiseStrategyBasedIndicatorComponent { protected createImplementation(): WeightedCloseIndicator; /** * @hidden */ get i(): WeightedCloseIndicator; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration<IgxWeightedCloseIndicatorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<IgxWeightedCloseIndicatorComponent, "igx-weighted-close-indicator", never, {}, {}, never, never>; }