UNPKG

igniteui-react-charts

Version:

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

83 lines (82 loc) 2.48 kB
import { __extends } from "tslib"; import { IgrHorizontalRangeCategorySeries } from "./igr-horizontal-range-category-series"; import { RangeAreaSeries } from "./RangeAreaSeries"; /** * Represents a IgxDataChartComponent range area series. * * The `RangeAreaSeries` class represents the range area series of the IgxDataChartComponent. * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} * width="700px" * height="500px"> * * <IgrCategoryXAxis name="xAxis" label="Year" /> * <IgrNumericYAxis name="yAxis" /> * * <IgrRangeAreaSeries * name="series1" * xAxisName="xAxis" * yAxisName="yAxis" * highMemberPath="High" * lowMemberPath="Low" /> * </IgrDataChart> * ``` * * ```ts * let series = new IgrRangeAreaSeries({name:"series1"}); * series.xAxisName = this.xAxis; * series.yAxisName = this.yAxis; * series.openMemberPath = "open"; * series.highMemberPath = "high"; * series.lowMemberPath = "low"; * ``` */ var IgrRangeAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrRangeAreaSeries, _super); function IgrRangeAreaSeries(props) { return _super.call(this, props) || this; } IgrRangeAreaSeries.prototype.createImplementation = function () { return new RangeAreaSeries(); }; Object.defineProperty(IgrRangeAreaSeries.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRangeAreaSeries.prototype, "isAreaOrLine", { /** * Gets whether the current series shows an area or line shape. * * Use the `IsAreaOrLine` property to check if the current series shows an area or line shape. * * ```ts * var x= series.isAreaOrLine; * ``` */ get: function () { return this.i.ex; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRangeAreaSeries.prototype, "isArea", { /** * Gets whether the current series shows an area shape. */ get: function () { return this.i.ew; }, enumerable: false, configurable: true }); return IgrRangeAreaSeries; }(IgrHorizontalRangeCategorySeries)); export { IgrRangeAreaSeries };