UNPKG

igniteui-react-charts

Version:

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

91 lines (90 loc) 3.05 kB
import { __extends } from "tslib"; import { IgrStrategyBasedIndicator } from "./igr-strategy-based-indicator"; import { DetrendedPriceOscillatorIndicator } from "./DetrendedPriceOscillatorIndicator"; /** * Represents a IgxDataChartComponent Detrended Price Oscillator indicator series. * Default required members: Close * * The `DetrendedPriceOscillatorIndicator` class represents a IgxDataChartComponent Detrended Price Oscillator indicator series. * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} * width="700px" * height="500px"> * * <IgrCategoryXAxis name="xAxis" label="Year" /> * <IgrNumericYAxis name="yAxis" /> * * <IgrDetrendedPriceOscillatorIndicator * name="series1" * xAxisName="xAxis" * yAxisName="yAxis" * openMemberPath="Open" * highMemberPath="High" * lowMemberPath="Low" * period= {30} /> * </IgrDataChart> * ``` */ var IgrDetrendedPriceOscillatorIndicator = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrDetrendedPriceOscillatorIndicator, _super); function IgrDetrendedPriceOscillatorIndicator(props) { return _super.call(this, props) || this; } IgrDetrendedPriceOscillatorIndicator.prototype.createImplementation = function () { return new DetrendedPriceOscillatorIndicator(); }; Object.defineProperty(IgrDetrendedPriceOscillatorIndicator.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDetrendedPriceOscillatorIndicator.prototype, "period", { /** * Gets or sets the moving average period for the current DetrendedPriceOscillatorIndicator object. * The typical, and initial, value for DPO periods is 20. * * You can use the `period` to set the current moving average period. * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} * width="700px" * height="500px"> * * <IgrCategoryXAxis name="xAxis" label="Year" /> * <IgrNumericYAxis name="yAxis" /> * * <IgrDetrendedPriceOscillatorIndicator * name="series1" * xAxisName="xAxis" * yAxisName="yAxis" * openMemberPath="Open" * highMemberPath="High" * lowMemberPath="Low" * period=30 /> * </IgrDataChart> * ``` * * ```ts * this.series.period = 30; * ``` */ get: function () { return this.i.acl; }, set: function (v) { this.i.acl = +v; }, enumerable: false, configurable: true }); return IgrDetrendedPriceOscillatorIndicator; }(IgrStrategyBasedIndicator)); export { IgrDetrendedPriceOscillatorIndicator };