igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
1,249 lines (1,248 loc) • 40.1 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { XYChart } from "./XYChart";
import { typeCast, runOn, delegateCombine, enumGetBox, markType, TypeRegistrar, getInstanceType } from "igniteui-webcomponents-core";
import { CategoryChartType_$type } from "./CategoryChartType";
import { CategorySeriesMarkerCollisionAvoidance_$type } from "./CategorySeriesMarkerCollisionAvoidance";
import { CategoryTransitionInMode_$type } from "./CategoryTransitionInMode";
import { TransitionInSpeedType_$type } from "./TransitionInSpeedType";
import { AutoMarginsAndAngleUpdateMode_$type } from "./AutoMarginsAndAngleUpdateMode";
import { AxisRangeBufferMode_$type } from "./AxisRangeBufferMode";
import { CategoryXAxis } from "./CategoryXAxis";
import { List$1 } from "igniteui-webcomponents-core";
import { DataSeriesType_$type } from "igniteui-webcomponents-core";
import { NumericYAxis } from "./NumericYAxis";
import { IDataSeriesAdapterRule_$type } from "igniteui-webcomponents-core";
import { SimpleCategorySeriesRule } from "igniteui-webcomponents-core";
import { SubCollectionsRule } from "igniteui-webcomponents-core";
import { DVContainer } from "igniteui-webcomponents-core";
import { Brush } from "igniteui-webcomponents-core";
import { AxisDefaults } from "./AxisDefaults";
import { Defaults } from "./Defaults";
import { Series } from "./Series";
import { HorizontalAnchoredCategorySeries } from "./HorizontalAnchoredCategorySeries";
import { ArrayExtension } from "igniteui-webcomponents-core";
import { AxisLabelSettings } from "./AxisLabelSettings";
import { DeviceUtils } from "igniteui-webcomponents-core";
import { CategoryChartMockDataGenerator } from "./CategoryChartMockDataGenerator";
import { stringIsNullOrEmpty } from "igniteui-webcomponents-core";
/**
* @hidden
*/
var CategoryChart = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CategoryChart, _super);
function CategoryChart() {
var _this = _super.call(this) || this;
_this.ako = 1000;
_this.akp = 1000;
_this.air = null;
_this.ais = null;
_this.aib = 9;
_this.aid = 1;
_this.aix = false;
_this.aiy = true;
_this.aif = 0;
_this.aip = 0;
_this.ajl = 0;
_this.ajo = 0;
_this.ajk = 0;
_this.ajn = 0;
_this.ajm = 1;
_this.ajp = 0;
_this.ajv = NaN;
_this.ah7 = 1;
_this.aiz = true;
_this.ai0 = true;
_this.aji = DeviceUtils.g(2);
_this.ajj = DeviceUtils.g(60);
_this.ai4 = true;
_this.ai1 = true;
_this.ai3 = false;
_this.ah9 = 0;
_this.ai5 = false;
_this.akq = 10;
_this.ajx = NaN;
_this.ajw = NaN;
_this.ajy = 0;
_this.ah3 = null;
_this.ah4 = null;
_this.ai2 = true;
_this.ajq = 3;
_this.ajr = NaN;
_this.ajs = NaN;
_this.ajt = NaN;
_this.aju = NaN;
_this.aiv = false;
_this.aiw = false;
_this.ajh = null;
DVContainer.instance.registerIfLoaded("CategoryChartToolbarFactoryManager");
_this.u8();
return _this;
}
CategoryChart.prototype.vs = function () {
_super.prototype.vs.call(this);
if (this.dataChart == null) {
return;
}
var a = this.dataChart.dc.j.e();
this.ah5 = a.d;
this.ah6 = a.e;
if (this.ahf == null) {
this.ahf = a.k;
}
if (this.ahm == null) {
this.ahm = a.k;
}
this.ada = 0;
this.ahn = AxisDefaults.axis_MajorBrush;
this.ahq = null;
this.ahj = AxisDefaults.axis_LineBrush;
this.ahg = null;
this.acr = AxisDefaults.categoryAxis_TickLength;
this.ahk = AxisDefaults.axis_TickBrush;
this.acs = AxisDefaults.axis_TickStroke;
this.crosshairsAnnotationEnabled = true;
this.gu = true;
this.crosshairsDisplayMode = 0;
this.ju = Defaults.crosshairLineThickness;
this.y4 = Defaults.crosshairLineBrush;
this.yz = Defaults.crosshairXAxisAnnotationBackground;
this.y0 = Defaults.crosshairXAxisAnnotationTextColor;
this.ai9 = true;
};
CategoryChart.prototype.vu = function (a, b) {
_super.prototype.vu.call(this, a, b);
a.kf = this.akr;
a.kg = this.aks;
a.df = this.ait;
a.dg = this.aiu;
};
CategoryChart.prototype.wn = function (a, b, c) {
var _this = this;
_super.prototype.wn.call(this, a, b, c);
switch (a) {
case "TransitionInDuration":
this.vh(function (d) { return d.kf = _this.akr; });
break;
case "TransitionOutDuration":
this.vh(function (d) { return d.kg = _this.aks; });
break;
case "TransitionInEasingFunction":
this.vh(function (d) { return d.df = _this.ait; });
break;
case "TransitionOutEasingFunction":
this.vh(function (d) { return d.dg = _this.aiu; });
break;
}
};
Object.defineProperty(CategoryChart.prototype, "akr", {
get: function () {
return this.ako;
},
set: function (a) {
var b = this.akr;
if (a != b) {
this.ako = a;
this.wj("TransitionInDuration", b, this.akr);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aks", {
get: function () {
return this.akp;
},
set: function (a) {
var b = this.aks;
if (a != b) {
this.akp = a;
this.wj("TransitionOutDuration", b, this.aks);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ait", {
get: function () {
return this.air;
},
set: function (a) {
var b = this.ait;
if (a != b) {
this.air = a;
this.wj("TransitionInEasingFunction", b, this.ait);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aiu", {
get: function () {
return this.ais;
},
set: function (a) {
var b = this.aiu;
if (a != b) {
this.ais = a;
this.wj("TransitionOutEasingFunction", b, this.aiu);
}
},
enumerable: false,
configurable: true
});
CategoryChart.prototype.aky = function () {
var cvd_ = this.l9();
cvd_.scaleByViewport();
return (cvd_.serialize());
};
CategoryChart.prototype.vn = function (a, b) {
_super.prototype.vn.call(this, a, b);
a.en = this.gl;
a.yd = this.aja;
a.yg = this.ajb;
a.y3 = this.ajz;
a.y4 = this.aj0;
a.xi = this.ah8;
};
CategoryChart.prototype.vt = function (a, b) {
_super.prototype.vt.call(this, a, b);
var c = typeCast(HorizontalAnchoredCategorySeries.$, a);
if (c == null) {
return;
}
c.aa4 = this.aie;
c.zq = this.ai9;
c.za = this.aig;
c.c6 = this.aiq;
c.trendLineBrush = ArrayExtension.getModulus$1(Brush.$, this.af, b);
c.trendLineType = this.ec;
c.trendLineThickness = this.kq;
c.xf = this.c2(a, b);
if (a.fn) {
a.r7(ArrayExtension.getModulus$1(Brush.$, this.ah5, b), ArrayExtension.getModulus$1(Brush.$, this.ah6, b));
}
};
CategoryChart.prototype.aih = function () {
return new CategoryXAxis();
};
CategoryChart.prototype.ail = function () {
return new NumericYAxis();
};
CategoryChart.prototype.u3 = function () {
this.xAxis = this.aih();
this.xAxis.name = "xAxis";
var a = this.xAxis;
a.propertyChanged = delegateCombine(a.propertyChanged, runOn(this, this.al2));
this.yAxis = this.ail();
this.yAxis.name = "yAxis";
var b = this.yAxis;
b.propertyChanged = delegateCombine(b.propertyChanged, runOn(this, this.al3));
if (this.xAxis.az == null) {
this.xAxis.az = new AxisLabelSettings();
}
if (this.yAxis.az == null) {
this.yAxis.az = new AxisLabelSettings();
}
};
CategoryChart.prototype.agf = function (a) {
_super.prototype.agf.call(this, a);
a.lf = this.ajd;
a.lj = this.ajf;
a.b1 = this.aje;
};
CategoryChart.prototype.agd = function (a) {
_super.prototype.agd.call(this, a);
a.b1 = this.ajc;
a.zoomMaximumCategoryRange = this.akd;
a.zoomToCategoryRange = this.akf;
a.zoomToCategoryStart = this.akg;
a.zoomMaximumItemSpan = this.ake;
a.zoomToItemSpan = this.akh;
};
CategoryChart.prototype.get_cb = function () {
return 0;
};
Object.defineProperty(CategoryChart.prototype, "cb", {
get: function () {
return this.get_cb();
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aic", {
get: function () {
return this.aib;
},
set: function (a) {
if (a != this.aib) {
var b = this.aic;
this.aib = a;
this.wj("ChartType", enumGetBox(CategoryChartType_$type, b), enumGetBox(CategoryChartType_$type, this.aic));
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aie", {
get: function () {
return this.aid;
},
set: function (a) {
var b = this.aie;
if (a != b) {
this.aid = a;
this.wj("MarkerCollisionAvoidance", enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, b), enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, this.aie));
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ai8", {
get: function () {
return this.aix;
},
set: function (a) {
var b = this.ai8;
if (a != b) {
this.aix = a;
this.wj("IsSplineShapePartOfRange", b, this.ai8);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ai9", {
get: function () {
return this.aiy;
},
set: function (a) {
var b = this.ai9;
if (a != b) {
this.aiy = a;
this.wj("IsTransitionInEnabled", b, this.ai9);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aig", {
get: function () {
return this.aif;
},
set: function (a) {
var b = this.aig;
if (a != b) {
this.aif = a;
this.wj("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.aig));
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aiq", {
get: function () {
return this.aip;
},
set: function (a) {
var b = this.aiq;
if (a != b) {
this.aip = a;
this.wj("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.aiq));
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aj8", {
get: function () {
return this.ajl;
},
set: function (a) {
var b = this.aj8;
if (a != b) {
this.ajl = a;
this.wj("XAxisInterval", b, this.aj8);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akb", {
get: function () {
return this.ajo;
},
set: function (a) {
var b = this.akb;
if (a != b) {
this.ajo = a;
this.wj("XAxisMinorInterval", b, this.akb);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aj7", {
get: function () {
return this.ajk;
},
set: function (a) {
var b = this.aj7;
if (a != b) {
this.ajk = a;
this.wj("XAxisGap", b, this.aj7);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aka", {
get: function () {
return this.ajn;
},
set: function (a) {
var b = this.aka;
if (a != b) {
this.ajn = a;
this.wj("XAxisMinimumGapSize", b, this.aka);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aj9", {
get: function () {
return this.ajm;
},
set: function (a) {
var b = this.aj9;
if (a != b) {
this.ajm = a;
this.wj("XAxisMaximumGap", b, this.aj9);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akc", {
get: function () {
return this.ajp;
},
set: function (a) {
var b = this.akc;
if (a != b) {
this.ajp = a;
this.wj("XAxisOverlap", b, this.akc);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akk", {
get: function () {
return this.ajv;
},
set: function (a) {
var b = this.akk;
if (a != b) {
this.ajv = a;
this.wj("YAxisInterval", b, this.akk);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ah8", {
get: function () {
return this.ah7;
},
set: function (a) {
var b = this.ah8;
if (a != b) {
this.ah7 = a;
this.wj("AutoMarginAndAngleUpdateMode", enumGetBox(AutoMarginsAndAngleUpdateMode_$type, b), enumGetBox(AutoMarginsAndAngleUpdateMode_$type, this.ah8));
}
},
enumerable: false,
configurable: true
});
CategoryChart.prototype.al4 = function () {
if (this.dataChart != null) {
this.dataChart.aao();
}
};
Object.defineProperty(CategoryChart.prototype, "aja", {
get: function () {
return this.aiz;
},
set: function (a) {
var b = this.aja;
if (a != b) {
this.aiz = a;
this.wj("ShouldAutoExpandMarginForInitialLabels", b, this.aja);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ajb", {
get: function () {
return this.ai0;
},
set: function (a) {
var b = this.ajb;
if (a != b) {
this.ai0 = a;
this.wj(CategoryChart.ak7, b, this.ajb);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ajz", {
get: function () {
return this.aji;
},
set: function (a) {
var b = this.ajz;
if (a != b) {
this.aji = a;
this.wj("AutoExpandMarginExtraPadding", b, this.ajz);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aj0", {
get: function () {
return this.ajj;
},
set: function (a) {
var b = this.aj0;
if (a != b) {
this.ajj = a;
this.wj("AutoExpandMarginMaximumValue", b, this.aj0);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ajf", {
get: function () {
return this.ai4;
},
set: function (a) {
var b = this.ajf;
if (a != b) {
this.ai4 = a;
this.wj("YAxisFavorLabellingScaleEnd", b, this.ajf);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ajc", {
get: function () {
return this.ai1;
},
set: function (a) {
var b = this.ajc;
if (a != b) {
this.ai1 = a;
this.wj(CategoryChart.ale, b, this.ajc);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aje", {
get: function () {
return this.ai3;
},
set: function (a) {
var b = this.aje;
if (a != b) {
this.ai3 = a;
this.wj(CategoryChart.als, b, this.aje);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aia", {
get: function () {
return this.ah9;
},
set: function (a) {
var b = this.aia;
if (a != b) {
this.ah9 = a;
this.wj("YAxisAutoRangeBufferMode", enumGetBox(AxisRangeBufferMode_$type, b), enumGetBox(AxisRangeBufferMode_$type, this.aia));
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ajg", {
get: function () {
return this.ai5;
},
set: function (a) {
var b = this.ajg;
if (a != b) {
this.ai5 = a;
this.wj("YAxisIsLogarithmic", b, this.ajg);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akt", {
get: function () {
return this.akq;
},
set: function (a) {
var b = this.akt;
if (a != b) {
this.akq = a;
this.wj("YAxisLogarithmBase", b, this.akt);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akm", {
get: function () {
return this.ajx;
},
set: function (a) {
var b = this.akm;
if (a != b) {
this.ajx = a;
this.wj("YAxisMinimumValue", b, this.akm);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akl", {
get: function () {
return this.ajw;
},
set: function (a) {
var b = this.akl;
if (a != b) {
this.ajw = a;
this.wj("YAxisMaximumValue", b, this.akl);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akn", {
get: function () {
return this.ajy;
},
set: function (a) {
var b = this.akn;
if (a != b) {
this.ajy = a;
this.wj("YAxisMinorInterval", b, this.akn);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aj6", {
get: function () {
return this.xAxis.m1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aj5", {
get: function () {
return this.xAxis.m0;
},
enumerable: false,
configurable: true
});
CategoryChart.prototype.aj2 = function () {
return this.aj6;
};
CategoryChart.prototype.aj4 = function () {
return this.akj;
};
CategoryChart.prototype.aj1 = function () {
return this.aj5;
};
CategoryChart.prototype.aj3 = function () {
return this.aki;
};
Object.defineProperty(CategoryChart.prototype, "akj", {
get: function () {
return this.yAxis.l4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "aki", {
get: function () {
return this.yAxis.l3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ah5", {
get: function () {
return this.ah3;
},
set: function (a) {
var b = this.ah5;
if (a != b) {
this.ah3 = a;
this.wj("NegativeBrushes", b, this.ah5);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ah6", {
get: function () {
return this.ah4;
},
set: function (a) {
var b = this.ah6;
if (a != b) {
this.ah4 = a;
this.wj("NegativeOutlines", b, this.ah6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ajd", {
get: function () {
return this.ai2;
},
set: function (a) {
var b = this.ajd;
if (a != b) {
this.ai2 = a;
this.wj("YAxisAbbreviateLargeNumbers", b, this.ajd);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akd", {
get: function () {
return this.ajq;
},
set: function (a) {
var b = this.akd;
if (a != b) {
this.ajq = a;
this.wj("XAxisZoomMaximumCategoryRange", b, this.akd);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ake", {
get: function () {
return this.ajr;
},
set: function (a) {
var b = this.ake;
if (a != b) {
this.ajr = a;
this.wj("XAxisZoomMaximumItemSpan", b, this.ake);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akf", {
get: function () {
return this.ajs;
},
set: function (a) {
var b = this.akf;
if (a != b) {
this.ajs = a;
this.wj("XAxisZoomToCategoryRange", b, this.akf);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akg", {
get: function () {
return this.ajt;
},
set: function (a) {
var b = this.akg;
if (a != b) {
this.ajt = a;
this.wj("XAxisZoomToCategoryStart", b, this.akg);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "akh", {
get: function () {
return this.aju;
},
set: function (a) {
var b = this.akh;
if (a != b) {
this.aju = a;
this.wj("XAxisZoomToItemSpan", b, this.akh);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ai6", {
get: function () {
return this.aiv;
},
set: function (a) {
var b = this.ai6;
if (a != b) {
this.aiv = a;
this.wj("IsCategoryHighlightingEnabled", b, this.ai6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "ai7", {
get: function () {
return this.aiw;
},
set: function (a) {
var b = this.ai7;
if (a != b) {
this.aiw = a;
this.wj("IsItemHighlightingEnabled", b, this.ai7);
}
},
enumerable: false,
configurable: true
});
CategoryChart.prototype.get_h6 = function () {
var a = new List$1(DataSeriesType_$type, 0);
if (TypeRegistrar.isRegistered("AreaSeries")) {
a.add(2);
}
if (TypeRegistrar.isRegistered("ColumnSeries")) {
a.add(1);
}
if (TypeRegistrar.isRegistered("LineSeries")) {
a.add(0);
}
if (TypeRegistrar.isRegistered("PointSeries")) {
a.add(10);
}
if (TypeRegistrar.isRegistered("SplineSeries")) {
a.add(6);
}
if (TypeRegistrar.isRegistered("SplineAreaSeries")) {
a.add(7);
}
if (TypeRegistrar.isRegistered("StepAreaSeries")) {
a.add(5);
}
if (TypeRegistrar.isRegistered("StepLineSeries")) {
a.add(4);
}
if (TypeRegistrar.isRegistered("WaterfallSeries")) {
a.add(8);
}
return a;
};
Object.defineProperty(CategoryChart.prototype, "h6", {
get: function () {
return this.get_h6();
},
enumerable: false,
configurable: true
});
CategoryChart.prototype.ic = function () {
if (this.ajh == null) {
this.ajh = CategoryChartMockDataGenerator.a();
}
return this.ajh;
};
CategoryChart.prototype.c1 = function (a) {
if (a != null) {
var b = _super.prototype.c1.call(this, a);
if (b == 2) {
if (a.fm && this.g5) {
return 13;
}
}
}
return _super.prototype.c1.call(this, a);
};
CategoryChart.prototype.c3 = function (a) {
if (a != null) {
var b = _super.prototype.c1.call(this, a);
if (b == 2) {
if (a.fm && this.g5) {
return 13;
}
}
}
return _super.prototype.c3.call(this, a);
};
CategoryChart.prototype.get_ho = function () {
return true;
};
CategoryChart.prototype.al2 = function (a, b) {
switch (b.propertyName) {
case "ActualMinimum":
this.w1("XAxisActualMinimum");
break;
case "ActualMaximum":
this.w1("XAxisActualMaximum");
break;
}
};
CategoryChart.prototype.al3 = function (a, b) {
switch (b.propertyName) {
case "ActualMinimumValue":
this.w1("YAxisActualMinimum");
break;
case "ActualMaximumValue":
this.w1("YAxisActualMaximum");
break;
}
};
CategoryChart.prototype.xg = function () {
_super.prototype.xg.call(this);
this.xAxis.f2 = this.adk == null ? XYChart.adw(this.xAxis, this.bf.dataSeries) : this.adk;
this.xAxis.itemsSource = this.dataChart != null && this.dataChart.series.count > 0 ? this.dataChart.series._inner[0].itemsSource : null;
if (this.aja) {
this.v7(function (a) { return a.aao(); });
}
};
Object.defineProperty(CategoryChart.prototype, "xAxis", {
get: function () {
return this._xAxis;
},
set: function (a) {
this._xAxis = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CategoryChart.prototype, "yAxis", {
get: function () {
return this._yAxis;
},
set: function (a) {
this._yAxis = a;
},
enumerable: false,
configurable: true
});
CategoryChart.prototype.aik = function (a, b) {
switch (a) {
case 2: return this.df(1);
case 3: return this.df(10);
case 0: return this.df(0);
case 1: return this.df(2);
case 6: return this.df(6);
case 7: return this.df(7);
case 4: return this.df(4);
case 5: return this.df(5);
case 8: return this.df(8);
case 9: return this.aij(b);
default: return this.df(1);
}
};
CategoryChart.prototype.aij = function (a) {
return this.df(a);
};
CategoryChart.prototype.be = function (a) {
switch (this.aic) {
case 1: return 2;
case 0: return 0;
case 3: return 10;
case 6: return 6;
case 7: return 7;
case 5: return 5;
case 4: return 4;
case 8: return 8;
case 9: return a.suggestedSeries;
default:
case 2: return 1;
}
};
CategoryChart.prototype.dc = function (a, b) {
var c = this.aik(this.aic, a.suggestedSeries);
c.abu = a.findMatchingHint(0).path;
c.xAxis = this.xAxis;
c.yAxis = this.yAxis;
return c;
};
CategoryChart.prototype.xe = function (a) {
if (a.suggestedSecondaryAxis == 2) {
this.yAxis.lo = true;
this.yAxis.mm = 10;
}
};
CategoryChart.prototype.xh = function () {
this.yAxis.lo = this.ajg;
this.yAxis.mm = this.akt;
};
CategoryChart.prototype.get_h5 = function () {
return ((function () {
var $ret = new List$1(IDataSeriesAdapterRule_$type, 0);
$ret.add(new SimpleCategorySeriesRule());
$ret.add(new SubCollectionsRule());
return $ret;
})());
};
Object.defineProperty(CategoryChart.prototype, "h5", {
get: function () {
return this.get_h5();
},
enumerable: false,
configurable: true
});
CategoryChart.prototype.ux = function (a, b) {
var c = typeCast(HorizontalAnchoredCategorySeries.$, a);
if (c != null) {
c.aa4 = this.aie;
c.xf = this.c2(a, b);
}
};
CategoryChart.prototype.al0 = function (a) {
this.al1(function (b, c) { return a(b); });
};
CategoryChart.prototype.al1 = function (a) {
if (this.dataChart == null) {
return;
}
for (var b = 0; b < this.dataChart.series.count; b++) {
var c = typeCast(HorizontalAnchoredCategorySeries.$, this.dataChart.series._inner[b]);
if (c == null) {
continue;
}
a(c, b);
}
};
CategoryChart.prototype.aau = function () {
return this.xAxis;
};
CategoryChart.prototype.aav = function () {
return this.yAxis;
};
CategoryChart.prototype.ain = function () {
return this.df(30);
};
CategoryChart.prototype.aio = function () {
return this.df(31);
};
CategoryChart.prototype.h2 = function (a, b) {
var c = _super.prototype.h2.call(this, a, b);
if (c != null) {
var d = new List$1(Series.$, 0);
if (this.aiv) {
d.add(this.ain());
}
if (this.aiw) {
d.add(this.aio());
}
for (var e = 0; e < d.count; e++) {
var f = d._inner[e];
f.name = a + getInstanceType(f).typeName;
c.add(f);
}
}
return c;
};
CategoryChart.prototype.ba = function () {
if (this.a9 == 0) {
return 1;
}
else {
return this.a9;
}
};
CategoryChart.prototype.xl = function (a, b, c) {
_super.prototype.xl.call(this, a, b, c);
if (this.bf.dataSeries.count > 0) {
if (stringIsNullOrEmpty(this.n3)) {
this.ce.setXMemberPath(a, c.getMemberPathFor(16));
}
if (stringIsNullOrEmpty(this.n5)) {
this.ce.setYMemberPath(a, c.getMemberPathFor(0));
}
if (stringIsNullOrEmpty(this.nq)) {
this.ce.setLabelMemberPath(a, c.getMemberPathFor(0));
}
if (stringIsNullOrEmpty(this.nm)) {
this.ce.setContentMemberPath(a, c.getMemberPathFor(0));
}
}
};
CategoryChart.prototype.g8 = function () {
if (this.crosshairsDisplayMode == 4 || this.crosshairsDisplayMode == 3) {
return true;
}
else if (this.crosshairsDisplayMode == 0) {
if (this.aic == 2 || this.aic == 8) {
return false;
}
else if (this.aic == 9 && this.bf != null && this.bf.dataSeries != null && this.bf.dataSeries.count > 0) {
var a = this.bf.dataSeries._inner[0].suggestedSeries;
if (a == 1 || a == 8) {
return false;
}
}
return true;
}
return false;
};
CategoryChart.prototype.get_hf = function () {
return DVContainer.instance.checkLoaded("CategoryChartToolbarFactoryManager");
};
CategoryChart.prototype.wj = function (a, b, c) {
var _this = this;
_super.prototype.wj.call(this, a, b, c);
switch (a) {
case "ChartType":
this.ve();
break;
case "MarkerCollisionAvoidance":
this.al0(function (d) { return d.aa4 = _this.aie; });
break;
case "IsTransitionInEnabled":
this.al0(function (d) { return d.zq = _this.ai9; });
break;
case "IsSplineShapePartOfRange":
this.al0(function (d) {
if (d.f1) {
d.r8(_this.ai8);
}
});
break;
case "TransitionInMode":
this.al0(function (d) { return d.za = _this.aig; });
break;
case "TransitionInSpeedType":
this.al0(function (d) { return d.c6 = _this.aiq; });
break;
case "XAxisInterval":
this.xAxis.mw = this.aj8;
break;
case "XAxisMinorInterval":
this.xAxis.mx = this.akb;
break;
case "XAxisGap":
this.xAxis.k5 = this.aj7;
break;
case "XAxisOverlap":
this.xAxis.le = this.akc;
break;
case "XAxisMinimumGapSize":
this.xAxis.ld = this.aka;
break;
case "XAxisMaximumGap":
this.xAxis.lc = this.aj9;
break;
case "XAxisZoomMaximumCategoryRange":
this.xAxis.zoomMaximumCategoryRange = this.akd;
break;
case "XAxisZoomMaximumItemSpan":
this.xAxis.zoomMaximumItemSpan = this.ake;
break;
case "XAxisZoomToCategoryRange":
this.xAxis.zoomToCategoryRange = this.akf;
break;
case "XAxisZoomToCategoryStart":
this.xAxis.zoomToCategoryStart = this.akg;
break;
case "XAxisZoomToItemSpan":
this.xAxis.zoomToItemSpan = this.akh;
break;
case "YAxisInterval":
this.yAxis.l8 = this.akk;
break;
case "YAxisFavorLabellingScaleEnd":
this.yAxis.lj = this.ajf;
break;
case "YAxisAutoRangeBufferMode":
this.yAxis.ky = this.aia;
break;
case "YAxisIsLogarithmic":
this.yAxis.lo = this.ajg;
break;
case "YAxisLogarithmBase":
this.yAxis.mm = this.akt;
break;
case "YAxisMinimumValue":
this.yAxis.mc = this.akm;
break;
case "YAxisMaximumValue":
this.yAxis.mb = this.akl;
break;
case "YAxisMinorInterval":
this.yAxis.md = this.akn;
break;
case "NegativeBrushes":
case "NegativeOutlines":
this.al1(function (d, e) {
if (d.fn) {
d.r7(ArrayExtension.getModulus$1(Brush.$, _this.ah5, e), ArrayExtension.getModulus$1(Brush.$, _this.ah6, e));
}
});
break;
case "YAxisAbbreviateLargeNumbers":
this.agm(function (d) { return d.lf = _this.ajd; });
break;
case "IsCategoryHighlightingEnabled":
case "IsItemHighlightingEnabled":
this.ve();
break;
case "AutoMarginAndAngleUpdateMode":
this.v7(function (d) { return d.xi = _this.ah8; });
break;
case "ShouldAutoExpandMarginForInitialLabels":
this.v7(function (d) { return d.yd = _this.aja; });
break;
case CategoryChart.ak7:
this.v7(function (d) { return d.yg = _this.ajb; });
break;
case "AutoExpandMarginExtraPadding":
this.v7(function (d) { return d.y3 = _this.ajz; });
break;
case "AutoExpandMarginMaximumValue":
this.v7(function (d) { return d.y4 = _this.aj0; });
break;
case CategoryChart.ale:
this.agi(function (d) { return d.b1 = _this.ajc; }, a);
break;
case CategoryChart.als:
this.agm(function (d) { return d.b1 = _this.aje; });
break;
}
};
CategoryChart.$t = markType(CategoryChart, 'CategoryChart', XYChart.$);
CategoryChart.ak7 = "ShouldConsiderAutoRotationForInitialLabels";
CategoryChart.ale = "XAxisEnhancedIntervalPreferMoreCategoryLabels";
CategoryChart.als = "YAxisEnhancedIntervalPreferMoreCategoryLabels";
return CategoryChart;
}(XYChart));
export { CategoryChart };