UNPKG

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
/* 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.aj6 = 1000; _this.aj7 = 1000; _this.ah9 = null; _this.aia = null; _this.aht = 9; _this.ahv = 1; _this.aif = false; _this.aig = true; _this.ahx = 0; _this.ah7 = 0; _this.ai3 = 0; _this.ai6 = 0; _this.ai2 = 0; _this.ai5 = 0; _this.ai4 = 1; _this.ai7 = 0; _this.ajd = NaN; _this.ahp = 1; _this.aih = true; _this.aii = true; _this.ai0 = DeviceUtils.g(2); _this.ai1 = DeviceUtils.g(60); _this.aim = true; _this.aij = true; _this.ail = false; _this.ahr = 0; _this.ain = false; _this.aj8 = 10; _this.ajf = NaN; _this.aje = NaN; _this.ajg = 0; _this.ahl = null; _this.ahm = null; _this.aik = true; _this.ai8 = 3; _this.ai9 = NaN; _this.aja = NaN; _this.ajb = NaN; _this.ajc = NaN; _this.aid = false; _this.aie = false; _this.aiz = null; DVContainer.instance.registerIfLoaded("CategoryChartToolbarFactoryManager"); _this.u2(); return _this; } CategoryChart.prototype.vm = function () { _super.prototype.vm.call(this); if (this.dataChart == null) { return; } var a = this.dataChart.c9.j.e(); this.ahn = a.d; this.aho = a.e; if (this.agx == null) { this.agx = a.k; } if (this.ag4 == null) { this.ag4 = a.k; } this.acw = 0; this.ag5 = AxisDefaults.axis_MajorBrush; this.ag8 = null; this.ag1 = AxisDefaults.axis_LineBrush; this.agy = null; this.acf = AxisDefaults.categoryAxis_TickLength; this.ag2 = AxisDefaults.axis_TickBrush; this.acg = AxisDefaults.axis_TickStroke; this.crosshairsAnnotationEnabled = true; this.gq = true; this.crosshairsDisplayMode = 0; this.jq = Defaults.crosshairLineThickness; this.yy = Defaults.crosshairLineBrush; this.yt = Defaults.crosshairXAxisAnnotationBackground; this.yu = Defaults.crosshairXAxisAnnotationTextColor; this.air = true; }; CategoryChart.prototype.vo = function (a, b) { _super.prototype.vo.call(this, a, b); a.kf = this.aj9; a.kg = this.aka; a.df = this.aib; a.dg = this.aic; }; CategoryChart.prototype.wh = function (a, b, c) { var _this = this; _super.prototype.wh.call(this, a, b, c); switch (a) { case "TransitionInDuration": this.vb(function (d) { return d.kf = _this.aj9; }); break; case "TransitionOutDuration": this.vb(function (d) { return d.kg = _this.aka; }); break; case "TransitionInEasingFunction": this.vb(function (d) { return d.df = _this.aib; }); break; case "TransitionOutEasingFunction": this.vb(function (d) { return d.dg = _this.aic; }); break; } }; Object.defineProperty(CategoryChart.prototype, "aj9", { get: function () { return this.aj6; }, set: function (a) { var b = this.aj9; if (a != b) { this.aj6 = a; this.wd("TransitionInDuration", b, this.aj9); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aka", { get: function () { return this.aj7; }, set: function (a) { var b = this.aka; if (a != b) { this.aj7 = a; this.wd("TransitionOutDuration", b, this.aka); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aib", { get: function () { return this.ah9; }, set: function (a) { var b = this.aib; if (a != b) { this.ah9 = a; this.wd("TransitionInEasingFunction", b, this.aib); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aic", { get: function () { return this.aia; }, set: function (a) { var b = this.aic; if (a != b) { this.aia = a; this.wd("TransitionOutEasingFunction", b, this.aic); } }, enumerable: false, configurable: true }); CategoryChart.prototype.akg = function () { var cvd_ = this.l5(); cvd_.scaleByViewport(); return (cvd_.serialize()); }; CategoryChart.prototype.vh = function (a, b) { _super.prototype.vh.call(this, a, b); a.ej = this.gj; a.x1 = this.ais; a.x4 = this.ait; a.yr = this.ajh; a.ys = this.aji; a.w6 = this.ahq; }; CategoryChart.prototype.vn = function (a, b) { _super.prototype.vn.call(this, a, b); var c = typeCast(HorizontalAnchoredCategorySeries.$, a); if (c == null) { return; } c.aa1 = this.ahw; c.zq = this.air; c.za = this.ahy; c.c6 = this.ah8; c.trendLineBrush = ArrayExtension.getModulus$1(Brush.$, this.af, b); c.trendLineType = this.ec; c.trendLineThickness = this.km; c.xf = this.c2(a, b); if (a.fn) { a.r7(ArrayExtension.getModulus$1(Brush.$, this.ahn, b), ArrayExtension.getModulus$1(Brush.$, this.aho, b)); } }; CategoryChart.prototype.ahz = function () { return new CategoryXAxis(); }; CategoryChart.prototype.ah3 = function () { return new NumericYAxis(); }; CategoryChart.prototype.ux = function () { this.xAxis = this.ahz(); this.xAxis.name = "xAxis"; var a = this.xAxis; a.propertyChanged = delegateCombine(a.propertyChanged, runOn(this, this.alk)); this.yAxis = this.ah3(); this.yAxis.name = "yAxis"; var b = this.yAxis; b.propertyChanged = delegateCombine(b.propertyChanged, runOn(this, this.all)); if (this.xAxis.az == null) { this.xAxis.az = new AxisLabelSettings(); } if (this.yAxis.az == null) { this.yAxis.az = new AxisLabelSettings(); } }; CategoryChart.prototype.afx = function (a) { _super.prototype.afx.call(this, a); a.lf = this.aiv; a.lj = this.aix; a.b1 = this.aiw; }; CategoryChart.prototype.afv = function (a) { _super.prototype.afv.call(this, a); a.b1 = this.aiu; a.zoomMaximumCategoryRange = this.ajv; a.zoomToCategoryRange = this.ajx; a.zoomToCategoryStart = this.ajy; a.zoomMaximumItemSpan = this.ajw; a.zoomToItemSpan = this.ajz; }; 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, "ahu", { get: function () { return this.aht; }, set: function (a) { if (a != this.aht) { var b = this.ahu; this.aht = a; this.wd("ChartType", enumGetBox(CategoryChartType_$type, b), enumGetBox(CategoryChartType_$type, this.ahu)); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahw", { get: function () { return this.ahv; }, set: function (a) { var b = this.ahw; if (a != b) { this.ahv = a; this.wd("MarkerCollisionAvoidance", enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, b), enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, this.ahw)); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aiq", { get: function () { return this.aif; }, set: function (a) { var b = this.aiq; if (a != b) { this.aif = a; this.wd("IsSplineShapePartOfRange", b, this.aiq); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "air", { get: function () { return this.aig; }, set: function (a) { var b = this.air; if (a != b) { this.aig = a; this.wd("IsTransitionInEnabled", b, this.air); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahy", { get: function () { return this.ahx; }, set: function (a) { var b = this.ahy; if (a != b) { this.ahx = a; this.wd("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.ahy)); } }, 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.wd("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.ah8)); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajq", { get: function () { return this.ai3; }, set: function (a) { var b = this.ajq; if (a != b) { this.ai3 = a; this.wd("XAxisInterval", b, this.ajq); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajt", { get: function () { return this.ai6; }, set: function (a) { var b = this.ajt; if (a != b) { this.ai6 = a; this.wd("XAxisMinorInterval", b, this.ajt); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajp", { get: function () { return this.ai2; }, set: function (a) { var b = this.ajp; if (a != b) { this.ai2 = a; this.wd("XAxisGap", b, this.ajp); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajs", { get: function () { return this.ai5; }, set: function (a) { var b = this.ajs; if (a != b) { this.ai5 = a; this.wd("XAxisMinimumGapSize", b, this.ajs); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajr", { get: function () { return this.ai4; }, set: function (a) { var b = this.ajr; if (a != b) { this.ai4 = a; this.wd("XAxisMaximumGap", b, this.ajr); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aju", { get: function () { return this.ai7; }, set: function (a) { var b = this.aju; if (a != b) { this.ai7 = a; this.wd("XAxisOverlap", b, this.aju); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aj2", { get: function () { return this.ajd; }, set: function (a) { var b = this.aj2; if (a != b) { this.ajd = a; this.wd("YAxisInterval", b, this.aj2); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahq", { get: function () { return this.ahp; }, set: function (a) { var b = this.ahq; if (a != b) { this.ahp = a; this.wd("AutoMarginAndAngleUpdateMode", enumGetBox(AutoMarginsAndAngleUpdateMode_$type, b), enumGetBox(AutoMarginsAndAngleUpdateMode_$type, this.ahq)); } }, enumerable: false, configurable: true }); CategoryChart.prototype.alm = function () { if (this.dataChart != null) { this.dataChart.aac(); } }; Object.defineProperty(CategoryChart.prototype, "ais", { get: function () { return this.aih; }, set: function (a) { var b = this.ais; if (a != b) { this.aih = a; this.wd("ShouldAutoExpandMarginForInitialLabels", b, this.ais); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ait", { get: function () { return this.aii; }, set: function (a) { var b = this.ait; if (a != b) { this.aii = a; this.wd(CategoryChart.akp, b, this.ait); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajh", { get: function () { return this.ai0; }, set: function (a) { var b = this.ajh; if (a != b) { this.ai0 = a; this.wd("AutoExpandMarginExtraPadding", b, this.ajh); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aji", { get: function () { return this.ai1; }, set: function (a) { var b = this.aji; if (a != b) { this.ai1 = a; this.wd("AutoExpandMarginMaximumValue", b, this.aji); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aix", { get: function () { return this.aim; }, set: function (a) { var b = this.aix; if (a != b) { this.aim = a; this.wd("YAxisFavorLabellingScaleEnd", b, this.aix); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aiu", { get: function () { return this.aij; }, set: function (a) { var b = this.aiu; if (a != b) { this.aij = a; this.wd(CategoryChart.akw, b, this.aiu); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aiw", { get: function () { return this.ail; }, set: function (a) { var b = this.aiw; if (a != b) { this.ail = a; this.wd(CategoryChart.ala, b, this.aiw); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahs", { get: function () { return this.ahr; }, set: function (a) { var b = this.ahs; if (a != b) { this.ahr = a; this.wd("YAxisAutoRangeBufferMode", enumGetBox(AxisRangeBufferMode_$type, b), enumGetBox(AxisRangeBufferMode_$type, this.ahs)); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aiy", { get: function () { return this.ain; }, set: function (a) { var b = this.aiy; if (a != b) { this.ain = a; this.wd("YAxisIsLogarithmic", b, this.aiy); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "akb", { get: function () { return this.aj8; }, set: function (a) { var b = this.akb; if (a != b) { this.aj8 = a; this.wd("YAxisLogarithmBase", b, this.akb); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aj4", { get: function () { return this.ajf; }, set: function (a) { var b = this.aj4; if (a != b) { this.ajf = a; this.wd("YAxisMinimumValue", b, this.aj4); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aj3", { get: function () { return this.aje; }, set: function (a) { var b = this.aj3; if (a != b) { this.aje = a; this.wd("YAxisMaximumValue", b, this.aj3); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aj5", { get: function () { return this.ajg; }, set: function (a) { var b = this.aj5; if (a != b) { this.ajg = a; this.wd("YAxisMinorInterval", b, this.aj5); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajo", { get: function () { return this.xAxis.m1; }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajn", { get: function () { return this.xAxis.m0; }, enumerable: false, configurable: true }); CategoryChart.prototype.ajk = function () { return this.ajo; }; CategoryChart.prototype.ajm = function () { return this.aj1; }; CategoryChart.prototype.ajj = function () { return this.ajn; }; CategoryChart.prototype.ajl = function () { return this.aj0; }; Object.defineProperty(CategoryChart.prototype, "aj1", { get: function () { return this.yAxis.l4; }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aj0", { get: function () { return this.yAxis.l3; }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahn", { get: function () { return this.ahl; }, set: function (a) { var b = this.ahn; if (a != b) { this.ahl = a; this.wd("NegativeBrushes", b, this.ahn); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aho", { get: function () { return this.ahm; }, set: function (a) { var b = this.aho; if (a != b) { this.ahm = a; this.wd("NegativeOutlines", b, this.aho); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aiv", { get: function () { return this.aik; }, set: function (a) { var b = this.aiv; if (a != b) { this.aik = a; this.wd("YAxisAbbreviateLargeNumbers", b, this.aiv); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajv", { get: function () { return this.ai8; }, set: function (a) { var b = this.ajv; if (a != b) { this.ai8 = a; this.wd("XAxisZoomMaximumCategoryRange", b, this.ajv); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajw", { get: function () { return this.ai9; }, set: function (a) { var b = this.ajw; if (a != b) { this.ai9 = a; this.wd("XAxisZoomMaximumItemSpan", b, this.ajw); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajx", { get: function () { return this.aja; }, set: function (a) { var b = this.ajx; if (a != b) { this.aja = a; this.wd("XAxisZoomToCategoryRange", b, this.ajx); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajy", { get: function () { return this.ajb; }, set: function (a) { var b = this.ajy; if (a != b) { this.ajb = a; this.wd("XAxisZoomToCategoryStart", b, this.ajy); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajz", { get: function () { return this.ajc; }, set: function (a) { var b = this.ajz; if (a != b) { this.ajc = a; this.wd("XAxisZoomToItemSpan", b, this.ajz); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aio", { get: function () { return this.aid; }, set: function (a) { var b = this.aio; if (a != b) { this.aid = a; this.wd("IsCategoryHighlightingEnabled", b, this.aio); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aip", { get: function () { return this.aie; }, set: function (a) { var b = this.aip; if (a != b) { this.aie = a; this.wd("IsItemHighlightingEnabled", b, this.aip); } }, enumerable: false, configurable: true }); CategoryChart.prototype.get_h2 = 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, "h2", { get: function () { return this.get_h2(); }, enumerable: false, configurable: true }); CategoryChart.prototype.h8 = function () { if (this.aiz == null) { this.aiz = CategoryChartMockDataGenerator.a(); } return this.aiz; }; CategoryChart.prototype.c1 = function (a) { if (a != null) { var b = _super.prototype.c1.call(this, a); if (b == 2) { if (a.fm && this.g1) { 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.g1) { return 13; } } } return _super.prototype.c3.call(this, a); }; CategoryChart.prototype.get_hk = function () { return true; }; CategoryChart.prototype.alk = function (a, b) { switch (b.propertyName) { case "ActualMinimum": this.wv("XAxisActualMinimum"); break; case "ActualMaximum": this.wv("XAxisActualMaximum"); break; } }; CategoryChart.prototype.all = function (a, b) { switch (b.propertyName) { case "ActualMinimumValue": this.wv("YAxisActualMinimum"); break; case "ActualMaximumValue": this.wv("YAxisActualMaximum"); break; } }; CategoryChart.prototype.xa = function () { _super.prototype.xa.call(this); this.xAxis.f2 = this.ac6 == null ? XYChart.adi(this.xAxis, this.bf.dataSeries) : this.ac6; this.xAxis.itemsSource = this.dataChart != null && this.dataChart.series.count > 0 ? this.dataChart.series._inner[0].itemsSource : null; if (this.ais) { this.v1(function (a) { return a.aac(); }); } }; 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.ah2 = 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.ah1(b); default: return this.df(1); } }; CategoryChart.prototype.ah1 = function (a) { return this.df(a); }; CategoryChart.prototype.be = function (a) { switch (this.ahu) { 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.ah2(this.ahu, a.suggestedSeries); c.abr = a.findMatchingHint(0).path; c.xAxis = this.xAxis; c.yAxis = this.yAxis; return c; }; CategoryChart.prototype.w8 = function (a) { if (a.suggestedSecondaryAxis == 2) { this.yAxis.lo = true; this.yAxis.mm = 10; } }; CategoryChart.prototype.xb = function () { this.yAxis.lo = this.aiy; this.yAxis.mm = this.akb; }; CategoryChart.prototype.get_h1 = 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, "h1", { get: function () { return this.get_h1(); }, enumerable: false, configurable: true }); CategoryChart.prototype.ur = function (a, b) { var c = typeCast(HorizontalAnchoredCategorySeries.$, a); if (c != null) { c.aa1 = this.ahw; c.xf = this.c2(a, b); } }; CategoryChart.prototype.ali = function (a) { this.alj(function (b, c) { return a(b); }); }; CategoryChart.prototype.alj = 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.aao = function () { return this.xAxis; }; CategoryChart.prototype.aap = function () { return this.yAxis; }; CategoryChart.prototype.ah5 = function () { return this.df(30); }; CategoryChart.prototype.ah6 = function () { return this.df(31); }; CategoryChart.prototype.hy = function (a, b) { var c = _super.prototype.hy.call(this, a, b); if (c != null) { var d = new List$1(Series.$, 0); if (this.aid) { d.add(this.ah5()); } if (this.aie) { d.add(this.ah6()); } 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.xf = function (a, b, c) { _super.prototype.xf.call(this, a, b, c); if (this.bf.dataSeries.count > 0) { if (stringIsNullOrEmpty(this.nz)) { this.ce.setXMemberPath(a, c.getMemberPathFor(16)); } if (stringIsNullOrEmpty(this.n1)) { this.ce.setYMemberPath(a, c.getMemberPathFor(0)); } if (stringIsNullOrEmpty(this.nm)) { this.ce.setLabelMemberPath(a, c.getMemberPathFor(0)); } if (stringIsNullOrEmpty(this.ni)) { this.ce.setContentMemberPath(a, c.getMemberPathFor(0)); } } }; CategoryChart.prototype.g4 = function () { if (this.crosshairsDisplayMode == 4 || this.crosshairsDisplayMode == 3) { return true; } else if (this.crosshairsDisplayMode == 0) { if (this.ahu == 2 || this.ahu == 8) { return false; } else if (this.ahu == 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_hb = function () { return DVContainer.instance.checkLoaded("CategoryChartToolbarFactoryManager"); }; CategoryChart.prototype.wd = function (a, b, c) { var _this = this; _super.prototype.wd.call(this, a, b, c); switch (a) { case "ChartType": this.u8(); break; case "MarkerCollisionAvoidance": this.ali(function (d) { return d.aa1 = _this.ahw; }); break; case "IsTransitionInEnabled": this.ali(function (d) { return d.zq = _this.air; }); break; case "IsSplineShapePartOfRange": this.ali(function (d) { if (d.f1) { d.r8(_this.aiq); } }); break; case "TransitionInMode": this.ali(function (d) { return d.za = _this.ahy; }); break; case "TransitionInSpeedType": this.ali(function (d) { return d.c6 = _this.ah8; }); break; case "XAxisInterval": this.xAxis.mw = this.ajq; break; case "XAxisMinorInterval": this.xAxis.mx = this.ajt; break; case "XAxisGap": this.xAxis.k5 = this.ajp; break; case "XAxisOverlap": this.xAxis.le = this.aju; break; case "XAxisMinimumGapSize": this.xAxis.ld = this.ajs; break; case "XAxisMaximumGap": this.xAxis.lc = this.ajr; break; case "XAxisZoomMaximumCategoryRange": this.xAxis.zoomMaximumCategoryRange = this.ajv; break; case "XAxisZoomMaximumItemSpan": this.xAxis.zoomMaximumItemSpan = this.ajw; break; case "XAxisZoomToCategoryRange": this.xAxis.zoomToCategoryRange = this.ajx; break; case "XAxisZoomToCategoryStart": this.xAxis.zoomToCategoryStart = this.ajy; break; case "XAxisZoomToItemSpan": this.xAxis.zoomToItemSpan = this.ajz; break; case "YAxisInterval": this.yAxis.l8 = this.aj2; break; case "YAxisFavorLabellingScaleEnd": this.yAxis.lj = this.aix; break; case "YAxisAutoRangeBufferMode": this.yAxis.ky = this.ahs; break; case "YAxisIsLogarithmic": this.yAxis.lo = this.aiy; break; case "YAxisLogarithmBase": this.yAxis.mm = this.akb; break; case "YAxisMinimumValue": this.yAxis.mc = this.aj4; break; case "YAxisMaximumValue": this.yAxis.mb = this.aj3; break; case "YAxisMinorInterval": this.yAxis.md = this.aj5; break; case "NegativeBrushes": case "NegativeOutlines": this.alj(function (d, e) { if (d.fn) { d.r7(ArrayExtension.getModulus$1(Brush.$, _this.ahn, e), ArrayExtension.getModulus$1(Brush.$, _this.aho, e)); } }); break; case "YAxisAbbreviateLargeNumbers": this.af4(function (d) { return d.lf = _this.aiv; }); break; case "IsCategoryHighlightingEnabled": case "IsItemHighlightingEnabled": this.u8(); break; case "AutoMarginAndAngleUpdateMode": this.v1(function (d) { return d.w6 = _this.ahq; }); break; case "ShouldAutoExpandMarginForInitialLabels": this.v1(function (d) { return d.x1 = _this.ais; }); break; case CategoryChart.akp: this.v1(function (d) { return d.x4 = _this.ait; }); break; case "AutoExpandMarginExtraPadding": this.v1(function (d) { return d.yr = _this.ajh; }); break; case "AutoExpandMarginMaximumValue": this.v1(function (d) { return d.ys = _this.aji; }); break; case CategoryChart.akw: this.af0(function (d) { return d.b1 = _this.aiu; }, a); break; case CategoryChart.ala: this.af4(function (d) { return d.b1 = _this.aiw; }); break; } }; CategoryChart.$t = markType(CategoryChart, 'CategoryChart', XYChart.$); CategoryChart.akp = "ShouldConsiderAutoRotationForInitialLabels"; CategoryChart.akw = "XAxisEnhancedIntervalPreferMoreCategoryLabels"; CategoryChart.ala = "YAxisEnhancedIntervalPreferMoreCategoryLabels"; return CategoryChart; }(XYChart)); export { CategoryChart };