UNPKG

igniteui-react-charts

Version:

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

58 lines (57 loc) 1.78 kB
import { __extends } from "tslib"; import { IgrItemwiseStrategyBasedIndicator } from "./igr-itemwise-strategy-based-indicator"; import { MedianPriceIndicator } from "./MedianPriceIndicator"; /** * Represents a IgxDataChartComponent Median Price indicator series. * Default required members: High, Low * * Represents a Ignite UIDataChart Median Price indicator series. * * Example: * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} > * * <IgrCategoryXAxis name="xAxis" /> * <IgrNumericYAxis name="yAxis" /> * * <IgrMedianPriceIndicator * name="series1" * volumeMemberPath="Volume" * highMemberPath="High" * lowMemberPath="Low"/> * </IgrDataChart> * ``` * * ```ts * this.series = new IgrMedianPriceIndicator({ name: "Series1" }); * this.series.dataSource = this.data; * this.series.xAxis = this.categoryXAxis; * this.series.yAxis = this.numericYAxis; * this.series.volumeMemberPath="Volume" ; * this.series.highMemberPath="High"; * this.series.lowMemberPath="Low"; * ``` */ var IgrMedianPriceIndicator = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrMedianPriceIndicator, _super); function IgrMedianPriceIndicator(props) { return _super.call(this, props) || this; } IgrMedianPriceIndicator.prototype.createImplementation = function () { return new MedianPriceIndicator(); }; Object.defineProperty(IgrMedianPriceIndicator.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); return IgrMedianPriceIndicator; }(IgrItemwiseStrategyBasedIndicator)); export { IgrMedianPriceIndicator };