UNPKG

igniteui-react-charts

Version:

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

1,249 lines (1,248 loc) 39.8 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-react-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-react-core"; import { DataSeriesType_$type } from "igniteui-react-core"; import { NumericYAxis } from "./NumericYAxis"; import { IDataSeriesAdapterRule_$type } from "igniteui-react-core"; import { SimpleCategorySeriesRule } from "igniteui-react-core"; import { SubCollectionsRule } from "igniteui-react-core"; import { DVContainer } from "igniteui-react-core"; import { Brush } from "igniteui-react-core"; import { AxisDefaults } from "./AxisDefaults"; import { Defaults } from "./Defaults"; import { Series } from "./Series"; import { HorizontalAnchoredCategorySeries } from "./HorizontalAnchoredCategorySeries"; import { ArrayExtension } from "igniteui-react-core"; import { AxisLabelSettings } from "./AxisLabelSettings"; import { DeviceUtils } from "igniteui-react-core"; import { CategoryChartMockDataGenerator } from "./CategoryChartMockDataGenerator"; import { stringIsNullOrEmpty } from "igniteui-react-core"; /** * @hidden */ var CategoryChart = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CategoryChart, _super); function CategoryChart() { var _this = _super.call(this) || this; _this.ajw = 1000; _this.ajx = 1000; _this.ahz = null; _this.ah0 = null; _this.ahj = 9; _this.ahl = 1; _this.ah5 = false; _this.ah6 = true; _this.ahn = 0; _this.ahx = 0; _this.ait = 0; _this.aiw = 0; _this.ais = 0; _this.aiv = 0; _this.aiu = 1; _this.aix = 0; _this.ai3 = NaN; _this.ahf = 1; _this.ah7 = true; _this.ah8 = true; _this.aiq = DeviceUtils.g(2); _this.air = DeviceUtils.g(60); _this.aic = true; _this.ah9 = true; _this.aib = false; _this.ahh = 0; _this.aid = false; _this.ajy = 10; _this.ai5 = NaN; _this.ai4 = NaN; _this.ai6 = 0; _this.ahb = null; _this.ahc = null; _this.aia = true; _this.aiy = 3; _this.aiz = NaN; _this.ai0 = NaN; _this.ai1 = NaN; _this.ai2 = NaN; _this.ah3 = false; _this.ah4 = false; _this.aip = null; DVContainer.instance.registerIfLoaded("CategoryChartToolbarFactoryManager"); _this.ut(); return _this; } CategoryChart.prototype.vd = function () { _super.prototype.vd.call(this); if (this.dataChart == null) { return; } var a = this.dataChart.c9.j.e(); this.ahd = a.d; this.ahe = a.e; if (this.agn == null) { this.agn = a.k; } if (this.agu == null) { this.agu = a.k; } this.acm = 0; this.agv = AxisDefaults.h; this.agy = null; this.agr = AxisDefaults.g; this.ago = null; this.ab5 = AxisDefaults.f; this.ags = AxisDefaults.j; this.ab6 = AxisDefaults.e; this.crosshairsAnnotationEnabled = true; this.gq = true; this.crosshairsDisplayMode = 0; this.jq = Defaults.j; this.yo = Defaults.ae; this.yj = Defaults.af; this.yk = Defaults.ag; this.aih = true; }; CategoryChart.prototype.vf = function (a, b) { _super.prototype.vf.call(this, a, b); a.ke = this.ajz; a.kf = this.aj0; a.df = this.ah1; a.dg = this.ah2; }; CategoryChart.prototype.v7 = function (a, b, c) { var _this = this; _super.prototype.v7.call(this, a, b, c); switch (a) { case "TransitionInDuration": this.u2(function (d) { return d.ke = _this.ajz; }); break; case "TransitionOutDuration": this.u2(function (d) { return d.kf = _this.aj0; }); break; case "TransitionInEasingFunction": this.u2(function (d) { return d.df = _this.ah1; }); break; case "TransitionOutEasingFunction": this.u2(function (d) { return d.dg = _this.ah2; }); break; } }; Object.defineProperty(CategoryChart.prototype, "ajz", { get: function () { return this.ajw; }, set: function (a) { var b = this.ajz; if (a != b) { this.ajw = a; this.v3("TransitionInDuration", b, this.ajz); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aj0", { get: function () { return this.ajx; }, set: function (a) { var b = this.aj0; if (a != b) { this.ajx = a; this.v3("TransitionOutDuration", b, this.aj0); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ah1", { get: function () { return this.ahz; }, set: function (a) { var b = this.ah1; if (a != b) { this.ahz = a; this.v3("TransitionInEasingFunction", b, this.ah1); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ah2", { get: function () { return this.ah0; }, set: function (a) { var b = this.ah2; if (a != b) { this.ah0 = a; this.v3("TransitionOutEasingFunction", b, this.ah2); } }, enumerable: false, configurable: true }); CategoryChart.prototype.aj6 = function () { var cvd_ = this.lz(); cvd_.scaleByViewport(); return (cvd_.serialize()); }; CategoryChart.prototype.u8 = function (a, b) { _super.prototype.u8.call(this, a, b); a.ej = this.gj; a.xp = this.aii; a.xs = this.aij; a.yf = this.ai7; a.yg = this.ai8; a.wu = this.ahg; }; CategoryChart.prototype.ve = function (a, b) { _super.prototype.ve.call(this, a, b); var c = typeCast(HorizontalAnchoredCategorySeries.$, a); if (c == null) { return; } c.aay = this.ahm; c.zn = this.aih; c.y7 = this.aho; c.c6 = this.ahy; c.trendLineBrush = ArrayExtension.getModulus$1(Brush.$, this.af, b); c.trendLineType = this.ec; c.trendLineThickness = this.km; c.xc = this.c2(a, b); if (a.fm) { a.r5(ArrayExtension.getModulus$1(Brush.$, this.ahd, b), ArrayExtension.getModulus$1(Brush.$, this.ahe, b)); } }; CategoryChart.prototype.ahp = function () { return new CategoryXAxis(); }; CategoryChart.prototype.aht = function () { return new NumericYAxis(); }; CategoryChart.prototype.uo = function () { this.xAxis = this.ahp(); this.xAxis.name = "xAxis"; var a = this.xAxis; a.propertyChanged = delegateCombine(a.propertyChanged, runOn(this, this.ala)); this.yAxis = this.aht(); this.yAxis.name = "yAxis"; var b = this.yAxis; b.propertyChanged = delegateCombine(b.propertyChanged, runOn(this, this.alb)); if (this.xAxis.az == null) { this.xAxis.az = new AxisLabelSettings(); } if (this.yAxis.az == null) { this.yAxis.az = new AxisLabelSettings(); } }; CategoryChart.prototype.afn = function (a) { _super.prototype.afn.call(this, a); a.lf = this.ail; a.lj = this.ain; a.b1 = this.aim; }; CategoryChart.prototype.afl = function (a) { _super.prototype.afl.call(this, a); a.b1 = this.aik; a.zoomMaximumCategoryRange = this.ajl; a.zoomToCategoryRange = this.ajn; a.zoomToCategoryStart = this.ajo; a.zoomMaximumItemSpan = this.ajm; a.zoomToItemSpan = this.ajp; }; 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, "ahk", { get: function () { return this.ahj; }, set: function (a) { if (a != this.ahj) { var b = this.ahk; this.ahj = a; this.v3("ChartType", enumGetBox(CategoryChartType_$type, b), enumGetBox(CategoryChartType_$type, this.ahk)); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahm", { get: function () { return this.ahl; }, set: function (a) { var b = this.ahm; if (a != b) { this.ahl = a; this.v3("MarkerCollisionAvoidance", enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, b), enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, this.ahm)); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aig", { get: function () { return this.ah5; }, set: function (a) { var b = this.aig; if (a != b) { this.ah5 = a; this.v3("IsSplineShapePartOfRange", b, this.aig); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aih", { get: function () { return this.ah6; }, set: function (a) { var b = this.aih; if (a != b) { this.ah6 = a; this.v3("IsTransitionInEnabled", b, this.aih); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aho", { get: function () { return this.ahn; }, set: function (a) { var b = this.aho; if (a != b) { this.ahn = a; this.v3("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.aho)); } }, 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.v3("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.ahy)); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajg", { get: function () { return this.ait; }, set: function (a) { var b = this.ajg; if (a != b) { this.ait = a; this.v3("XAxisInterval", b, this.ajg); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajj", { get: function () { return this.aiw; }, set: function (a) { var b = this.ajj; if (a != b) { this.aiw = a; this.v3("XAxisMinorInterval", b, this.ajj); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajf", { get: function () { return this.ais; }, set: function (a) { var b = this.ajf; if (a != b) { this.ais = a; this.v3("XAxisGap", b, this.ajf); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aji", { get: function () { return this.aiv; }, set: function (a) { var b = this.aji; if (a != b) { this.aiv = a; this.v3("XAxisMinimumGapSize", b, this.aji); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajh", { get: function () { return this.aiu; }, set: function (a) { var b = this.ajh; if (a != b) { this.aiu = a; this.v3("XAxisMaximumGap", b, this.ajh); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajk", { get: function () { return this.aix; }, set: function (a) { var b = this.ajk; if (a != b) { this.aix = a; this.v3("XAxisOverlap", b, this.ajk); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajs", { get: function () { return this.ai3; }, set: function (a) { var b = this.ajs; if (a != b) { this.ai3 = a; this.v3("YAxisInterval", b, this.ajs); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahg", { get: function () { return this.ahf; }, set: function (a) { var b = this.ahg; if (a != b) { this.ahf = a; this.v3("AutoMarginAndAngleUpdateMode", enumGetBox(AutoMarginsAndAngleUpdateMode_$type, b), enumGetBox(AutoMarginsAndAngleUpdateMode_$type, this.ahg)); } }, enumerable: false, configurable: true }); CategoryChart.prototype.alc = function () { if (this.dataChart != null) { this.dataChart.z0(); } }; Object.defineProperty(CategoryChart.prototype, "aii", { get: function () { return this.ah7; }, set: function (a) { var b = this.aii; if (a != b) { this.ah7 = a; this.v3("ShouldAutoExpandMarginForInitialLabels", b, this.aii); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aij", { get: function () { return this.ah8; }, set: function (a) { var b = this.aij; if (a != b) { this.ah8 = a; this.v3(CategoryChart.akf, b, this.aij); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ai7", { get: function () { return this.aiq; }, set: function (a) { var b = this.ai7; if (a != b) { this.aiq = a; this.v3("AutoExpandMarginExtraPadding", b, this.ai7); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ai8", { get: function () { return this.air; }, set: function (a) { var b = this.ai8; if (a != b) { this.air = a; this.v3("AutoExpandMarginMaximumValue", b, this.ai8); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ain", { get: function () { return this.aic; }, set: function (a) { var b = this.ain; if (a != b) { this.aic = a; this.v3("YAxisFavorLabellingScaleEnd", b, this.ain); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aik", { get: function () { return this.ah9; }, set: function (a) { var b = this.aik; if (a != b) { this.ah9 = a; this.v3(CategoryChart.akm, b, this.aik); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aim", { get: function () { return this.aib; }, set: function (a) { var b = this.aim; if (a != b) { this.aib = a; this.v3(CategoryChart.ak0, b, this.aim); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahi", { get: function () { return this.ahh; }, set: function (a) { var b = this.ahi; if (a != b) { this.ahh = a; this.v3("YAxisAutoRangeBufferMode", enumGetBox(AxisRangeBufferMode_$type, b), enumGetBox(AxisRangeBufferMode_$type, this.ahi)); } }, 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.v3("YAxisIsLogarithmic", b, this.aio); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aj1", { get: function () { return this.ajy; }, set: function (a) { var b = this.aj1; if (a != b) { this.ajy = a; this.v3("YAxisLogarithmBase", b, this.aj1); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aju", { get: function () { return this.ai5; }, set: function (a) { var b = this.aju; if (a != b) { this.ai5 = a; this.v3("YAxisMinimumValue", b, this.aju); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajt", { get: function () { return this.ai4; }, set: function (a) { var b = this.ajt; if (a != b) { this.ai4 = a; this.v3("YAxisMaximumValue", b, this.ajt); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajv", { get: function () { return this.ai6; }, set: function (a) { var b = this.ajv; if (a != b) { this.ai6 = a; this.v3("YAxisMinorInterval", b, this.ajv); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aje", { get: function () { return this.xAxis.m1; }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajd", { get: function () { return this.xAxis.m0; }, enumerable: false, configurable: true }); CategoryChart.prototype.aja = function () { return this.aje; }; CategoryChart.prototype.ajc = function () { return this.ajr; }; CategoryChart.prototype.ai9 = function () { return this.ajd; }; CategoryChart.prototype.ajb = function () { return this.ajq; }; Object.defineProperty(CategoryChart.prototype, "ajr", { get: function () { return this.yAxis.l4; }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajq", { get: function () { return this.yAxis.l3; }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahd", { get: function () { return this.ahb; }, set: function (a) { var b = this.ahd; if (a != b) { this.ahb = a; this.v3("NegativeBrushes", b, this.ahd); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ahe", { get: function () { return this.ahc; }, set: function (a) { var b = this.ahe; if (a != b) { this.ahc = a; this.v3("NegativeOutlines", b, this.ahe); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ail", { get: function () { return this.aia; }, set: function (a) { var b = this.ail; if (a != b) { this.aia = a; this.v3("YAxisAbbreviateLargeNumbers", b, this.ail); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajl", { get: function () { return this.aiy; }, set: function (a) { var b = this.ajl; if (a != b) { this.aiy = a; this.v3("XAxisZoomMaximumCategoryRange", b, this.ajl); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajm", { get: function () { return this.aiz; }, set: function (a) { var b = this.ajm; if (a != b) { this.aiz = a; this.v3("XAxisZoomMaximumItemSpan", b, this.ajm); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajn", { get: function () { return this.ai0; }, set: function (a) { var b = this.ajn; if (a != b) { this.ai0 = a; this.v3("XAxisZoomToCategoryRange", b, this.ajn); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "ajo", { get: function () { return this.ai1; }, set: function (a) { var b = this.ajo; if (a != b) { this.ai1 = a; this.v3("XAxisZoomToCategoryStart", b, this.ajo); } }, 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.v3("XAxisZoomToItemSpan", b, this.ajp); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aie", { get: function () { return this.ah3; }, set: function (a) { var b = this.aie; if (a != b) { this.ah3 = a; this.v3("IsCategoryHighlightingEnabled", b, this.aie); } }, enumerable: false, configurable: true }); Object.defineProperty(CategoryChart.prototype, "aif", { get: function () { return this.ah4; }, set: function (a) { var b = this.aif; if (a != b) { this.ah4 = a; this.v3("IsItemHighlightingEnabled", b, this.aif); } }, 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.aip == null) { this.aip = CategoryChartMockDataGenerator.a(); } return this.aip; }; CategoryChart.prototype.c1 = function (a) { if (a != null) { var b = _super.prototype.c1.call(this, a); if (b == 2) { if (a.fl && 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.fl && this.g1) { return 13; } } } return _super.prototype.c3.call(this, a); }; CategoryChart.prototype.get_hk = function () { return true; }; CategoryChart.prototype.ala = function (a, b) { switch (b.propertyName) { case "ActualMinimum": this.wl("XAxisActualMinimum"); break; case "ActualMaximum": this.wl("XAxisActualMaximum"); break; } }; CategoryChart.prototype.alb = function (a, b) { switch (b.propertyName) { case "ActualMinimumValue": this.wl("YAxisActualMinimum"); break; case "ActualMaximumValue": this.wl("YAxisActualMaximum"); break; } }; CategoryChart.prototype.w0 = function () { _super.prototype.w0.call(this); this.xAxis.f2 = this.acw == null ? XYChart.ac8(this.xAxis, this.bf.dataSeries) : this.acw; this.xAxis.itemsSource = this.dataChart != null && this.dataChart.series.count > 0 ? this.dataChart.series._inner[0].itemsSource : null; if (this.aii) { this.vs(function (a) { return a.z0(); }); } }; 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.ahs = 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.ahr(b); default: return this.df(1); } }; CategoryChart.prototype.ahr = function (a) { return this.df(a); }; CategoryChart.prototype.be = function (a) { switch (this.ahk) { 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.ahs(this.ahk, a.suggestedSeries); c.abo = a.findMatchingHint(0).path; c.xAxis = this.xAxis; c.yAxis = this.yAxis; return c; }; CategoryChart.prototype.wy = function (a) { if (a.suggestedSecondaryAxis == 2) { this.yAxis.lo = true; this.yAxis.mm = 10; } }; CategoryChart.prototype.w1 = function () { this.yAxis.lo = this.aio; this.yAxis.mm = this.aj1; }; 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.ui = function (a, b) { var c = typeCast(HorizontalAnchoredCategorySeries.$, a); if (c != null) { c.aay = this.ahm; c.xc = this.c2(a, b); } }; CategoryChart.prototype.ak8 = function (a) { this.ak9(function (b, c) { return a(b); }); }; CategoryChart.prototype.ak9 = 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.aae = function () { return this.xAxis; }; CategoryChart.prototype.aaf = function () { return this.yAxis; }; CategoryChart.prototype.ahv = function () { return this.df(30); }; CategoryChart.prototype.ahw = 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.ah3) { d.add(this.ahv()); } if (this.ah4) { d.add(this.ahw()); } 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.w5 = function (a, b, c) { _super.prototype.w5.call(this, a, b, c); if (this.bf.dataSeries.count > 0) { if (stringIsNullOrEmpty(this.nt)) { this.ce.setXMemberPath(a, c.getMemberPathFor(16)); } if (stringIsNullOrEmpty(this.nv)) { this.ce.setYMemberPath(a, c.getMemberPathFor(0)); } if (stringIsNullOrEmpty(this.ng)) { this.ce.setLabelMemberPath(a, c.getMemberPathFor(0)); } if (stringIsNullOrEmpty(this.nc)) { 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.ahk == 2 || this.ahk == 8) { return false; } else if (this.ahk == 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.v3 = function (a, b, c) { var _this = this; _super.prototype.v3.call(this, a, b, c); switch (a) { case "ChartType": this.uz(); break; case "MarkerCollisionAvoidance": this.ak8(function (d) { return d.aay = _this.ahm; }); break; case "IsTransitionInEnabled": this.ak8(function (d) { return d.zn = _this.aih; }); break; case "IsSplineShapePartOfRange": this.ak8(function (d) { if (d.f0) { d.r6(_this.aig); } }); break; case "TransitionInMode": this.ak8(function (d) { return d.y7 = _this.aho; }); break; case "TransitionInSpeedType": this.ak8(function (d) { return d.c6 = _this.ahy; }); break; case "XAxisInterval": this.xAxis.mw = this.ajg; break; case "XAxisMinorInterval": this.xAxis.mx = this.ajj; break; case "XAxisGap": this.xAxis.k5 = this.ajf; break; case "XAxisOverlap": this.xAxis.le = this.ajk; break; case "XAxisMinimumGapSize": this.xAxis.ld = this.aji; break; case "XAxisMaximumGap": this.xAxis.lc = this.ajh; break; case "XAxisZoomMaximumCategoryRange": this.xAxis.zoomMaximumCategoryRange = this.ajl; break; case "XAxisZoomMaximumItemSpan": this.xAxis.zoomMaximumItemSpan = this.ajm; break; case "XAxisZoomToCategoryRange": this.xAxis.zoomToCategoryRange = this.ajn; break; case "XAxisZoomToCategoryStart": this.xAxis.zoomToCategoryStart = this.ajo; break; case "XAxisZoomToItemSpan": this.xAxis.zoomToItemSpan = this.ajp; break; case "YAxisInterval": this.yAxis.l8 = this.ajs; break; case "YAxisFavorLabellingScaleEnd": this.yAxis.lj = this.ain; break; case "YAxisAutoRangeBufferMode": this.yAxis.ky = this.ahi; break; case "YAxisIsLogarithmic": this.yAxis.lo = this.aio; break; case "YAxisLogarithmBase": this.yAxis.mm = this.aj1; break; case "YAxisMinimumValue": this.yAxis.mc = this.aju; break; case "YAxisMaximumValue": this.yAxis.mb = this.ajt; break; case "YAxisMinorInterval": this.yAxis.md = this.ajv; break; case "NegativeBrushes": case "NegativeOutlines": this.ak9(function (d, e) { if (d.fm) { d.r5(ArrayExtension.getModulus$1(Brush.$, _this.ahd, e), ArrayExtension.getModulus$1(Brush.$, _this.ahe, e)); } }); break; case "YAxisAbbreviateLargeNumbers": this.afu(function (d) { return d.lf = _this.ail; }); break; case "IsCategoryHighlightingEnabled": case "IsItemHighlightingEnabled": this.uz(); break; case "AutoMarginAndAngleUpdateMode": this.vs(function (d) { return d.wu = _this.ahg; }); break; case "ShouldAutoExpandMarginForInitialLabels": this.vs(function (d) { return d.xp = _this.aii; }); break; case CategoryChart.akf: this.vs(function (d) { return d.xs = _this.aij; }); break; case "AutoExpandMarginExtraPadding": this.vs(function (d) { return d.yf = _this.ai7; }); break; case "AutoExpandMarginMaximumValue": this.vs(function (d) { return d.yg = _this.ai8; }); break; case CategoryChart.akm: this.afq(function (d) { return d.b1 = _this.aik; }, a); break; case CategoryChart.ak0: this.afu(function (d) { return d.b1 = _this.aim; }); break; } }; CategoryChart.$t = markType(CategoryChart, 'CategoryChart', XYChart.$); CategoryChart.akf = "ShouldConsiderAutoRotationForInitialLabels"; CategoryChart.akm = "XAxisEnhancedIntervalPreferMoreCategoryLabels"; CategoryChart.ak0 = "YAxisEnhancedIntervalPreferMoreCategoryLabels"; return CategoryChart; }(XYChart)); export { CategoryChart };