igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
187 lines (184 loc) • 5.97 kB
JavaScript
import { __extends } from "tslib";
import { IgrCategorySeries } from "./igr-category-series";
/**
* Represents the base class for all IgxDataChartComponent ranged category/value series.
*
* The `RangeCategorySeries` represents the base class for all IgxDataChartComponent ranged category/value series.
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
* <IgrCategoryXAxis name="xAxis" label="Year" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrRangeColumnSeries
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* highMemberPath="High"
* lowMemberPath="Low" />
* </IgrDataChart>
* ```
*
* ```ts
* let series1 = new IgrRangeColumnSeries({ name: "series1" });
* series1.highMemberPath = "High";
* series1.lowMemberPath = "Low";
* series1.xAxisName = "xAxis";
* series1.yAxisName = "yAxis";
* this.chart.series.add(series1);
* ```
*/
var IgrRangeCategorySeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrRangeCategorySeries, _super);
function IgrRangeCategorySeries(props) {
return _super.call(this, props) || this;
}
Object.defineProperty(IgrRangeCategorySeries.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeCategorySeries.prototype, "lowMemberPath", {
/**
* Gets or sets the value mapping property for the current series object.
*
* The `LowMemberPath` is used for low mapping property of the current series object.
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
* <IgrCategoryXAxis name="xAxis" label="Year" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrRangeColumnSeries
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* highMemberPath="High"
* lowMemberPath="Low" />
* </IgrDataChart>
* ```
*
* ```ts
* const series1 = new IgrRangeColumnSeries({ name: "series1" });
* series1.highMemberPath = "High";
* series1.lowMemberPath = "Low";
* ```
*/
get: function () {
return this.i.abk;
},
set: function (v) {
this.i.abk = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeCategorySeries.prototype, "highMemberPath", {
/**
* Gets or sets the value mapping property for the current series object.
*
* Use `HighMemberPath` propert for high mapping of the current series object.
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource}
* width="700px"
* height="500px">
*
* <IgrCategoryXAxis name="xAxis" label="Year" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrRangeColumnSeries
* name="series1"
* xAxisName="xAxis"
* yAxisName="yAxis"
* highMemberPath="High"
* lowMemberPath="Low" />
* </IgrDataChart>
* ```
*
* ```ts
* series.highMemberPath = "high";
* ```
*
* ```ts
* const series1 = new IgrRangeColumnSeries({ name: "series1" });
* series1.highMemberPath = "High";
* series1.lowMemberPath = "Low";
* ```
*/
get: function () {
return this.i.abh;
},
set: function (v) {
this.i.abh = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeCategorySeries.prototype, "highlightedLowMemberPath", {
/**
* Gets or sets the highlighted low value mapping property for the current series object.
*/
get: function () {
return this.i.abf;
},
set: function (v) {
this.i.abf = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeCategorySeries.prototype, "highlightedHighMemberPath", {
/**
* Gets or sets the highlighted High value mapping property for the current series object.
*/
get: function () {
return this.i.abd;
},
set: function (v) {
this.i.abd = v;
},
enumerable: false,
configurable: true
});
IgrRangeCategorySeries.prototype.getItemValue = function (item, memberPathName) {
var iv = this.i.ku(item, memberPathName);
return (iv);
};
/**
* Gets the value of a requested member path from the series.
* @param memberPathName * The property name of a valid member path for the series
*/
IgrRangeCategorySeries.prototype.getMemberPathValue = function (memberPathName) {
var iv = this.i.mi(memberPathName);
return (iv);
};
/**
* Scrolls the series to display the item for the specified data item.
* The series is scrolled by the minimum amount required to place the specified data item within
* the central 80% of the visible axis.
* @param item * The data item (item) to scroll to.
*
* `ScrollIntoView` method Scrolls the series to display the item for the specified data item.
*/
IgrRangeCategorySeries.prototype.scrollIntoView = function (item) {
var iv = this.i.ge(item);
return (iv);
};
return IgrRangeCategorySeries;
}(IgrCategorySeries));
export { IgrRangeCategorySeries };