UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

120 lines (119 loc) 3.84 kB
import { IgPoint } from "igniteui-react-core"; import { IgrFinancialOverlay, IIgrFinancialOverlayProps } from "./igr-financial-overlay"; import { PriceChannelOverlay } from "./PriceChannelOverlay"; /** * Represents a IgxDataChartComponent Financial Price Channel Overlay series. * Default required members: High, Low * * You can use the `PriceChannelOverlay` to display price volatility. * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} * width="700px" * height="500px"> * * <IgrCategoryXAxis name="xAxis" label="Date" /> * <IgrNumericYAxis name="yAxis" /> * <IgrPriceChannelOverlay * name="series1" * xAxisName="xAxis" * yAxisName="yAxis" * lowMemberPath="Low" * highMemberPath="High" * openMemberPath="Open" * closeMemberPath="Close" * volumeMemberPath="Volume" /> * </IgrDataChart> * ``` * * ```ts * let series = new IgrPriceChannelOverlay({name:"series1"}); * series.xAxisName = this.xAxis; * series.yAxisName = this.yAxis; * series.xAxis = this.categoryXAxis; * series.yAxis = this.numericYAxis; * series.openMemberPath = "open"; * series.highMemberPath = "high"; * series.lowMemberPath = "low"; * series.closeMemberPath = "close"; * ``` */ export declare class IgrPriceChannelOverlay extends IgrFinancialOverlay<IIgrPriceChannelOverlayProps> { protected createImplementation(): PriceChannelOverlay; /** * @hidden */ get i(): PriceChannelOverlay; constructor(props: IIgrPriceChannelOverlayProps); /** * Gets or sets the moving average period for the current PriceChannelOverlay object. * The typical, and initial, value for Bollinger band periods is 14. * * You can use the `Period` to set the moving average. * * ```ts * this.series.period = 14; * ``` * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} * width="700px" * height="500px"> * * <IgrCategoryXAxis name="xAxis" label="Date" /> * <IgrNumericYAxis name="yAxis" /> * <IgrPriceChannelOverlay * name="series1" * xAxisName="xAxis" * yAxisName="yAxis" * lowMemberPath="Low" * highMemberPath="High" * openMemberPath="Open" * closeMemberPath="Close" * volumeMemberPath="Volume" * period = {14} /> * </IgrDataChart> * ``` */ get period(): number; set period(v: number); getSeriesValue(world: IgPoint, useInterpolation: boolean, skipUnknowns: boolean): number; getNextOrExactIndex(world: IgPoint, skipUnknowns: boolean): number; getPreviousOrExactIndex(world: IgPoint, skipUnknowns: boolean): number; } export interface IIgrPriceChannelOverlayProps extends IIgrFinancialOverlayProps { /** * Gets or sets the moving average period for the current PriceChannelOverlay object. * The typical, and initial, value for Bollinger band periods is 14. * * You can use the `Period` to set the moving average. * * ```ts * this.series.period = 14; * ``` * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} * width="700px" * height="500px"> * * <IgrCategoryXAxis name="xAxis" label="Date" /> * <IgrNumericYAxis name="yAxis" /> * <IgrPriceChannelOverlay * name="series1" * xAxisName="xAxis" * yAxisName="yAxis" * lowMemberPath="Low" * highMemberPath="High" * openMemberPath="Open" * closeMemberPath="Close" * volumeMemberPath="Volume" * period = {14} /> * </IgrDataChart> * ``` */ period?: number | string; }