UNPKG

igniteui-react-charts

Version:

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

64 lines (63 loc) 2.11 kB
import { __extends } from "tslib"; import { IgrStrategyBasedIndicator } from "./igr-strategy-based-indicator"; import { OnBalanceVolumeIndicator } from "./OnBalanceVolumeIndicator"; /** * Represents a IgxDataChartComponent On Balance Bolume indicator series. * Default required members: Close, Volume * * You can use the `OnBalanceVolumeIndicator` to calculate a running total of sales volume for a stock. * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} * width="700px" * height="500px"> * * <IgrCategoryXAxis name="xAxis" label="Year" /> * <IgrNumericYAxis name="yAxis" /> * * <IgrOnBalanceVolumeIndicator * name="series1" * xAxisName="xAxis" * yAxisName="yAxis" * openMemberPath="Open" * closeMemberPath="Close" * highMemberPath="High" * lowMemberPath="Low" /> * </IgrDataChart> * ``` * * ```ts * this.series = new IgrOnBalanceVolumeIndicator({ name: "series1" }); * this.series.dataSource = this.data; * this.series.xAxis = this.categoryXAxis; * this.series.yAxis = this.numericYAxis; * this.series.xAxisName = "xAxis"; * this.series.yAxisName = "yAxis"; * this.series.openMemberPath = "open"; * this.series.highMemberPath = "high"; * this.series.lowMemberPath = "low"; * this.series.closeMemberPath = "close"; * ``` */ var IgrOnBalanceVolumeIndicator = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrOnBalanceVolumeIndicator, _super); function IgrOnBalanceVolumeIndicator(props) { return _super.call(this, props) || this; } IgrOnBalanceVolumeIndicator.prototype.createImplementation = function () { return new OnBalanceVolumeIndicator(); }; Object.defineProperty(IgrOnBalanceVolumeIndicator.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); return IgrOnBalanceVolumeIndicator; }(IgrStrategyBasedIndicator)); export { IgrOnBalanceVolumeIndicator };