@syncfusion/ej2-charts
Version:
Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.
1 lines • 1.87 MB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-svg-base"),require("@syncfusion/ej2-data"),require("@syncfusion/ej2-pdf-export"),require("@syncfusion/ej2-excel-export"),require("@syncfusion/ej2-navigations"),require("@syncfusion/ej2-calendars"),require("@syncfusion/ej2-splitbuttons")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-svg-base","@syncfusion/ej2-data","@syncfusion/ej2-pdf-export","@syncfusion/ej2-excel-export","@syncfusion/ej2-navigations","@syncfusion/ej2-calendars","@syncfusion/ej2-splitbuttons"],t):t((e=e||self).ej={},e.ej2Base,e.ej2SvgBase,e.ej2Data,e.ej2PdfExport,e.ej2ExcelExport,e.ej2Navigations,e.ej2Calendars,e.ej2Splitbuttons)}(this,function(e,ye,fe,T,R,E,_,I,O){"use strict";z=function(e,t){return(z=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}))(e,t)};var z,B,N=function(e,t){function i(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)},t=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;0<=l;l--)(r=e[l])&&(a=(n<3?r(a):3<n?r(t,i,a):r(t,i))||a);return 3<n&&a&&Object.defineProperty(t,i,a),a},V=(B=ye.ChildProperty,N(H,B),t([ye.Property("Line")],H.prototype,"type",void 0),t([ye.Property(null)],H.prototype,"color",void 0),t([ye.Property(1)],H.prototype,"width",void 0),t([ye.Property(null)],H.prototype,"length",void 0),t([ye.Property("")],H.prototype,"dashArray",void 0),H);function H(){return null!==B&&B.apply(this,arguments)||this}W=ye.ChildProperty,N(U,W),t([ye.Property(0)],U.prototype,"x",void 0),t([ye.Property(0)],U.prototype,"y",void 0);var W,j=U;function U(){return null!==W&&W.apply(this,arguments)||this}G=ye.ChildProperty,N(Y,G),t([ye.Property(null)],Y.prototype,"accessibilityDescription",void 0),t([ye.Property(null)],Y.prototype,"accessibilityRole",void 0),t([ye.Property(!0)],Y.prototype,"focusable",void 0),t([ye.Property(0)],Y.prototype,"tabIndex",void 0);var G,X=Y;function Y(){return null!==G&&G.apply(this,arguments)||this}N($,Z=X),t([ye.Property(null)],$.prototype,"accessibilityDescriptionFormat",void 0);var Z,Q=$;function $(){return null!==Z&&Z.apply(this,arguments)||this}K=ye.ChildProperty,N(ee,K),t([ye.Property("Normal")],ee.prototype,"fontStyle",void 0),t([ye.Property("16px")],ee.prototype,"size",void 0),t([ye.Property("Normal")],ee.prototype,"fontWeight",void 0),t([ye.Property("")],ee.prototype,"color",void 0),t([ye.Property("Center")],ee.prototype,"textAlignment",void 0),t([ye.Property("Segoe UI")],ee.prototype,"fontFamily",void 0),t([ye.Property(1)],ee.prototype,"opacity",void 0),t([ye.Property("Wrap")],ee.prototype,"textOverflow",void 0);var K,J=ee;function ee(){return null!==K&&K.apply(this,arguments)||this}te=ye.ChildProperty,N(oe,te),t([ye.Property("Normal")],oe.prototype,"fontStyle",void 0),t([ye.Property("16px")],oe.prototype,"size",void 0),t([ye.Property("Normal")],oe.prototype,"fontWeight",void 0),t([ye.Property("")],oe.prototype,"color",void 0),t([ye.Property("Center")],oe.prototype,"textAlignment",void 0),t([ye.Property("Segoe UI")],oe.prototype,"fontFamily",void 0),t([ye.Property(1)],oe.prototype,"opacity",void 0);var te,ie=oe;function oe(){return null!==te&&te.apply(this,arguments)||this}re=ye.ChildProperty,N(ae,re),t([ye.Property(null)],ae.prototype,"text",void 0),t([ye.Complex({fontFamily:null,size:"16px",fontStyle:"Normal",fontWeight:"600",color:null},J)],ae.prototype,"textStyle",void 0),t([ye.Property(null)],ae.prototype,"hoverTextFormat",void 0);var re,ne=ae;function ae(){return null!==re&&re.apply(this,arguments)||this}le=ye.ChildProperty,N(he,le),t([ye.Property("")],he.prototype,"color",void 0),t([ye.Property(1)],he.prototype,"width",void 0),t([ye.Property("")],he.prototype,"dashArray",void 0);var le,se=he;function he(){return null!==le&&le.apply(this,arguments)||this}ce=ye.ChildProperty,N(pe,ce),t([ye.Property(0)],pe.prototype,"x",void 0),t([ye.Property(0)],pe.prototype,"y",void 0);var ce,de=pe;function pe(){return null!==ce&&ce.apply(this,arguments)||this}ue=ye.ChildProperty,N(me,ue),t([ye.Property(ye.Browser.isDevice?5:10)],me.prototype,"left",void 0),t([ye.Property(ye.Browser.isDevice?5:10)],me.prototype,"right",void 0),t([ye.Property(ye.Browser.isDevice?5:10)],me.prototype,"top",void 0),t([ye.Property(ye.Browser.isDevice?5:10)],me.prototype,"bottom",void 0);var ue,ge=me;function me(){return null!==ue&&ue.apply(this,arguments)||this}xe=ye.ChildProperty,N(Fe,xe),t([ye.Property(!0)],Fe.prototype,"enable",void 0),t([ye.Property(1e3)],Fe.prototype,"duration",void 0),t([ye.Property(0)],Fe.prototype,"delay",void 0);var xe,Se=Fe;function Fe(){return null!==xe&&xe.apply(this,arguments)||this}Ce=ye.ChildProperty,N(Le,Ce),t([ye.Property(!1)],Le.prototype,"enable",void 0),t([ye.Property(!0)],Le.prototype,"enableMarker",void 0),t([ye.Property(!1)],Le.prototype,"shared",void 0),t([ye.Property(!1)],Le.prototype,"split",void 0),t([ye.Property(!1)],Le.prototype,"followPointer",void 0),t([ye.Property(null)],Le.prototype,"fill",void 0),t([ye.Property(null)],Le.prototype,"header",void 0),t([ye.Property(null)],Le.prototype,"opacity",void 0),t([ye.Complex({fontFamily:null,size:null,fontStyle:"Normal",fontWeight:null,color:null},J)],Le.prototype,"textStyle",void 0),t([ye.Property(null)],Le.prototype,"format",void 0),t([ye.Property(null)],Le.prototype,"template",void 0),t([ye.Property(!0)],Le.prototype,"enableAnimation",void 0),t([ye.Property(300)],Le.prototype,"duration",void 0),t([ye.Property(1e3)],Le.prototype,"fadeOutDuration",void 0),t([ye.Property("Move")],Le.prototype,"fadeOutMode",void 0),t([ye.Property(!1)],Le.prototype,"enableTextWrap",void 0),t([ye.Property(!0)],Le.prototype,"showNearestPoint",void 0),t([ye.Property(0)],Le.prototype,"distance",void 0),t([ye.Complex({color:null,width:null},se)],Le.prototype,"border",void 0),t([ye.Complex({x:null,y:null},j)],Le.prototype,"location",void 0),t([ye.Property(!1)],Le.prototype,"enableHighlight",void 0),t([ye.Property(!1)],Le.prototype,"showNearestTooltip",void 0),t([ye.Property(!0)],Le.prototype,"showHeaderLine",void 0);var Ce,we=Le;function Le(){return null!==Ce&&Ce.apply(this,arguments)||this}Ae=ye.ChildProperty,N(Me,Ae),t([ye.Property(null)],Me.prototype,"fill",void 0),t([ye.Complex({color:"",width:0},se)],Me.prototype,"border",void 0),t([ye.Property("Gap")],Me.prototype,"mode",void 0);var Ae,Pe=Me;function Me(){return null!==Ae&&Ae.apply(this,arguments)||this}ke=ye.ChildProperty,N(Te,ke),t([ye.Property(0)],Te.prototype,"series",void 0),t([ye.Property(0)],Te.prototype,"point",void 0);var ke,De=Te;function Te(){return null!==ke&&ke.apply(this,arguments)||this}Re=ye.ChildProperty,N(_e,Re),t([ye.Property(0)],_e.prototype,"topLeft",void 0),t([ye.Property(0)],_e.prototype,"topRight",void 0),t([ye.Property(0)],_e.prototype,"bottomLeft",void 0),t([ye.Property(0)],_e.prototype,"bottomRight",void 0);var Re,Ee=_e;function _e(){return null!==Re&&Re.apply(this,arguments)||this}Ie=ye.ChildProperty,N(ze,Ie),t([ye.Property(0)],ze.prototype,"left",void 0),t([ye.Property(0)],ze.prototype,"right",void 0),t([ye.Property(0)],ze.prototype,"top",void 0),t([ye.Property(0)],ze.prototype,"bottom",void 0);var Ie,Oe=ze;function ze(){return null!==Ie&&Ie.apply(this,arguments)||this}Be=ye.ChildProperty,N(Ve,Be),t([ye.Property("transparent")],Ve.prototype,"color",void 0),t([ye.Property(0)],Ve.prototype,"width",void 0),t([ye.Property(.8)],Ve.prototype,"cornerRadius",void 0);var Be,Ne=Ve;function Ve(){return null!==Be&&Be.apply(this,arguments)||this}He=ye.ChildProperty,N(je,He),t([ye.Property("Normal")],je.prototype,"fontStyle",void 0),t([ye.Property("15px")],je.prototype,"size",void 0),t([ye.Property("500")],je.prototype,"fontWeight",void 0),t([ye.Property("")],je.prototype,"color",void 0),t([ye.Property("Center")],je.prototype,"textAlignment",void 0),t([ye.Property("Segoe UI")],je.prototype,"fontFamily",void 0),t([ye.Property(1)],je.prototype,"opacity",void 0),t([ye.Property("Wrap")],je.prototype,"textOverflow",void 0),t([ye.Property("Top")],je.prototype,"position",void 0),t([ye.Property(0)],je.prototype,"x",void 0),t([ye.Property(0)],je.prototype,"y",void 0),t([ye.Property("transparent")],je.prototype,"background",void 0),t([ye.Complex({},Ne)],je.prototype,"border",void 0),t([ye.Complex({},X)],je.prototype,"accessibility",void 0);var He,We=je;function je(){return null!==He&&He.apply(this,arguments)||this}N(Xe,Ue=J),t([ye.Property("Top")],Xe.prototype,"position",void 0),t([ye.Property(0)],Xe.prototype,"x",void 0),t([ye.Property(0)],Xe.prototype,"y",void 0);var Ue,Ge=Xe;function Xe(){return null!==Ue&&Ue.apply(this,arguments)||this}Ye=ye.ChildProperty,N(qe,Ye),t([ye.Complex({},se)],qe.prototype,"border",void 0),t([ye.Property("transparent")],qe.prototype,"background",void 0),t([ye.Property(1)],qe.prototype,"opacity",void 0),t([ye.Property(null)],qe.prototype,"backgroundImage",void 0),t([ye.Property(null)],qe.prototype,"width",void 0),t([ye.Complex({left:0,right:0,top:0,bottom:0},ge)],qe.prototype,"margin",void 0);var Ye,Ze=qe;function qe(){return null!==Ye&&Ye.apply(this,arguments)||this}Qe=ye.ChildProperty,N(Ke,Qe),t([ye.Property(!1)],Ke.prototype,"enable",void 0),t([ye.Property(null)],Ke.prototype,"minY",void 0),t([ye.Property(null)],Ke.prototype,"maxY",void 0),t([ye.Property(null)],Ke.prototype,"fill",void 0);var Qe,$e=Ke;function Ke(){return null!==Qe&&Qe.apply(this,arguments)||this}Je=ye.ChildProperty,N(tt,Je),t([ye.Property("Years")],tt.prototype,"intervalType",void 0),t([ye.Property(1)],tt.prototype,"interval",void 0),t([ye.Property(null)],tt.prototype,"text",void 0),t([ye.Property(!1)],tt.prototype,"selected",void 0);var Je,et=tt;function tt(){return null!==Je&&Je.apply(this,arguments)||this}it=ye.ChildProperty,N(rt,it),t([ye.Property(43)],rt.prototype,"height",void 0),t([ye.Property("Bottom")],rt.prototype,"position",void 0),t([ye.Collection([],et)],rt.prototype,"periods",void 0);var it,ot=rt;function rt(){return null!==it&&it.apply(this,arguments)||this}nt=ye.ChildProperty,N(lt,nt),t([ye.Property(!1)],lt.prototype,"enable",void 0),t([ye.Property(!0)],lt.prototype,"enableMarker",void 0),t([ye.Property(!1)],lt.prototype,"shared",void 0),t([ye.Property(null)],lt.prototype,"fill",void 0),t([ye.Property(null)],lt.prototype,"header",void 0),t([ye.Property(.75)],lt.prototype,"opacity",void 0),t([ye.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},J)],lt.prototype,"textStyle",void 0),t([ye.Property(null)],lt.prototype,"format",void 0),t([ye.Property(null)],lt.prototype,"template",void 0),t([ye.Property(!0)],lt.prototype,"enableAnimation",void 0),t([ye.Property(300)],lt.prototype,"duration",void 0),t([ye.Property(1e3)],lt.prototype,"fadeOutDuration",void 0),t([ye.Property("Move")],lt.prototype,"fadeOutMode",void 0),t([ye.Property(!1)],lt.prototype,"enableTextWrap",void 0),t([ye.Property(!0)],lt.prototype,"showNearestPoint",void 0),t([ye.Complex({color:null,width:null},se)],lt.prototype,"border",void 0),t([ye.Property("Fixed")],lt.prototype,"position",void 0),t([ye.Property(!1)],lt.prototype,"showNearestTooltip",void 0),t([ye.Property(!0)],lt.prototype,"showHeaderLine",void 0);var nt,at=lt;function lt(){return null!==nt&&nt.apply(this,arguments)||this}st=ye.ChildProperty,N(ct,st),t([ye.Property(0)],ct.prototype,"offset",void 0),t([ye.Property("")],ct.prototype,"color",void 0),t([ye.Property(1)],ct.prototype,"opacity",void 0),t([ye.Property(0)],ct.prototype,"brighten",void 0),t([ye.Property(0)],ct.prototype,"lighten",void 0);var st,ht=ct;function ct(){return null!==st&&st.apply(this,arguments)||this}dt=ye.ChildProperty,N(ut,dt),t([ye.Property(0)],ut.prototype,"x1",void 0),t([ye.Property(0)],ut.prototype,"y1",void 0),t([ye.Property(1)],ut.prototype,"x2",void 0),t([ye.Property(1)],ut.prototype,"y2",void 0),t([ye.Collection([],ht)],ut.prototype,"gradientColorStop",void 0);var dt,pt=ut;function ut(){return null!==dt&&dt.apply(this,arguments)||this}gt=ye.ChildProperty,N(mt,gt),t([ye.Property(.5)],mt.prototype,"cx",void 0),t([ye.Property(.5)],mt.prototype,"cy",void 0),t([ye.Property(.5)],mt.prototype,"r",void 0),t([ye.Property(null)],mt.prototype,"fx",void 0),t([ye.Property(null)],mt.prototype,"fy",void 0),t([ye.Collection([],ht)],mt.prototype,"gradientColorStop",void 0);var gt,N=mt;function mt(){return null!==gt&>.apply(this,arguments)||this}var yt=function(e,t){this.series=e,this.point=t},ft=(Object.defineProperty(bt.prototype,"start",{get:function(){return this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(bt.prototype,"end",{get:function(){return this.mEnd},enumerable:!0,configurable:!0}),Object.defineProperty(bt.prototype,"delta",{get:function(){return this.mEnd-this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(bt.prototype,"median",{get:function(){return this.mStart+(this.mEnd-this.mStart)/2},enumerable:!0,configurable:!0}),bt);function bt(e,t){e<t?(this.mStart=e,this.mEnd=t):(this.mStart=t,this.mEnd=e)}xt.prototype.calculateNumericNiceInterval=function(e,t,i){var o=ar(i,e),r=t/o;if(ye.isNullOrUndefined(e.desiredIntervals)||!this.isAutoIntervalOnBothAxis(e))for(var n=Math.pow(10,Math.floor(fo(r,10))),a=0,l=e.intervalDivs;a<l.length;a++){var s=n*l[a];if(o<t/s)break;r=s}return r},xt.prototype.isAutoIntervalOnBothAxis=function(e){return!(e.zoomFactor<1||0<e.zoomPosition)||!e.enableAutoIntervalOnZooming},xt.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),!e.startFromZero&&0<this.isColumn?(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.max=e.doubleRange.end+e.actualRange.interval,e.doubleRange.start-e.actualRange.interval<0&&0<e.doubleRange.start?e.actualRange.min=0:e.actualRange.min=e.doubleRange.start-(this.isStacking?0:e.actualRange.interval)):(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end)},xt.prototype.initializeDoubleRange=function(e){null!==e.minimum?this.min=e.minimum:null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=0),null!==e.maximum?this.max=e.maximum:null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=5),this.min===this.max&&(this.max=-1<e.valueType.indexOf("Category")?this.max:this.min+1),e.doubleRange=new ft(this.min,this.max),e.actualRange={}},xt.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},xt.prototype.calculateRange=function(e){if(this.min=null,this.max=null,!rr(e))for(var t=0,i=e.series;t<i.length;t++){var o=i[t];o.visible&&(this.paddingInterval=0,ye.isNullOrUndefined(o.points)||(e.maxPointLength=o.points.length),e.maxPointLength=o.points.length,!((-1<o.type.indexOf("Column")||-1<o.type.indexOf("Histogram"))&&"Horizontal"===e.orientation||-1<o.type.indexOf("Bar")&&"Vertical"===e.orientation)||"Double"!==o.xAxis.valueType&&"DateTime"!==o.xAxis.valueType||"Auto"!==o.xAxis.rangePadding||(this.paddingInterval=.5*qo(o.xAxis,e.series)),"Horizontal"===e.orientation&&(this.chart.requireInvertedAxis?this.yAxisRange(e,o):this.findMinMax(o.xMin-this.paddingInterval,o.xMax+this.paddingInterval)),"Vertical"===e.orientation)&&(this.isColumn+=-1!==o.type.indexOf("Column")||-1!==o.type.indexOf("Bar")||"Column"===o.drawType?1:0,this.isStacking=-1!==o.type.indexOf("Stacking"),this.chart.requireInvertedAxis?this.findMinMax(o.xMin-this.paddingInterval,o.xMax+this.paddingInterval):this.yAxisRange(e,o))}},xt.prototype.yAxisRange=function(e,t){if(t.dragSettings.enable&&this.chart.dragY&&(this.chart.dragY>=e.visibleRange.max&&(t.yMax=this.chart.dragY+e.visibleRange.interval),this.chart.dragY<=e.visibleRange.min)&&(t.yMin=this.chart.dragY-e.visibleRange.interval),"Waterfall"===t.type){for(var i=0,o=0,r=0;r<t.yData.length;r++)t.intermediateSumIndexes&&-1!==t.intermediateSumIndexes.indexOf(r)||t.sumIndexes&&-1!==t.sumIndexes.indexOf(r)||(o+=t.yData[r]),i<o&&(i=o);this.findMinMax(t.yMin,i)}else this.findMinMax(t.yMin,t.yMax)},xt.prototype.findMinMax=function(e,t){(null===this.min||this.min>e)&&(this.min=e),(null===this.max||this.max<t)&&(this.max=t),this.max===this.min&&this.max<0&&this.min<0&&(this.max=0)},xt.prototype.applyRangePadding=function(e,t){var i,o,r=e.actualRange.min,n=e.actualRange.max;rr(e)||(i=e.actualRange.interval,"Additional"===(o=e.getRangePadding(this.chart))||"Round"===o?this.findAdditional(e,r,n,i,t):"Normal"===o?this.findNormal(e,r,n,i,t):this.updateActualRange(e,r,n,i)),e.actualRange.delta=e.actualRange.max-e.actualRange.min,this.calculateVisibleRange(t,e)},xt.prototype.updateActualRange=function(e,t,i,o){e.actualRange={min:null!=e.minimum?e.minimum:t,max:null!=e.maximum?e.maximum:i,interval:null!=e.interval?e.interval:o,delta:e.actualRange.delta}},xt.prototype.findAdditional=function(e,t,i,o,r){t=Math.floor(t/o)*o,i=Math.ceil(i/o)*o;"Additional"===e.rangePadding&&(t-=o,i+=o),ye.isNullOrUndefined(e.desiredIntervals)||(o=this.calculateNumericNiceInterval(e,i-t,r)),this.updateActualRange(e,t,i,o)},xt.prototype.findNormal=function(e,t,i,o,r){var n,a=t,i=(t<0?(o+(n=t+.05*t)%o<=.365*o&&(n-=o),n%o<(a=0)&&(n=n-o-n%o)):0<(n=t<5/6*i?0:t-.5*(i-t))%o&&(n-=n%o),o-(t=0<i?i+.05*(i-a):i-.05*(i-a))%o<=.365*o&&(t+=o),e.doubleRange=new ft(n,t=0<t%o?t+o-t%o:t),i+Math.abs(i-a)*this.maxRangePadding);(0===n||n<0&&t<0)&&(o=this.calculateNumericNiceInterval(e,e.doubleRange.delta,r),t=Math.ceil(t/o)*o),i<t&&(t=Math.ceil(i/o)*o),this.updateActualRange(e,n,t,o)},xt.prototype.calculateVisibleRange=function(e,t){t.visibleRange={max:t.actualRange.max,min:t.actualRange.min,delta:t.actualRange.delta,interval:t.actualRange.interval},"Cartesian"===this.chart.chartAreaType&&(i=!ye.isNullOrUndefined(t.zoomingScrollBar)&&t.zoomingScrollBar.isLazyLoad,t.zoomFactor<1||0<t.zoomPosition)&&!i&&(t.calculateVisibleRangeOnZooming(),t.visibleRange.interval=t.enableAutoIntervalOnZooming?this.calculateNumericNiceInterval(t,t.doubleRange.delta,e):t.visibleRange.interval);var i=(t.visibleRange.max-t.visibleRange.min)%t.visibleRange.interval;if(0!=i&&!isNaN(i)&&"Double"===t.valueType&&"Vertical"===t.orientation&&"Auto"===t.rangePadding){for(var o=void 0,r=t.visibleRange.min;r<=t.visibleRange.max&&o!==r;r+=t.visibleRange.interval)o=r;o<t.visibleRange.max&&(t.visibleRange.max=o+t.visibleRange.interval)}t.triggerRangeRender(this.chart,t.visibleRange.min,t.visibleRange.max,t.visibleRange.interval)},xt.prototype.calculateVisibleLabels=function(e,t){e.visibleLabels=[];var i,o,r=e.visibleRange.min,n=(!("chart"===t.getModuleName()&&"PolarRadar"===t.chartAreaType)&&(e.zoomFactor<1||0<e.zoomPosition||this.paddingInterval)&&(r=e.visibleRange.min-e.visibleRange.min%e.visibleRange.interval),this.getFormat(e)),a=null!==n.match("{value}"),l=0,s=0;for(e.labelFormat&&-1<e.labelFormat.indexOf("n")&&(s=parseInt(e.labelFormat.substring(1,e.labelFormat.length),10)),e.format=t.intl.getNumberFormat({format:a?"":n,useGrouping:t.useGroupingSeparator}),e.startLabel=e.format(e.visibleRange.min),e.endLabel=e.format(e.visibleRange.max),e.visibleRange.interval&&0<=(e.visibleRange.interval+"").indexOf(".")&&(l=(e.visibleRange.interval+"").split(".")[1].length);r<=e.visibleRange.max&&o!==r;r+=e.visibleRange.interval)o=r,i=ye.extend({},ye.getValue("properties",e.labelStyle),null,!0),xo(r,e.visibleRange)&&or(t,r,this.formatValue(e,a,n,r),i,e);r&&0<=(r+"").indexOf(".")&&10<(r+"").split(".")[1].length&&(r=(r+"").split(".")[1].length>(s||l)?+r.toFixed(s||l):r)<=e.visibleRange.max&&or(t,r,this.formatValue(e,a,n,r),i,e),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},xt.prototype.getFormat=function(e){return e.labelFormat?0===e.labelFormat.indexOf("p")&&-1===e.labelFormat.indexOf("{value}")&&e.isStack100?"{value}%":e.labelFormat:e.isStack100?"{value}%":""},xt.prototype.formatValue=function(e,t,i,o){var r=o%1?Number(o.toLocaleString("en-US").split(",").join("")):o;return t?i.replace("{value}",e.format(r)):i?e.format(o):e.format(r)},xt.prototype.getModuleName=function(){return"Double"},xt.prototype.destroy=function(){};var vt=xt;function xt(e){this.isColumn=0,this.isStacking=!1,this.maxRangePadding=.15,this.chart=e}var St,Ft,Ct="legendClick",wt="load",Lt="animationComplete",At="legendRender",Pt="textRender",Mt="pointRender",kt="sharedTooltipRender",Dt="seriesRender",Tt="axisLabelRender",Rt="axisLabelClick",Et="axisRangeCalculated",_t="axisMultiLabelRender",It="tooltipRender",Ot="chartMouseMove",zt="chartMouseClick",Bt="chartDoubleClick",Nt="pointClick",Vt="pointDoubleClick",Ht="pointMove",Wt="chartMouseLeave",jt="chartMouseDown",Ut="chartMouseUp",Gt="zoomComplete",Xt="dragComplete",Yt="selectionComplete",Zt="resized",qt="beforeResize",Qt="beforePrint",$t="annotationRender",Kt="scrollStart",Jt="scrollEnd",ei="scrollChanged",ti="stockEventRender",ii="multiLevelLabelClick",oi="dragStart",ri="dragEnd",ni=/~\d+~/g,ai=/\^\d+\^/g,li="beforeExport",si="afterExport",hi="bulletChartMouseClick",ci="onZooming",t=(St=function(e,t){return(St=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}))(e,t)},function(e,t){function i(){this.constructor=e}St(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),i=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;0<=l;l--)(r=e[l])&&(a=(n<3?r(a):3<n?r(t,i,a):r(t,i))||a);return 3<n&&a&&Object.defineProperty(t,i,a),a},di=(Ft=ye.ChildProperty,t(pi,Ft),i([ye.Property("0")],pi.prototype,"x",void 0),i([ye.Property("0")],pi.prototype,"y",void 0),i([ye.Property(null)],pi.prototype,"content",void 0),i([ye.Property("Center")],pi.prototype,"horizontalAlignment",void 0),i([ye.Property("Pixel")],pi.prototype,"coordinateUnits",void 0),i([ye.Property("Chart")],pi.prototype,"region",void 0),i([ye.Property("Middle")],pi.prototype,"verticalAlignment",void 0),i([ye.Property(null)],pi.prototype,"xAxisName",void 0),i([ye.Property(null)],pi.prototype,"yAxisName",void 0),i([ye.Property(null)],pi.prototype,"description",void 0),i([ye.Complex({},X)],pi.prototype,"accessibility",void 0),pi);function pi(){return null!==Ft&&Ft.apply(this,arguments)||this}ui=ye.ChildProperty,t(mi,ui),i([ye.Property("")],mi.prototype,"color",void 0),i([ye.Property(1)],mi.prototype,"width",void 0),i([ye.Property("Rectangle")],mi.prototype,"type",void 0);var ui,gi=mi;function mi(){return null!==ui&&ui.apply(this,arguments)||this}yi=ye.ChildProperty,t(bi,yi),i([ye.Property(null)],bi.prototype,"start",void 0),i([ye.Property(null)],bi.prototype,"end",void 0),i([ye.Property("")],bi.prototype,"text",void 0),i([ye.Property(null)],bi.prototype,"maximumTextWidth",void 0),i([ye.Property(null)],bi.prototype,"customAttributes",void 0),i([ye.Property("")],bi.prototype,"type",void 0);var yi,fi=bi;function bi(){return null!==yi&&yi.apply(this,arguments)||this}vi=ye.ChildProperty,t(Si,vi),i([ye.Property(!0)],Si.prototype,"visible",void 0),i([ye.Property(!1)],Si.prototype,"startFromAxis",void 0),i([ye.Property(null)],Si.prototype,"start",void 0),i([ye.Property(null)],Si.prototype,"end",void 0),i([ye.Property(null)],Si.prototype,"size",void 0),i([ye.Property("#808080")],Si.prototype,"color",void 0),i([ye.Property(null)],Si.prototype,"dashArray",void 0),i([ye.Property("Auto")],Si.prototype,"sizeType",void 0),i([ye.Property(!1)],Si.prototype,"isRepeat",void 0),i([ye.Property(null)],Si.prototype,"repeatEvery",void 0),i([ye.Property(null)],Si.prototype,"repeatUntil",void 0),i([ye.Property(!1)],Si.prototype,"isSegmented",void 0),i([ye.Property(null)],Si.prototype,"segmentStart",void 0),i([ye.Property(null)],Si.prototype,"segmentEnd",void 0),i([ye.Property(null)],Si.prototype,"segmentAxisName",void 0),i([ye.Complex({color:"transparent",width:1},se)],Si.prototype,"border",void 0),i([ye.Property("")],Si.prototype,"text",void 0),i([ye.Property(null)],Si.prototype,"rotation",void 0),i([ye.Property("Middle")],Si.prototype,"horizontalAlignment",void 0),i([ye.Property("Middle")],Si.prototype,"verticalAlignment",void 0),i([ye.Complex({size:"12px",color:null,fontStyle:"Normal",fontWeight:"400",fontFamily:null},J)],Si.prototype,"textStyle",void 0),i([ye.Property("Behind")],Si.prototype,"zIndex",void 0),i([ye.Property(1)],Si.prototype,"opacity",void 0),i([ye.Property("")],Si.prototype,"imageUrl",void 0);var vi,xi=Si;function Si(){return null!==vi&&vi.apply(this,arguments)||this}Fi=ye.ChildProperty,t(wi,Fi),i([ye.Property("Center")],wi.prototype,"alignment",void 0),i([ye.Property("Wrap")],wi.prototype,"overflow",void 0),i([ye.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},J)],wi.prototype,"textStyle",void 0),i([ye.Complex({color:null,width:1,type:"Rectangle"},gi)],wi.prototype,"border",void 0),i([ye.Collection([],fi)],wi.prototype,"categories",void 0);var Fi,Ci=wi;function wi(){return null!==Fi&&Fi.apply(this,arguments)||this}Li=ye.ChildProperty,t(Pi,Li),i([ye.Property(null)],Pi.prototype,"minimum",void 0),i([ye.Property(null)],Pi.prototype,"maximum",void 0);var Li,Ai=Pi;function Pi(){return null!==Li&&Li.apply(this,arguments)||this}Mi=ye.ChildProperty,t(Di,Mi),i([ye.Property(!1)],Di.prototype,"enable",void 0),i([ye.Property(null)],Di.prototype,"pointsLength",void 0),i([ye.Complex({},Ai)],Di.prototype,"range",void 0),i([ye.Property(null)],Di.prototype,"trackColor",void 0),i([ye.Property(0)],Di.prototype,"scrollbarRadius",void 0),i([ye.Property(null)],Di.prototype,"scrollbarColor",void 0),i([ye.Property(0)],Di.prototype,"trackRadius",void 0),i([ye.Property(null)],Di.prototype,"gripColor",void 0),i([ye.Property(16)],Di.prototype,"height",void 0),i([ye.Property(!0)],Di.prototype,"enableZoom",void 0),i([ye.Property("PlaceNextToAxisLine")],Di.prototype,"position",void 0);var Mi,ki=Di;function Di(){return null!==Mi&&Mi.apply(this,arguments)||this}Ti=ye.ChildProperty,t(Ei,Ti),i([ye.Property("Far")],Ei.prototype,"horizontalAlignment",void 0),i([ye.Property("Top")],Ei.prototype,"verticalAlignment",void 0),i([ye.Property(0)],Ei.prototype,"x",void 0),i([ye.Property(0)],Ei.prototype,"y",void 0),i([ye.Property(!1)],Ei.prototype,"draggable",void 0);var Ti,Ri=Ei;function Ei(){return null!==Ti&&Ti.apply(this,arguments)||this}_i=ye.ChildProperty,t(Ii,_i),i([ye.Property(!1)],Ii.prototype,"visible",void 0),i([ye.Property("transparent")],Ii.prototype,"fill",void 0),i([ye.Property(null)],Ii.prototype,"format",void 0),i([ye.Property(0)],Ii.prototype,"angle",void 0),i([ye.Property(5)],Ii.prototype,"rx",void 0),i([ye.Property(5)],Ii.prototype,"ry",void 0),i([ye.Complex({left:5,right:5,top:5,bottom:5},ge)],Ii.prototype,"margin",void 0),i([ye.Complex({width:null,color:null},se)],Ii.prototype,"border",void 0),i([ye.Complex({size:null,color:null,fontStyle:null,fontWeight:"Bold",fontFamily:null},ie)],Ii.prototype,"font",void 0);var _i,t=Ii;function Ii(){return null!==_i&&_i.apply(this,arguments)||this}Oi=function(e,t){return(Oi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}))(e,t)};var Oi,zi,i=function(e,t){function i(){this.constructor=e}Oi(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)},o=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;0<=l;l--)(r=e[l])&&(a=(n<3?r(a):3<n?r(t,i,a):r(t,i))||a);return 3<n&&a&&Object.defineProperty(t,i,a),a},Bi=(zi=ye.ChildProperty,i(Ni,zi),Ni.prototype.computeSize=function(e,t,i,o){var r=0;e.visible&&e.internalVisibility&&(r+=e.findTickSize(e.crossInAxis)+("Right"===e.scrollbarSettings.position||"Left"===e.scrollbarSettings.position?0:t)+e.findLabelSize(e.crossInAxis,5,i,o)+.5*e.lineStyle.width),(e.isAxisOpposedPosition?this.farSizes:this.nearSizes).push(r)},o([ye.Property("100%")],Ni.prototype,"height",void 0),o([ye.Complex({},se)],Ni.prototype,"border",void 0),Ni);function Ni(){var e=null!==zi&&zi.apply(this,arguments)||this;return e.axes=[],e.nearSizes=[],e.farSizes=[],e.insideFarSizes=[],e.insideNearSizes=[],e}Vi=ye.ChildProperty,i(Wi,Vi),Wi.prototype.computeSize=function(e,t,i,o){var r=0;e.visible&&e.internalVisibility&&(r+=e.findTickSize(e.crossInAxis)+("Top"===e.scrollbarSettings.position||"Bottom"===e.scrollbarSettings.position?0:t)+e.findLabelSize(e.crossInAxis,5,i,o)+.5*e.lineStyle.width),(e.isAxisOpposedPosition?this.farSizes:this.nearSizes).push(r)},o([ye.Property("100%")],Wi.prototype,"width",void 0),o([ye.Complex({},se)],Wi.prototype,"border",void 0);var Vi,Hi=Wi;function Wi(){var e=null!==Vi&&Vi.apply(this,arguments)||this;return e.axes=[],e.nearSizes=[],e.farSizes=[],e.insideFarSizes=[],e.insideNearSizes=[],e.padding=0,e}ji=ye.ChildProperty,i(Gi,ji),o([ye.Property(1)],Gi.prototype,"width",void 0),o([ye.Property("")],Gi.prototype,"dashArray",void 0),o([ye.Property(null)],Gi.prototype,"color",void 0);var ji,Ui=Gi;function Gi(){return null!==ji&&ji.apply(this,arguments)||this}Xi=ye.ChildProperty,i(Zi,Xi),o([ye.Property(.7)],Zi.prototype,"width",void 0),o([ye.Property("")],Zi.prototype,"dashArray",void 0),o([ye.Property(null)],Zi.prototype,"color",void 0);var Xi,Yi=Zi;function Zi(){return null!==Xi&&Xi.apply(this,arguments)||this}qi=ye.ChildProperty,i($i,qi),o([ye.Property(1)],$i.prototype,"width",void 0),o([ye.Property("")],$i.prototype,"dashArray",void 0),o([ye.Property(null)],$i.prototype,"color",void 0);var qi,Qi=$i;function $i(){return null!==qi&&qi.apply(this,arguments)||this}Ki=ye.ChildProperty,i(eo,Ki),o([ye.Property(1)],eo.prototype,"width",void 0),o([ye.Property(5)],eo.prototype,"height",void 0),o([ye.Property(null)],eo.prototype,"color",void 0);var Ki,Ji=eo;function eo(){return null!==Ki&&Ki.apply(this,arguments)||this}to=ye.ChildProperty,i(oo,to),o([ye.Property(.7)],oo.prototype,"width",void 0),o([ye.Property(5)],oo.prototype,"height",void 0),o([ye.Property(null)],oo.prototype,"color",void 0);var to,io=oo;function oo(){return null!==to&&to.apply(this,arguments)||this}ro=ye.ChildProperty,i(ao,ro),o([ye.Property(!1)],ao.prototype,"enable",void 0),o([ye.Property(null)],ao.prototype,"fill",void 0),o([ye.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},J)],ao.prototype,"textStyle",void 0);var ro,no=ao;function ao(){return null!==ro&&ro.apply(this,arguments)||this}lo=ye.ChildProperty,i(r,lo),r.prototype.findTickSize=function(e){return"Inside"!==this.tickPosition&&(!e||e.visibleRange&&!this.isInside(e.visibleRange))?this.majorTickLines.height:0},r.prototype.isInside=function(e){return vo(this.crossAt,e)||!this.isAxisOpposedPosition&&this.crossAt>=e.max||this.isAxisOpposedPosition&&this.crossAt<=e.min},r.prototype.findLabelSize=function(e,t,i,o){var r=0,n="Horizontal"===this.orientation,n=(this.title&&(a=this.titleRotation,r=ye.isNullOrUndefined(a)?(this.titleSize=fe.measureText(this.title,this.titleStyle,o.themeStyle.axisTitleFont),this.titleSize.height+t):(this.titleSize=yo(this.titleStyle,this.title,a,o,o.themeStyle.axisTitleFont),("Vertical"===this.orientation?this.titleSize.width:this.titleSize.height)+t),this.rect.width||this.rect.height)&&(a=n?this.rect.width:this.rect.height,this.titleCollection=Xr(this.title,this.titleStyle,a,o.enableRtl,o.themeStyle.axisTitleFont),r*=this.titleCollection.length),r+t+this.titlePadding+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)+this.multiLevelLabelHeight);if(e&&this.placeNextToAxisLine){var a=e.visibleRange,l="Horizontal"===e.orientation?e.rect.width:e.rect.height;if(!a||!l)return 0;this.isInside(a)&&(n=(e=(e=this.findDifference(e))*((l-((e=e*(l/a.delta))<n?n-e:0))/a.delta))<n?n-e:0)}l=""!==this.title&&5!==this.titlePadding?this.titlePadding:0;return(this.isAxisOpposedPosition?i.insideFarSizes:i.insideNearSizes).push(n),"Inside"===this.labelPosition?(t=-1<o.axes.indexOf(this)?-5:5,!(this.isAxisOpposedPosition&&i.farSizes.length<1||!this.isAxisOpposedPosition&&i.nearSizes.length<1)&&this.isAxisOpposedPosition?r+t+l+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)+this.multiLevelLabelHeight:r+t+l):n},r.prototype.updateCrossValue=function(){var e=this.crossAt;if(null===e||!this.isInside(this.crossInAxis.visibleRange))return this.updatedRect=this.rect,null;var t=this.crossInAxis.visibleRange;this.isAxisOpposedPosition?this.crossAt<t.min&&(e=t.min):this.crossAt>t.max&&(e=t.max),this.updatedRect=ye.extend({},this.rect,null,!0),"Horizontal"===this.orientation?(e=this.crossInAxis.rect.height-Eo(e,this.crossInAxis)*this.crossInAxis.rect.height,this.updatedRect.y=this.crossInAxis.rect.y+e):(e=Eo(e,this.crossInAxis)*this.crossInAxis.rect.width,this.updatedRect.x=this.crossInAxis.rect.x+e)},r.prototype.findDifference=function(e){var t=0,t=this.isAxisOpposedPosition?e.isAxisInverse?e.visibleRange.min:e.visibleRange.max:e.isAxisInverse?e.visibleRange.max:e.visibleRange.min;return Math.abs(this.crossAt-t)},r.prototype.calculateVisibleRangeOnZooming=function(){var e,t,i;nr(this)&&(e=this.actualRange,i=t=void 0,i=this.isAxisInverse?(t=this.actualRange.max-this.zoomPosition*this.actualRange.delta)-this.zoomFactor*this.actualRange.delta:(t=this.actualRange.min+this.zoomPosition*this.actualRange.delta)+this.zoomFactor*this.actualRange.delta,t<e.min&&(i+=e.min-t,t=e.min),i>e.max&&(t-=i-e.max,i=e.max),this.doubleRange=new ft(t,i),this.visibleRange={min:this.doubleRange.start,max:this.doubleRange.end,delta:this.doubleRange.delta,interval:this.visibleRange.interval})},r.prototype.triggerRangeRender=function(e,t,i,o){t={cancel:!1,name:Et,axis:this,minimum:t,maximum:i,interval:o};e.trigger(Et,t),t.cancel||(this.visibleRange={min:t.minimum,max:t.maximum,interval:t.interval,delta:t.maximum-t.minimum})},r.prototype.getRangePadding=function(e){var t=this.rangePadding;if("Auto"===t)switch(this.orientation){case"Horizontal":t=e.requireInvertedAxis?this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal":"None";break;case"Vertical":t=e.requireInvertedAxis?"None":this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal"}return t},r.prototype.getMaxLabelWidth=function(d){var p,u,g,m=this,y=0,f=!1,b=(this.angle=this.labelRotation,this.maxLabelSize=new fe.Size(0,0),this.labelIntersectAction);if(this.labelTemplate&&!ye.isNullOrUndefined(this.labelTemplate))this.getMaxTemplateLabelWidth(d);else{for(var e,v=this,t=0,i=this.visibleLabels.length;t<i;t++)!function(e){g=v.visibleLabels[e],(u=uo(g.originalText))?(g.size=fe.measureText(g.originalText.replace(/<br>/g," "),v.labelStyle,d.themeStyle.axisLabelFont),g.breakLabelSize=fe.measureText(v.enableTrim?g.text.join("<br>"):g.originalText,v.labelStyle,d.themeStyle.axisLabelFont)):v.enableWrap?(o=d.initialClipRect.height/v.visibleLabels.length,g.text=Zr(g.text,v.maximumLabelWidth,v.labelStyle,d.enableRtl,null,null,d.themeStyle.axisLabelFont,"Vertical"===v.orientation?o:null),i=t=0,g.text.forEach(function(e){e=fe.measureText(e,m.labelStyle,d.themeStyle.axisLabelFont);t=Math.max(t,e.width),i+=e.height}),g.size.width=t,g.size.height=i):-90!==v.angle&&90!==v.angle&&270!==v.angle&&-270!==v.angle||"Vertical"!==v.orientation?g.size=fe.measureText(g.text,v.labelStyle,d.themeStyle.axisLabelFont):g.size=yo(v.labelStyle,g.text,v.angle,d,d.themeStyle.axisLabelFont);var t,i,o=(u?g.breakLabelSize:g.size).width,o=(o>v.maxLabelSize.width&&(v.maxLabelSize.width=o,v.rotatedLabel=g.text),(u?g.breakLabelSize:g.size).height);if(o>v.maxLabelSize.height&&(v.maxLabelSize.height=o),u&&(g.text=v.enableTrim?g.text:g.originalText.split("<br>")),"None"===b||"Hide"===b||"Trim"===b)return;if(("None"!==b||v.angle%360==0)&&"Horizontal"===v.orientation&&0<v.rect.width&&!f){var r=(u?g.breakLabelSize:g.size).width;switch(p=Eo(g.value,v)*v.rect.width+v.rect.x,p-=r/2,"Shift"===v.edgeLabelPlacement&&(0===e&&p<v.rect.x&&(p=v.rect.x),e===v.visibleLabels.length-1)&&p+r>v.rect.x+v.rect.width&&(p=v.rect.x+v.rect.width-r),b){case"MultipleRows":0<e&&v.findMultiRows(e,p,g,u);break;case"Rotate45":case"Rotate90":0<e&&(v.isAxisInverse?y<=p+r:p<=y)&&(v.angle="Rotate45"===b?45:90,f=!0);break;default:if(u){for(var n,a,l=[],s=0;s<g.text.length;s++)if(1<(n=Zr(g.text[s],v.rect.width/v.visibleLabels.length,v.labelStyle,d.enableRtl,null,null,d.themeStyle.axisLabelFont)).length)for(var h=0;h<n.length;h++)a=n[h],l.push(a);else l.push(n[0]);g.text=l}else g.text=Zr(g.text,v.rect.width/v.visibleLabels.length,v.labelStyle,d.enableRtl,null,null,d.themeStyle.axisLabelFont);var c=g.size.height*g.text.length;c>v.maxLabelSize.height&&(v.maxLabelSize.height=c)}y=v.isAxisInverse?p:p+r}}(t);(0!==this.angle&&"Horizontal"===this.orientation||0!==this.angle&&"Vertical"===this.orientation)&&(this.rotatedLabel=ye.isNullOrUndefined(this.rotatedLabel)?"":this.rotatedLabel,e=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle,"Outside"===this.labelPosition&&!e&&uo(this.rotatedLabel)?this.maxLabelSize=new fe.Size(this.maxLabelSize.height,this.maxLabelSize.width):this.maxLabelSize=yo(this.labelStyle,this.rotatedLabel,this.angle,d,d.themeStyle.axisLabelFont)),d.multiLevelLabelModule&&0<this.multiLevelLabels.length&&d.multiLevelLabelModule.getMultilevelLabelsHeight(this)}},r.prototype.getMaxTemplateLabelWidth=function(e){for(var t,i=0,o=!1,r=this.labelIntersectAction,n=0,a=this.visibleLabels.length;n<a;n++){var l=this.visibleLabels[n],s=fr(mr(ye.createElement("div",{id:"_AxisLabelTemplate_",styles:"position:absolute; cursor: default; white-space: nowrap;pointer-events:none; z-index:1;"}),n,this.labelTemplate,e,l),e.redraw),h=s.width,c=s.height;if(l.size=new fe.Size(h,c),h>this.maxLabelSize.width&&(this.maxLabelSize.width=h),c>this.maxLabelSize.height&&(this.maxLabelSize.height=c),"None"!==r&&"Hide"!==r&&("Horizontal"===this.orientation&&0<this.rect.width&&!o)){var d=l.size.width,p=Eo(l.value,this)*this.rect.width+this.rect.x;switch(p-=d/2,"Shift"===this.edgeLabelPlacement&&(0===n&&p<this.rect.x&&(p=this.rect.x),n===this.visibleLabels.length-1)&&p+d>this.rect.x+this.rect.width&&(p=this.rect.x+this.rect.width-d),r){case"Rotate45":case"Rotate90":0<n&&(this.isAxisInverse?i<=p+d:p<=i)&&(this.angle="Rotate45"===r?45:90,o=!0)}i=this.isAxisInverse?p:p+d}}this.maxLabelSize.height=0===this.visibleLabels.length&&this.crosshairTooltip.enable?15.96:this.maxLabelSize.height,0!==this.rect.height&&(this.maxLabelSize.height=Math.min(this.maxLabelSize.height,this.rect.height/2)),0!==this.rect.width&&(this.maxLabelSize.width=Math.min(this.maxLabelSize.width,this.rect.width/2)),0!==this.angle&&"Horizontal"===this.orientation&&(t=this.angle*(Math.PI/180),h=this.maxLabelSize.width,c=this.maxLabelSize.height,this.maxLabelSize=new fe.Size(Math.abs(h*Math.cos(t))+Math.abs(c*Math.sin(t)),Math.abs(h*Math.sin(t))+Math.abs(c*Math.cos(t)))),e.multiLevelLabelModule&&0<this.multiLevelLabels.length&&e.multiLevelLabelModule.getMultilevelLabelsHeight(this)},r.prototype.findMultiRows=function(e,t,i,o){for(var r,n,a,l=[],s=e-1;0<=s;s--)r=this.visibleLabels[s],a=(o?r.breakLabelSize:r.size).width,n=Eo(r.value,this)*this.rect.width+this.rect.x,(this.isAxisInverse?t+i.size.width>n-.5*a:t<n+.5*a)?(l.push(r.index),i.index=i.index>r.index?i.index:r.index+1):i.index=(-1<l.indexOf(r.index)?i:r).index;e=(o?i.breakLabelSize:i.size).height*i.index+5*(i.index-1);e>this.maxLabelSize.height&&(this.maxLabelSize.height=e)},r.prototype.getModule=function(e){"Double"===this.valueType?this.baseModule=new vt(e):this.baseModule=e[Yo(this.valueType)+"Module"]},r.prototype.setIsInversedAndOpposedPosition=function(e){void 0===e&&(e=!1),this.isAxisOpposedPosition=this.opposedPosition||!e&&this.isRTLEnabled&&"Vertical"===this.orientation,this.opposedPosition&&!e&&this.isRTLEnabled&&"Vertical"===this.orientation&&(this.isAxisOpposedPosition=!1),this.isAxisInverse=this.isInversed||this.isRTLEnabled&&"Horizontal"===this.orientation,this.isInversed&&!e&&this.isRTLEnabled&&"Horizontal"===this.orientation&&(this.isAxisInverse=!1)},r.prototype.updateAxis=function(){var e=this.baseModule.chart,t=e.chartAxisLayoutPanel,i=e.axisCollections.indexOf(this),o=be(e.element.id+"AxisInsideCollection"),r=be(e.element.id+"AxisOutsideCollection"),n=(t.element=e.renderer.createGroup({id:e.element.id+"AxisGroup"+i+"Inside"}),e.renderer.createGroup({id:e.element.id+"AxisGroup"+i+"Outside"})),a=t.findAxisPosition(this);t.drawAxis(this,i,a,n,o,r),e.enableCanvas||q(e.enableCanvas,o,t.element,e.redraw)},r.prototype.registerAxisLabelRects=function(e){if(this.visible&&this.internalVisibility&&this.rect&&this.visibleLabels.length)for(var t=this.labelPadding,i=this.majorTickLines.height,o=0;o<this.visibleLabels.length;o++){var r,n,a,l,s=this.visibleLabels[o];s&&s.size&&(n=r=void 0,a=s.size.width,l=s.size.height,"Horizontal"===this.orientation?(r=Eo(s.value,this)*this.rect.width+this.rect.x-a/2,"Shift"===this.edgeLabelPlacement&&(0===o&&r<this.rect.x&&(r=this.rect.x),o===this.visibleLabels.length-1)&&r+a>this.rect.x+this.rect.width&&(r=this.rect.x+this.rect.width-a),n="Inside"===this.labelPosition?this.isAxisOpposedPosition?this.rect.y+t:this.rect.y+this.rect.height-l-t:this.isAxisOpposedPosition?this.rect.y-i-t-l:this.rect.y+this.rect.height+i+t):(n=Eo(s.value,this)*this.rect.height+this.rect.y-l/2,r="Inside"===this.labelPosition?this.isAxisOpposedPosition?this.rect.x+this.rect.width-a-t:this.rect.x+t:this.isAxisOpposedPosition?this.rect.x+this.rect.width+i+t:this.rect.x-i-t-a),s=new fe.Rect(r,n,a,l),e.axisLabelCollections.push(s))}},o([ye.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},J)],r.prototype,"labelStyle",void 0),o([ye.Complex({},no)],r.prototype,"crosshairTooltip",void 0),o([ye.Property("")],r.prototype,"title",void 0),o([ye.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},J)],r.prototype,"titleStyle",void 0),o([ye.Property("")],r.prototype,"labelFormat",void 0),o([ye.Property("")],r.prototype,"skeleton",void 0),o([ye.Property("DateTime")],r.prototype,"skeletonType",void 0),o([ye.Property("Center")],r.prototype,"lineBreakAlignment",void 0),o([ye.Property(0)],r.prototype,"plotOffset",void 0),o([ye.Property(null)],r.prototype,"plotOffsetLeft",void 0),o([ye.Property(null)],r.prototype,"plotOffsetTop",void 0),o([ye.Property(null)],r.prototype,"plotOffsetRight",void 0),o([ye.Property(null)],r.prototype,"plotOffsetBottom",void 0),o([ye.Property(!1)],r.prototype,"isIndexed",void 0),o([ye.Property(10)],r.prototype,"logBase",void 0),o([ye.Property(0)],r.prototype,"columnIndex",void 0),o([ye.Property(0)],r.prototype,"rowIndex",void 0),o([ye.Property(1)],r.prototype,"span",void 0),o([ye.Property(null)],r.prototype,"desiredIntervals",void 0),o([ye.Property(3)],r.prototype,"maximumLabels",void 0),o([ye.Property(1)],r.prototype,"zoomFactor",void 0),o([ye.Property(0)],r.prototype,"zoomPosition",void 0),o([ye.Property(!0)],r.prototype,"enableScrollbarOnZooming",void 0),o([ye.Property(!1)],r.prototype,"opposedPosition",void 0),o([ye.Property(!0)],r.prototype,"enableAutoIntervalOnZooming",void 0),o([ye.Property("Auto")],r.prototype,"rangePadding",void 0),o([ye.Property("Double")],r.prototype,"valueType",void 0),o([ye.Property("Shift")],r.prototype,"edgeLabelPlacement",void 0),o([ye.Property("Auto")],r.prototype,"intervalType",void 0),o([ye.Property("BetweenTicks")],r.prototype,"labelPlacement",void 0),o([ye.Property("Outside")],r.prototype,"tickPosition",void 0),o([ye.Property("Outside")],r.prototype,"labelPosition",void 0),o([ye.Property(null)],r.prototype,"labelTemplate",void 0),o([ye.Property("")],r.prototype,"name",void 0),o([ye.Property(!0)],r.prototype,"visible",void 0),o([ye.Property(0)],r.prototype,"minorTicksPerInterval",void 0),o([ye.Property(0)],r.prototype,"labelRotation",void 0),o([ye.Property(null)],r.prototype,"titleRotation",void 0),o([ye.Property(null)],r.prototype,"crossesAt",void 0),o([ye.Property(!0)],r.prototype,"placeNextToAxisLine",void 0),o([ye.Property(null)],r.prototype,"crossesInAxis",void 0),o([ye.Property(null)],r.prototype,"minimum",void 0),o([ye.Property(null)],r.prototype,"maximum",void 0),o([ye.Property(null)],r.prototype,"interval",void 0),o([ye.Property(34)],r.prototype,"maximumLabelWidth",void 0),o([ye.Property(!1)],r.prototype,"enableTrim",void 0),o([ye.Property(!1)],r.prototype,"enableWrap",void 0),o([ye.Property(5)],r.prototype,"labelPadding",void 0),o([ye.Property(5)],r.prototype,"titlePadding",void 0),o([ye.Complex({},Ji)],r.prototype,"majorTickLines",void 0),o([ye.Complex({},io)],r.prototype,"minorTickLines",void 0),o([ye.Complex({},Ui)],r.prototype,"majorGridLines",void 0),o([ye.Complex({},Yi)],r.prototype,"minorGridLines",void 0),o([ye.Complex({},Qi)],r.prototype,"lineStyle",void 0),o([ye.Property(ye.Browser.isDevice?"Rotate45":"Trim")],r.prototype,"labelIntersectAction",void 0),o([ye.Property(!1)],r.prototype,"isInversed",void 0),o([ye.Property(100)],r.prototype,"coefficient",void 0),o([ye.Property(0)],r.prototype,"startAngle",void 0),o([ye.Property(!0)],r.prototype,"startFromZero",void 0),o([ye.Property(null)],r.prototype,"description",void 0),o([ye.Property(2)],r.prototype,"tabIndex",void 0),o([ye.Collection([],xi)],r.prototype,"stripLines",void 0),o([ye.Collection([],Ci)],r.prototype,"multiLevelLabels",void 0),o([ye.Complex({color:null,width:0,type:"Rectangle"},gi)],r.prototype,"border",void 0),o([ye.Complex({},ki)],r.prototype,"scrollbarSettings",void 0);var lo,so=r;function r(e,t,i,o){e=lo.call(this,e,t,i,o)||this;return e.visibleLabels=[],e.series=[],e.rect=new fe.Rect(void 0,void 0,0,0),e.axisBottomLine=null,e.intervalDivs=[10,5,2,1],e.isStack100=!1,e.crossAt=null,e.updatedRect=null,e.multiLevelLabelHeight=0,e.isChart=!0,e.isIntervalInDecimal=!0,e.titleCollection=[],e.titleSize=new fe.Size(0,0),e.internalVisibility=!0,e.isRTLEnabled=!1,e.angle=e.labelRotation,e}var ho,co=function(e,t,i,o,r,n,a){void 0===r&&(r=new fe.Size(0,0)),void 0===n&&(n=new fe.Size(0,0)),void 0===a&&(a=1),this.text=e,this.originalText=o,this.value=t,this.labelStyle=i,this.size=r,this.breakLabelSize=n,this.index=a},i=(ho=function(e,t){return(ho=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}))(e,t)},function(e,t){function i(){this.constructor=e}ho(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function po(e,n,a){for(var t=ye.extend([],e,null),i=0;i<t.length;i++)for(var o=0;o<n.length;o++)t[i][n[o]]instanceof Date&&(t[i][n[o]]=t[i][n[o]].getTime());return t.sort(function(e,t){for(var i=0,o=0,r=0;r<n.length;r++)i+=e[n[r]],o+=t[n[r]];return!a&&i<o||a&&o<i?-1:i===o?0:1}),t}function uo(e){return-1!==e.indexOf("<br>")}function go(e){for(var t,i=ye.extend([],e.points,null,!0),o=[],r=0,n=0;n<i.length;n++)t=i[n],ye.isNullOrUndefined(t.x)||(t.index=r++,o.push(t));return o}function mo(e,t){var i,o=e.component,r=0,n=0,a="Top"===o.titleStyle.position||"Bottom"===o.titleStyle.position&&!o.legendSettings.visible?15:5;return o.title&&(r=fe.measureText(o.title,o.titleStyle,o.themeStyle.chartTitleFont).height*o.titleCollection.length+a,o.subTitle)&&(n=fe.measureText(o.subTitle,o.subTitleStyle,o.themeStyle.chartSubTitleFont).height*o.subTitleCollection.length),t?"Top"===e.axis.scrollbarSettings.position?(i=o.margin.top+5+(e.height+5)*o.scrollBarModule.topScrollBarCount+("Top"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Top"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.topScrollBarCount++):"Bottom"===e.axis.scrollbarSettings.position&&(i=o.availableSize.height-((e.height+5)*o.scrollBarModule.bottomScrollBarCount+e.height+o.margin.bottom+5+("Bottom"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Bottom"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.bottomScrollBarCount++):"Right"===e.axis.scrollbarSettings.position?(i=o.availableSize.width-((e.height+5)*o.scrollBarModule.rightScrollBarCount+e.height+5+o.margin.right+("Right"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Right"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.rightScrollBarCount++):"Left"===e.axis.scrollbarSettings.position&&(i=o.margin.left+5+(e.height+5)*o.scrollBarModule.leftScrollBarCount+("Left"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Left"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.leftScrollBarCount++),i}function yo(e,t,i,o,r){var n,a,l=o.element.style.transform,s=(l&&(o.element.style.transform=""),new fe.SvgRenderer(o.element.id)),h=[],c={id:"rotate_text",x:o.initialClipRect.x,y:o.initialClipRect.y,"font-size":e.size||r.size,"font-style":e.fontStyle||r.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight||r.fontWeight,transform:"rotate("+i+", 0, 0)","text-anchor":"middle"},r=uo(t)?(h=t.split("<br>"))[0]:t,d=s.createText(c,r);if(o.delayRedraw||o.redraw||o.stockChart||o.element.appendChild(o.svgObject),"string"!=typeof h&&1<h.length)for(var p=1,u=h.length;p<u;p++)a=fe.measureText(h[p],e,o.themeStyle.axisLabelFont).height,n=h[p],a=s.createTSpan({x:c.x,id:c.id,y:c.y+p*a},n),d.appendChild(a);var r=o.svgRenderer.createSvg({id:"AxisLabelMax_svg",width:o.availableSize.width,height:o.availableSize.height}),g=(document.body.appendChild(r),r.appendChild(d),d.getBoundingClientRect());return l&&(o.element.style.transform=l),ye.remove(r),o.delayRedraw||o.redraw||o.stockChart||o.pointsAdded||ye.remove(o.svgObject),o.enableCanvas?(l=fe.measureText(t,e,o.themeStyle.axisLabelFont).width,r=fe.measureText(t,e,o.theme