igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,701 lines (1,700 loc) • 57.5 kB
JavaScript
import { __extends } from "tslib";
import { HorizontalAlignment_$type } from "igniteui-react-core";
import { VerticalAlignment_$type } from "igniteui-react-core";
import { Visibility_$type } from "igniteui-react-core";
import { YAxisLabelLocation_$type } from "./YAxisLabelLocation";
import { XAxisLabelLocation_$type } from "./XAxisLabelLocation";
import { IgrDomainChart } from "./igr-domain-chart";
import { brushToString, stringToBrush, ensureBool, ensureEnum, arrayFindByName } from "igniteui-react-core";
/**
* Represents a base class for domain charts with X/Y axes
*/
var IgrXYChart = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrXYChart, _super);
function IgrXYChart(props) {
return _super.call(this, props) || this;
}
Object.defineProperty(IgrXYChart.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisFormatLabel", {
/**
* Gets or sets function which takes an context object and returns a formatted label for the X-axis.
*
* To customize the text of the x-axis label, set `XAxisFormatLabel` to a single-parameter function. The argument passed to that function will be your data item.
*
* ```ts
* formatX(item: any): string {
* return "[ " + item.label + "! ]";
* }
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisFormatLabel="formatX"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.aas;
},
set: function (v) {
this.i.aas = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisFormatLabel", {
/**
* Gets or sets function which takes a context object and returns a formatted label for the Y-axis.
*
* To customize the text of the y-axis label, set `YAxisFormatLabel` to a single-parameter function. The argument passed to that function will be the numeric value corresponding to a position on the y-axis.
*
* ```ts
* formatY(value: any): string {
* return "[ " + value+ "! ]";
* }
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisFormatLabel="formatY"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.aat;
},
set: function (v) {
this.i.aat = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelLeftMargin", {
/**
* Gets or sets the left margin of labels on the X-axis
*
* Use the `XAxisLabelLeftMargin` property to apply a margin left of the x-axis labels.
*
* ```ts
* this.chart.xAxisLabelLeftMargin ="100";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisLabelLeftMargin={100}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ab9;
},
set: function (v) {
this.i.ab9 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelTopMargin", {
/**
* Gets or sets the top margin of labels on the X-axis
*
* Use the `XAxisLabelTopMargin` property to apply a margin above the x-axis labels.
*
* ```ts
* this.chart.xAxisTitleTopMargin="250";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleTopMargin ={250}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acb;
},
set: function (v) {
this.i.acb = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelRightMargin", {
/**
* Gets or sets the right margin of labels on the X-axis
*
* Use the `XAxisLabelRightMargin` property to apply a margin right of the x-axis labels.
*
* ```ts
* this.chart.xAxisLabelRightMargin="100";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisLabelRightMargin={250}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.aca;
},
set: function (v) {
this.i.aca = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelBottomMargin", {
/**
* Gets or sets the bottom margin of labels on the X-axis
*
* Use the `XAxisLabelBottomMargin` property to apply a margin below the x-axis labels.
*
* ```ts
* this.chart.xAxisLabelBottomMargin ="100";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisLabelBottomMargin={100}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ab8;
},
set: function (v) {
this.i.ab8 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelLeftMargin", {
/**
* Gets or sets the left margin of labels on the Y-axis
*
* Use the `YAxisLabelLeftMargin` property to apply a margin left of the y-axis labels.
*
* ```ts
* this.chart. yAxisLabelLeftMargin="250";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisLabelLeftMargin={250}
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acq;
},
set: function (v) {
this.i.acq = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelTopMargin", {
/**
* Gets or sets the top margin of labels on the Y-axis
*
* Use the `YAxisLabelTopMargin` property to apply a margin above the y-axis labels.
*
* ```ts
* this.chart.yAxisLabelTopMargin="250";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisLabelTopMargin ={250}
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acs;
},
set: function (v) {
this.i.acs = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelRightMargin", {
/**
* Gets or sets the right margin of labels on the Y-axis
*
* Use the `YAxisLabelRightMargin` property to apply a margin right of the y-axis labels.
*
* ```ts
* this.chart.yAxisLabelRightMargin="250";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisLabelRightMargin={250}
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acr;
},
set: function (v) {
this.i.acr = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelBottomMargin", {
/**
* Gets or sets the bottom margin of labels on the Y-axis
*
* Use the `YAxisLabelBottomMargin` property to apply a margin below the y-axis labels.
*
* ```ts
* this.chart.yAxisLabelBottomMargin="250";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisLabelBottomMargin={250}
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acp;
},
set: function (v) {
this.i.acp = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelTextColor", {
/**
* Gets or sets color of labels on the X-axis
*
* To change the color of x-axis labels, set the `XAxisLabelTextColor` property to a color string.
*
* ```ts
* this.chart.xAxisLabelTextColor="green";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisLabelTextColor="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.agx);
},
set: function (v) {
this.i.agx = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelTextColor", {
/**
* Gets or sets color of labels on the Y-axis
*
* To change the color of y-axis labels, set the `YAxisLabelTextColor` property to a color string.
*
* ```ts
* this.chart.yAxisLabelTextColor="green";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisLabelTextColor="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag4);
},
set: function (v) {
this.i.ag4 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "actualXAxisLabelTextColor", {
/**
* Gets the actual color of labels on the X-axis
*/
get: function () {
return brushToString(this.i.agv);
},
set: function (v) {
this.i.agv = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "actualYAxisLabelTextColor", {
/**
* Gets the actual color of labels on the Y-axis
*/
get: function () {
return brushToString(this.i.agw);
},
set: function (v) {
this.i.agw = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleMargin", {
/**
* Gets or sets the margin around a title on the X-axis
*
* Use the `XAxisTitleMargin` property to set a margin around the y-axis title.
*/
get: function () {
return this.i.ack;
},
set: function (v) {
this.i.ack = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleMargin", {
/**
* Gets or sets the margin around a title on the Y-axis
*
* Use the `YAxisTitleMargin` property to set a margin around the y-axis title.
*/
get: function () {
return this.i.ac1;
},
set: function (v) {
this.i.ac1 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleLeftMargin", {
/**
* Gets or sets the left margin of a title on the X-axis
*
* Use the `XAxisTitleLeftMargin` property to apply a margin left of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleLeftMargin="150";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleLeftMargin={150}
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acj;
},
set: function (v) {
this.i.acj = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleLeftMargin", {
/**
* Gets or sets the left margin of a title on the Y-axis
*
* Use the `YAxisTitleLeftMargin` property to apply a margin left of the y-axis title.
*
* ```ts
* this.chart.yAxisTitleLeftMargin="150";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleLeftMargin={150}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ac0;
},
set: function (v) {
this.i.ac0 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleTopMargin", {
/**
* Gets or sets the top margin of a title on the X-axis
*
* Use the `XAxisTitleTopMargin` property to apply a margin above the x-axis title.
*
* ```ts
* this.chart.xAxisTitleTopMargin="150";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleTopMargin ={150}
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acm;
},
set: function (v) {
this.i.acm = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleTopMargin", {
/**
* Gets or sets the top margin of a title on the Y-axis
*
* Use the `YAxisTitleTopMargin` property to apply a margin above the y-axis title.
*
* ```ts
* this.chart.yAxisTitleTopMargin="150";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleTopMargin ={150}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ac3;
},
set: function (v) {
this.i.ac3 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleRightMargin", {
/**
* Gets or sets the right margin of a title on the X-axis
*
* Use the `XAxisTitleRightMargin` property to apply a margin right of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleRightMargin="100";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleRightMargin="100"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acl;
},
set: function (v) {
this.i.acl = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleRightMargin", {
/**
* Gets or sets the right margin of a title on the Y-axis
*
* Use the `YAxisTitleRightMargin` property to apply a margin right of the y-axis title.
*
* ```ts
* this.chart.yAxisTitleRightMargin="150";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleRightMargin={150}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ac2;
},
set: function (v) {
this.i.ac2 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleBottomMargin", {
/**
* Gets or sets the bottom margin of a title on the X-axis
*
* Use the `XAxisTitleBottomMargin` property to apply a margin below the x-axis title.
*
* ```ts
* this.chart.xAxisTitleBottomMargin="150";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleBottomMargin={250}
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.aci;
},
set: function (v) {
this.i.aci = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleBottomMargin", {
/**
* Gets or sets the bottom margin of a title on the Y-axis
*
* Use the `YAxisTitleBottomMargin` property to apply a margin below the y-axis title.
*
* ```ts
* this.chart.yAxisTitleBottomMargin="150";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleBottomMargin ={150}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acz;
},
set: function (v) {
this.i.acz = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleTextColor", {
/**
* Gets or sets color of title on the X-axis
*
* To change the color of the x-axis title, set the `XAxisTitleTextColor` property to a color string.
*
* ```ts
* this.chart.xAxisTitleTextColor="green";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleTextColor="green"
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag3);
},
set: function (v) {
this.i.ag3 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleTextColor", {
/**
* Gets or sets color of title on the Y-axis
*
* To change the color of the y-axis title, set the `YAxisTitleTextColor` property to a color string.
*
* ```ts
* this.chart.yAxisTitleTextColor="green";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleTextColor="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.aha);
},
set: function (v) {
this.i.aha = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelTextStyle", {
/**
* Gets or sets CSS font property for labels on X-axis
*
* To change the font of x-axis labels, set the `XAxisLabelTextStyle` property.
*
* ```ts
* this.chart.xAxisLabelTextStyle="italic 15px arial, sans-serif";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisLabelTextStyle="italic 15px arial, sans-serif"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.adx;
},
set: function (v) {
this.i.adx = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelTextStyle", {
/**
* Gets or sets CSS font property for labels on Y-axis
*
* To change the font of x-axis labels, set the `YAxisLabelTextStyle` property.
*
* ```ts
* this.chart. yAxisLabelTextStyle="italic 15px arial, sans-serif";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisLabelTextStyle="italic 15px arial, sans-serif"
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ae2;
},
set: function (v) {
this.i.ae2 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleTextStyle", {
/**
* Gets or sets CSS font property for title on X-axis
*
* To change the font of the x-axis title, set the `XAxisTitleTextStyle` property.
*
* ```ts
* this.chart.xAxisTitleTextStyle="italic 15px arial, sans-serif";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleTextStyle="italic 15px arial, sans-serif"
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ael;
},
set: function (v) {
this.i.ael = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleTextStyle", {
/**
* Gets or sets CSS font property for title on Y-axis
*
* To change the font of the x-axis title, set the `YAxisTitleTextStyle` property.
*
* ```ts
* this.chart.yAxisTitleTextStyle="italic 15px arial, sans-serif";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleTextStyle="italic 15px arial, sans-serif"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.afq;
},
set: function (v) {
this.i.afq = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabel", {
/**
* Gets or sets the format for labels along the X-axis.
*/
get: function () {
return this.i.ac6;
},
set: function (v) {
this.i.ac6 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabel", {
/**
* Gets or sets the property or string from which the labels are derived.
*/
get: function () {
return this.i.ac7;
},
set: function (v) {
this.i.ac7 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisMajorStroke", {
/**
* Gets or sets the color to apply to major gridlines along the X-axis.
*
* Set `XAxisMajorStroke` to control the color of major gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisMajorStroke="green";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisMajorStroke="green"
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.agy);
},
set: function (v) {
this.i.agy = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisMajorStroke", {
/**
* Gets or sets the color to apply to major gridlines along the Y-axis.
*
* Set `YAxisMajorStroke` to control the color of major gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMajorStroke="green";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisMajorStroke="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag5);
},
set: function (v) {
this.i.ag5 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisMajorStrokeThickness", {
/**
* Gets or sets the thickness to apply to major gridlines along the X-axis.
*
* Set `XAxisMajorStrokeThickness` to control the thickness of major gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisMajorStrokeThickness="3" ;
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisMajorStrokeThickness="3"
* xAxisExtent ={250}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acc;
},
set: function (v) {
this.i.acc = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisMajorStrokeThickness", {
/**
* Gets or sets the thickness to apply to major gridlines along the Y-axis.
*
* Set `YAxisMajorStrokeThickness` to control the thickness of major gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMajorStrokeThickness="2";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisMajorStrokeThickness={2}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.act;
},
set: function (v) {
this.i.act = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisMinorStrokeThickness", {
/**
* Gets or sets the thickness to apply to minor gridlines along the X-axis.
*
* Set `XAxisMinorStrokeThickness` to control the thickness of minor gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisMinorStrokeThickness="3";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisMinorStrokeThickness="3"
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acd;
},
set: function (v) {
this.i.acd = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisMinorStrokeThickness", {
/**
* Gets or sets the thickness to apply to minor gridlines along the Y-axis.
*
* Set `YAxisMinorStrokeThickness` to control the thickness of minor gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMinorStrokeThickness="3";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisMinorStrokeThickness={3}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acu;
},
set: function (v) {
this.i.acu = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisStrip", {
/**
* Gets or sets the color to apply to stripes along the X-axis.
*
* Set `XAxisStrip` to control the alternating color of stripes extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisStrip="green";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisStrip="green"
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag0);
},
set: function (v) {
this.i.ag0 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisStrip", {
/**
* Gets or sets the color to apply to stripes along the Y-axis.
*
* Set `YAxisStrip` to control the alternating color of stripes extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisStrip="green";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisStrip="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag7);
},
set: function (v) {
this.i.ag7 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisStroke", {
/**
* Gets or sets the color to apply to the X-axis line.
*
* Set `XAxisStroke` to control the color of the x-axis line.
*
* ```ts
* this.chart.xAxisStroke="green"";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisStroke="green"
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag1);
},
set: function (v) {
this.i.ag1 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisStroke", {
/**
* Gets or sets the color to apply to the Y-axis line.
*
* Set `YAxisStroke` to control the color of the y-axis line.
*
* ```ts
* this.chart.yAxisStroke="green";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisStroke="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag8);
},
set: function (v) {
this.i.ag8 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisStrokeThickness", {
/**
* Gets or sets the thickness to apply to the X-axis line.
*
* Set `XAxisStrokeThickness` to control the thickness of the x-axis line.
*
* ```ts
* this.chart.xAxisStrokeThickness="2";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisStrokeThickness={2}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ace;
},
set: function (v) {
this.i.ace = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisStrokeThickness", {
/**
* Gets or sets the thickness to apply to the Y-axis line.
*
* Set `YAxisStrokeThickness` to control the thickness of the y-axis line.
*
* ```ts
* this.chart. yAxisStrokeThickness="2";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisStrokeThickness={2}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acv;
},
set: function (v) {
this.i.acv = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTickLength", {
/**
* Gets or sets the length of tickmarks along the X-axis.
*
* Set `XAxisTickLength` to control the length of tickmarks extending vertically from the x-axis line.
*
* ```ts
* this.chart.xAxisTickLength="25";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTickLength ={25}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acf;
},
set: function (v) {
this.i.acf = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTickLength", {
/**
* Gets or sets the length of tickmarks along the Y-axis.
*
* Set `YAxisTickLength` to control the length of tickmarks extending horizontally from the y-axis line.
*
* ```ts
* this.chart.yAxisTickLength="25";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTickLength ={25}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acw;
},
set: function (v) {
this.i.acw = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTickStroke", {
/**
* Gets or sets the color to apply to tickmarks along the X-axis.
*
* Set `XAxisTickStroke` to control the color of tickmarks extending vertically from the x-axis line.
*
* ```ts
* this.chart. xAxisTickStroke="green";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTickStroke="green"
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag2);
},
set: function (v) {
this.i.ag2 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTickStroke", {
/**
* Gets or sets the color to apply to tickmarks along the Y-axis.
*
* Set `YAxisTickStroke` to control the color of tickmarks extending horizontally from the y-axis line.
*
* ```ts
* this.chart.yAxisTickStroke="green";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTickStroke="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag9);
},
set: function (v) {
this.i.ag9 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTickStrokeThickness", {
/**
* Gets or sets the thickness to apply to tickmarks along the X-axis.
*
* Set `XAxisTickStrokeThickness` to control the thickness of tickmarks extending vertically from the x-axis line.
*
* ```ts
* this.chart.xAxisTickStrokeThickness="20";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTickStrokeThickness={20}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acg;
},
set: function (v) {
this.i.acg = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTickStrokeThickness", {
/**
* Gets or sets the thickness to apply to tickmarks along the Y-axis.
*
* Set `YAxisTickStrokeThickness` to control the thickness of tickmarks extending vertically from the y-axis line.
*
* ```ts
* this.chart.yAxisTickStrokeThickness="25";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTickStrokeThickness ={25}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acx;
},
set: function (v) {
this.i.acx = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitle", {
/**
* Gets or sets the Text to display below the X-axis.
*
* Set `XAxisTitle` to display a label adjacent to the x-axis.
*
* ```ts
* this.chart. xAxisTitle="x axis";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitle="x axis"
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.aec;
},
set: function (v) {
this.i.aec = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitle", {
/**
* Gets or sets the Text to display to the left of the Y-axis.
*
* Set `YAxisTitle` to display a label adjacent to the y-axis.
*
* ```ts
* this.chart.yAxisTitle="y axis";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitle="y axis"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.afh;
},
set: function (v) {
this.i.afh = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisMinorStroke", {
/**
* Gets or sets the color to apply to minor gridlines along the X-axis.
*
* Set `XAxisMinorStroke` to control the color of minor gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisExtent="250";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisMinorStroke="green"
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.agz);
},
set: function (v) {
this.i.agz = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisMinorStroke", {
/**
* Gets or sets the color to apply to minor gridlines along the Y-axis.
*
* Set `YAxisMinorStroke` to control the color of minor gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMinorStroke="green";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisMinorStroke="green"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return brushToString(this.i.ag6);
},
set: function (v) {
this.i.ag6 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelAngle", {
/**
* Gets or sets the angle of rotation for labels along the X-axis.
*
* To control the rotation of labels on the x-axis, set the `XAxisLabelAngle` property to a number of rotational degrees.
*
* ```ts
* this.chart.xAxisLabelAngle="45";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisLabelAngle={45}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ab7;
},
set: function (v) {
this.i.ab7 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelAngle", {
/**
* Gets or sets the angle of rotation for labels along the Y-axis.
*
* To control the rotation of labels on the y-axis, set the `YAxisLabelAngle` property to a number of rotational degrees.
*
* ```ts
* this.chart.yAxisLabelAngle="25";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisLabelAngle ={25}
* dataSource={this.state.data} >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.aco;
},
set: function (v) {
this.i.aco = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisExtent", {
/**
* Gets or sets the distance between the X-axis and the bottom of the chart.
*
* To allocate space between the x-axis and the edge of the chart, set the `XAxisExtent` property.
*
* ```ts
* this.chart.xAxisExtent="250";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisExtent ={250}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ab6;
},
set: function (v) {
this.i.ab6 = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisExtent", {
/**
* Gets or sets the distance between the Y-axis and the left edge of the chart.
*
* To allocate space between the x-axis and the edge of the chart, set the `XAxisExtent` property.
*
* ```ts
* this.chart.xAxisExtent="250";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisExtent ={250}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acn;
},
set: function (v) {
this.i.acn = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleAngle", {
/**
* Gets or sets the angle of rotation for the X-axis title.
*
* Set `XAxisTitleAngle` to control the rotation of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleAngle="50";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleAngle ={50}
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ach;
},
set: function (v) {
this.i.ach = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleAngle", {
/**
* Gets or sets the angle of rotation for the Y-axis title.
*
* Set `YAxisTitleAngle` to control the rotation of the y-axis title.
*
* ```ts
* this.chart.yAxisTitleAngle="25";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleAngle ={24}
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.acy;
},
set: function (v) {
this.i.acy = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisInverted", {
/**
* Gets or sets whether to invert the direction of the X-axis by placing the first data items on the right side of the chart.
*
* To reverse the direction of items along the x-axis, set the `XAxisInverted` property to true.
*
* ```ts
* this.chart.XAxisInverted="True";
* ```
*
* ```ts
* <IgrCategoryChart
* XAxisInverted="True"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.aa2;
},
set: function (v) {
this.i.aa2 = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisInverted", {
/**
* Gets or sets whether to invert the direction of the Y-axis by placing the minimum numeric value at the top of the chart.
*
* You can use `YAxisInverted` to invert the scale of the y axis like this:
*
* ```ts
* this.chart.yAxisInverted="true";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisInverted="true"
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*
* The default value of `YAxisInverted` is false.
*/
get: function () {
return this.i.aa3;
},
set: function (v) {
this.i.aa3 = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisTitleAlignment", {
/**
* Gets or sets Horizontal alignment of the X-axis title.
*
* Set `XAxisTitleAlignment` to control the horizontal alignment of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleAlignment="right";
* ```
*
* ```ts
* <IgrCategoryChart
* xAxisTitleAlignment="right"
* dataSource={this.state.data}>
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.agd;
},
set: function (v) {
this.i.agd = ensureEnum(HorizontalAlignment_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisTitleAlignment", {
/**
* Gets or sets Vertical alignment of the Y-axis title.
*
* Set `YAxisTitleAlignment` to control the vertical alignment of the x-axis title.
*
* ```ts
* this.chart.yAxisTitleAlignment="bottom";
* ```
*
* ```ts
* <IgrCategoryChart
* yAxisTitleAlignment="bottom"
* dataSource={this.state.data}
* chartType="stepArea" >
* </IgrCategoryChart>
* ```
*/
get: function () {
return this.i.ahg;
},
set: function (v) {
this.i.ahg = ensureEnum(VerticalAlignment_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelHorizontalAlignment", {
/**
* Gets or sets Horizontal alignment of X-axis labels.
*/
get: function () {
return this.i.agc;
},
set: function (v) {
this.i.agc = ensureEnum(HorizontalAlignment_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "yAxisLabelHorizontalAlignment", {
/**
* Gets or sets Horizontal alignment of Y-axis labels.
*
* Set the `YAxisLabelHorizontalAlignment` property to change the horizontal alignment of y-axis labels.
*/
get: function () {
return this.i.age;
},
set: function (v) {
this.i.age = ensureEnum(HorizontalAlignment_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrXYChart.prototype, "xAxisLabelVerticalAlignment", {
/**
* Gets or sets Vertical alignment of X-axis labels.
*
* Use the `XAxisLabelVerticalAlignment` property to change the vertical position of x-axis labels.
*
* ```ts
* this.chart.xAxisLabelVerticalAlignment="bottom";
* ```
*
* ```ts
* <IgrCategoryChart