@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.
10 lines • 1.73 MB
JavaScript
/*!
* filename: ej2-charts.umd.min.js
* version : 31.2.4
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
!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,ie,oe,R,T,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=ie.ChildProperty,N(H,B),t([ie.Property("Line")],H.prototype,"type",void 0),t([ie.Property(null)],H.prototype,"color",void 0),t([ie.Property(1)],H.prototype,"width",void 0),t([ie.Property(null)],H.prototype,"length",void 0),t([ie.Property("")],H.prototype,"dashArray",void 0),H);function H(){return null!==B&&B.apply(this,arguments)||this}W=ie.ChildProperty,N(U,W),t([ie.Property(0)],U.prototype,"x",void 0),t([ie.Property(0)],U.prototype,"y",void 0);var W,j=U;function U(){return null!==W&&W.apply(this,arguments)||this}X=ie.ChildProperty,N(Y,X),t([ie.Property(null)],Y.prototype,"accessibilityDescription",void 0),t([ie.Property(null)],Y.prototype,"accessibilityRole",void 0),t([ie.Property(!0)],Y.prototype,"focusable",void 0),t([ie.Property(0)],Y.prototype,"tabIndex",void 0);var X,G=Y;function Y(){return null!==X&&X.apply(this,arguments)||this}N($,Z=G),t([ie.Property(null)],$.prototype,"accessibilityDescriptionFormat",void 0);var Z,Q=$;function $(){return null!==Z&&Z.apply(this,arguments)||this}K=ie.ChildProperty,N(ee,K),t([ie.Property("Normal")],ee.prototype,"fontStyle",void 0),t([ie.Property("16px")],ee.prototype,"size",void 0),t([ie.Property("Normal")],ee.prototype,"fontWeight",void 0),t([ie.Property("")],ee.prototype,"color",void 0),t([ie.Property("Center")],ee.prototype,"textAlignment",void 0),t([ie.Property("Segoe UI")],ee.prototype,"fontFamily",void 0),t([ie.Property(1)],ee.prototype,"opacity",void 0),t([ie.Property("Wrap")],ee.prototype,"textOverflow",void 0);var K,J=ee;function ee(){return null!==K&&K.apply(this,arguments)||this}te=ie.ChildProperty,N(le,te),t([ie.Property("Normal")],le.prototype,"fontStyle",void 0),t([ie.Property("16px")],le.prototype,"size",void 0),t([ie.Property("Normal")],le.prototype,"fontWeight",void 0),t([ie.Property("")],le.prototype,"color",void 0),t([ie.Property("Center")],le.prototype,"textAlignment",void 0),t([ie.Property("Segoe UI")],le.prototype,"fontFamily",void 0),t([ie.Property(1)],le.prototype,"opacity",void 0);var te,ae=le;function le(){return null!==te&&te.apply(this,arguments)||this}se=ie.ChildProperty,N(ce,se),t([ie.Property(null)],ce.prototype,"text",void 0),t([ie.Complex({fontFamily:null,size:"16px",fontStyle:"Normal",fontWeight:"600",color:null},J)],ce.prototype,"textStyle",void 0),t([ie.Property(null)],ce.prototype,"hoverTextFormat",void 0);var se,he=ce;function ce(){return null!==se&&se.apply(this,arguments)||this}de=ie.ChildProperty,N(ue,de),t([ie.Property("")],ue.prototype,"color",void 0),t([ie.Property(1)],ue.prototype,"width",void 0),t([ie.Property("")],ue.prototype,"dashArray",void 0);var de,pe=ue;function ue(){return null!==de&&de.apply(this,arguments)||this}ge=ie.ChildProperty,N(ye,ge),t([ie.Property(0)],ye.prototype,"x",void 0),t([ie.Property(0)],ye.prototype,"y",void 0);var ge,me=ye;function ye(){return null!==ge&&ge.apply(this,arguments)||this}fe=ie.ChildProperty,N(ve,fe),t([ie.Property(ie.Browser.isDevice?5:10)],ve.prototype,"left",void 0),t([ie.Property(ie.Browser.isDevice?5:10)],ve.prototype,"right",void 0),t([ie.Property(ie.Browser.isDevice?5:10)],ve.prototype,"top",void 0),t([ie.Property(ie.Browser.isDevice?5:10)],ve.prototype,"bottom",void 0);var fe,be=ve;function ve(){return null!==fe&&fe.apply(this,arguments)||this}xe=ie.ChildProperty,N(Ce,xe),t([ie.Property(!0)],Ce.prototype,"enable",void 0),t([ie.Property(1e3)],Ce.prototype,"duration",void 0),t([ie.Property(0)],Ce.prototype,"delay",void 0);var xe,Se=Ce;function Ce(){return null!==xe&&xe.apply(this,arguments)||this}Fe=ie.ChildProperty,N(Le,Fe),t([ie.Property(!1)],Le.prototype,"enable",void 0),t([ie.Property(!0)],Le.prototype,"enableMarker",void 0),t([ie.Property(!1)],Le.prototype,"shared",void 0),t([ie.Property(null)],Le.prototype,"fill",void 0),t([ie.Property(null)],Le.prototype,"header",void 0),t([ie.Property(null)],Le.prototype,"opacity",void 0),t([ie.Complex({fontFamily:null,size:null,fontStyle:"Normal",fontWeight:null,color:null},J)],Le.prototype,"textStyle",void 0),t([ie.Property(null)],Le.prototype,"format",void 0),t([ie.Property(null)],Le.prototype,"template",void 0),t([ie.Property(!0)],Le.prototype,"enableAnimation",void 0),t([ie.Property(300)],Le.prototype,"duration",void 0),t([ie.Property(1e3)],Le.prototype,"fadeOutDuration",void 0),t([ie.Property("Move")],Le.prototype,"fadeOutMode",void 0),t([ie.Property(!1)],Le.prototype,"enableTextWrap",void 0),t([ie.Property(!0)],Le.prototype,"showNearestPoint",void 0),t([ie.Complex({color:null,width:null},pe)],Le.prototype,"border",void 0),t([ie.Complex({x:null,y:null},j)],Le.prototype,"location",void 0),t([ie.Property(!1)],Le.prototype,"enableHighlight",void 0),t([ie.Property(!1)],Le.prototype,"showNearestTooltip",void 0),t([ie.Property(!0)],Le.prototype,"showHeaderLine",void 0);var Fe,we=Le;function Le(){return null!==Fe&&Fe.apply(this,arguments)||this}Pe=ie.ChildProperty,N(Me,Pe),t([ie.Property(null)],Me.prototype,"fill",void 0),t([ie.Complex({color:"",width:0},pe)],Me.prototype,"border",void 0),t([ie.Property("Gap")],Me.prototype,"mode",void 0);var Pe,Ae=Me;function Me(){return null!==Pe&&Pe.apply(this,arguments)||this}De=ie.ChildProperty,N(Re,De),t([ie.Property(0)],Re.prototype,"series",void 0),t([ie.Property(0)],Re.prototype,"point",void 0);var De,ke=Re;function Re(){return null!==De&&De.apply(this,arguments)||this}Te=ie.ChildProperty,N(_e,Te),t([ie.Property(0)],_e.prototype,"topLeft",void 0),t([ie.Property(0)],_e.prototype,"topRight",void 0),t([ie.Property(0)],_e.prototype,"bottomLeft",void 0),t([ie.Property(0)],_e.prototype,"bottomRight",void 0);var Te,Ee=_e;function _e(){return null!==Te&&Te.apply(this,arguments)||this}Ie=ie.ChildProperty,N(ze,Ie),t([ie.Property(0)],ze.prototype,"left",void 0),t([ie.Property(0)],ze.prototype,"right",void 0),t([ie.Property(0)],ze.prototype,"top",void 0),t([ie.Property(0)],ze.prototype,"bottom",void 0);var Ie,Oe=ze;function ze(){return null!==Ie&&Ie.apply(this,arguments)||this}Be=ie.ChildProperty,N(Ve,Be),t([ie.Property("transparent")],Ve.prototype,"color",void 0),t([ie.Property(0)],Ve.prototype,"width",void 0),t([ie.Property(.8)],Ve.prototype,"cornerRadius",void 0);var Be,Ne=Ve;function Ve(){return null!==Be&&Be.apply(this,arguments)||this}He=ie.ChildProperty,N(je,He),t([ie.Property("Normal")],je.prototype,"fontStyle",void 0),t([ie.Property("15px")],je.prototype,"size",void 0),t([ie.Property("500")],je.prototype,"fontWeight",void 0),t([ie.Property("")],je.prototype,"color",void 0),t([ie.Property("Center")],je.prototype,"textAlignment",void 0),t([ie.Property("Segoe UI")],je.prototype,"fontFamily",void 0),t([ie.Property(1)],je.prototype,"opacity",void 0),t([ie.Property("Wrap")],je.prototype,"textOverflow",void 0),t([ie.Property("Top")],je.prototype,"position",void 0),t([ie.Property(0)],je.prototype,"x",void 0),t([ie.Property(0)],je.prototype,"y",void 0),t([ie.Property("transparent")],je.prototype,"background",void 0),t([ie.Complex({},Ne)],je.prototype,"border",void 0),t([ie.Complex({},G)],je.prototype,"accessibility",void 0);var He,We=je;function je(){return null!==He&&He.apply(this,arguments)||this}N(Ge,Ue=J),t([ie.Property("Top")],Ge.prototype,"position",void 0),t([ie.Property(0)],Ge.prototype,"x",void 0),t([ie.Property(0)],Ge.prototype,"y",void 0);var Ue,Xe=Ge;function Ge(){return null!==Ue&&Ue.apply(this,arguments)||this}Ye=ie.ChildProperty,N(qe,Ye),t([ie.Complex({},pe)],qe.prototype,"border",void 0),t([ie.Property("transparent")],qe.prototype,"background",void 0),t([ie.Property(1)],qe.prototype,"opacity",void 0),t([ie.Property(null)],qe.prototype,"backgroundImage",void 0),t([ie.Property(null)],qe.prototype,"width",void 0),t([ie.Complex({left:0,right:0,top:0,bottom:0},be)],qe.prototype,"margin",void 0);var Ye,Ze=qe;function qe(){return null!==Ye&&Ye.apply(this,arguments)||this}Qe=ie.ChildProperty,N(Ke,Qe),t([ie.Property(!1)],Ke.prototype,"enable",void 0),t([ie.Property(null)],Ke.prototype,"minY",void 0),t([ie.Property(null)],Ke.prototype,"maxY",void 0),t([ie.Property(null)],Ke.prototype,"fill",void 0);var Qe,$e=Ke;function Ke(){return null!==Qe&&Qe.apply(this,arguments)||this}Je=ie.ChildProperty,N(tt,Je),t([ie.Property("Years")],tt.prototype,"intervalType",void 0),t([ie.Property(1)],tt.prototype,"interval",void 0),t([ie.Property(null)],tt.prototype,"text",void 0),t([ie.Property(!1)],tt.prototype,"selected",void 0);var Je,et=tt;function tt(){return null!==Je&&Je.apply(this,arguments)||this}it=ie.ChildProperty,N(rt,it),t([ie.Property(43)],rt.prototype,"height",void 0),t([ie.Property("Bottom")],rt.prototype,"position",void 0),t([ie.Collection([],et)],rt.prototype,"periods",void 0);var it,ot=rt;function rt(){return null!==it&&it.apply(this,arguments)||this}nt=ie.ChildProperty,N(at,nt),t([ie.Property(!1)],at.prototype,"enable",void 0),t([ie.Property(!0)],at.prototype,"enableMarker",void 0),t([ie.Property(!1)],at.prototype,"shared",void 0),t([ie.Property(null)],at.prototype,"fill",void 0),t([ie.Property(null)],at.prototype,"header",void 0),t([ie.Property(.75)],at.prototype,"opacity",void 0),t([ie.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},J)],at.prototype,"textStyle",void 0),t([ie.Property(null)],at.prototype,"format",void 0),t([ie.Property(null)],at.prototype,"template",void 0),t([ie.Property(!0)],at.prototype,"enableAnimation",void 0),t([ie.Property(300)],at.prototype,"duration",void 0),t([ie.Property(1e3)],at.prototype,"fadeOutDuration",void 0),t([ie.Property("Move")],at.prototype,"fadeOutMode",void 0),t([ie.Property(!1)],at.prototype,"enableTextWrap",void 0),t([ie.Property(!0)],at.prototype,"showNearestPoint",void 0),t([ie.Complex({color:null,width:null},pe)],at.prototype,"border",void 0),t([ie.Property("Fixed")],at.prototype,"position",void 0),t([ie.Property(!1)],at.prototype,"showNearestTooltip",void 0),t([ie.Property(!0)],at.prototype,"showHeaderLine",void 0);var nt,N=at;function at(){return null!==nt&&nt.apply(this,arguments)||this}var lt=function(e,t){this.series=e,this.point=t},st=(Object.defineProperty(ht.prototype,"start",{get:function(){return this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"end",{get:function(){return this.mEnd},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"delta",{get:function(){return this.mEnd-this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"median",{get:function(){return this.mStart+(this.mEnd-this.mStart)/2},enumerable:!0,configurable:!0}),ht);function ht(e,t){e<t?(this.mStart=e,this.mEnd=t):(this.mStart=t,this.mEnd=e)}dt.prototype.calculateNumericNiceInterval=function(e,t,i){var o=$o(i,e),r=t/o;if(ie.isNullOrUndefined(e.desiredIntervals)||!this.isAutoIntervalOnBothAxis(e))for(var n=Math.pow(10,Math.floor(lo(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},dt.prototype.isAutoIntervalOnBothAxis=function(e){return!(e.zoomFactor<1||0<e.zoomPosition)||!e.enableAutoIntervalOnZooming},dt.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)},dt.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 st(this.min,this.max),e.actualRange={}},dt.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},dt.prototype.calculateRange=function(e){if(this.min=null,this.max=null,!qo(e))for(var t=0,i=e.series;t<i.length;t++){var o=i[t];o.visible&&(this.paddingInterval=0,ie.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*Vo(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))}},dt.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)},dt.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)},dt.prototype.applyRangePadding=function(e,t){var i,o,r=e.actualRange.min,n=e.actualRange.max;qo(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)},dt.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}},dt.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),ie.isNullOrUndefined(e.desiredIntervals)||(o=this.calculateNumericNiceInterval(e,i-t,r)),this.updateActualRange(e,t,i,o)},dt.prototype.findNormal=function(e,t,i,o,r){var n,a=t;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 st(n,t=0<t%o?t+o-t%o:t),(0===n||n<0&&t<0)&&(o=this.calculateNumericNiceInterval(e,e.doubleRange.delta,r),t=Math.ceil(t/o)*o),this.updateActualRange(e,n,t,o)},dt.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=!ie.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)},dt.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=ie.extend({},ie.getValue("properties",e.labelStyle),null,!0),co(r,e.visibleRange)&&Zo(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&&Zo(t,r,this.formatValue(e,a,n,r),i,e),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},dt.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}%":""},dt.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)},dt.prototype.getModuleName=function(){return"Double"},dt.prototype.destroy=function(){};var ct=dt;function dt(e){this.isColumn=0,this.isStacking=!1,this.chart=e}var pt,ut,gt="legendClick",mt="load",yt="animationComplete",ft="legendRender",bt="textRender",vt="pointRender",xt="sharedTooltipRender",St="seriesRender",Ct="axisLabelRender",Ft="axisLabelClick",wt="axisRangeCalculated",Lt="axisMultiLabelRender",Pt="tooltipRender",At="chartMouseMove",Mt="chartMouseClick",Dt="chartDoubleClick",kt="pointClick",Rt="pointDoubleClick",Tt="pointMove",Et="chartMouseLeave",_t="chartMouseDown",It="chartMouseUp",Ot="zoomComplete",zt="dragComplete",Bt="selectionComplete",Nt="resized",Vt="beforeResize",Ht="beforePrint",Wt="annotationRender",jt="scrollStart",Ut="scrollEnd",Xt="scrollChanged",Gt="stockEventRender",Yt="multiLevelLabelClick",Zt="dragStart",qt="dragEnd",Qt=/~\d+~/g,$t=/\^\d+\^/g,Kt="beforeExport",Jt="afterExport",ei="bulletChartMouseClick",ti="onZooming",t=(pt=function(e,t){return(pt=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}pt(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},ii=(ut=ie.ChildProperty,t(oi,ut),i([ie.Property("0")],oi.prototype,"x",void 0),i([ie.Property("0")],oi.prototype,"y",void 0),i([ie.Property(null)],oi.prototype,"content",void 0),i([ie.Property("Center")],oi.prototype,"horizontalAlignment",void 0),i([ie.Property("Pixel")],oi.prototype,"coordinateUnits",void 0),i([ie.Property("Chart")],oi.prototype,"region",void 0),i([ie.Property("Middle")],oi.prototype,"verticalAlignment",void 0),i([ie.Property(null)],oi.prototype,"xAxisName",void 0),i([ie.Property(null)],oi.prototype,"yAxisName",void 0),i([ie.Property(null)],oi.prototype,"description",void 0),i([ie.Complex({},G)],oi.prototype,"accessibility",void 0),oi);function oi(){return null!==ut&&ut.apply(this,arguments)||this}ri=ie.ChildProperty,t(ai,ri),i([ie.Property("")],ai.prototype,"color",void 0),i([ie.Property(1)],ai.prototype,"width",void 0),i([ie.Property("Rectangle")],ai.prototype,"type",void 0);var ri,ni=ai;function ai(){return null!==ri&&ri.apply(this,arguments)||this}li=ie.ChildProperty,t(hi,li),i([ie.Property(null)],hi.prototype,"start",void 0),i([ie.Property(null)],hi.prototype,"end",void 0),i([ie.Property("")],hi.prototype,"text",void 0),i([ie.Property(null)],hi.prototype,"maximumTextWidth",void 0),i([ie.Property(null)],hi.prototype,"customAttributes",void 0),i([ie.Property("")],hi.prototype,"type",void 0);var li,si=hi;function hi(){return null!==li&&li.apply(this,arguments)||this}ci=ie.ChildProperty,t(pi,ci),i([ie.Property(!0)],pi.prototype,"visible",void 0),i([ie.Property(!1)],pi.prototype,"startFromAxis",void 0),i([ie.Property(null)],pi.prototype,"start",void 0),i([ie.Property(null)],pi.prototype,"end",void 0),i([ie.Property(null)],pi.prototype,"size",void 0),i([ie.Property("#808080")],pi.prototype,"color",void 0),i([ie.Property(null)],pi.prototype,"dashArray",void 0),i([ie.Property("Auto")],pi.prototype,"sizeType",void 0),i([ie.Property(!1)],pi.prototype,"isRepeat",void 0),i([ie.Property(null)],pi.prototype,"repeatEvery",void 0),i([ie.Property(null)],pi.prototype,"repeatUntil",void 0),i([ie.Property(!1)],pi.prototype,"isSegmented",void 0),i([ie.Property(null)],pi.prototype,"segmentStart",void 0),i([ie.Property(null)],pi.prototype,"segmentEnd",void 0),i([ie.Property(null)],pi.prototype,"segmentAxisName",void 0),i([ie.Complex({color:"transparent",width:1},pe)],pi.prototype,"border",void 0),i([ie.Property("")],pi.prototype,"text",void 0),i([ie.Property(null)],pi.prototype,"rotation",void 0),i([ie.Property("Middle")],pi.prototype,"horizontalAlignment",void 0),i([ie.Property("Middle")],pi.prototype,"verticalAlignment",void 0),i([ie.Complex({size:"12px",color:null,fontStyle:"Normal",fontWeight:"400",fontFamily:null},J)],pi.prototype,"textStyle",void 0),i([ie.Property("Behind")],pi.prototype,"zIndex",void 0),i([ie.Property(1)],pi.prototype,"opacity",void 0),i([ie.Property("")],pi.prototype,"imageUrl",void 0);var ci,di=pi;function pi(){return null!==ci&&ci.apply(this,arguments)||this}ui=ie.ChildProperty,t(mi,ui),i([ie.Property("Center")],mi.prototype,"alignment",void 0),i([ie.Property("Wrap")],mi.prototype,"overflow",void 0),i([ie.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},J)],mi.prototype,"textStyle",void 0),i([ie.Complex({color:null,width:1,type:"Rectangle"},ni)],mi.prototype,"border",void 0),i([ie.Collection([],si)],mi.prototype,"categories",void 0);var ui,gi=mi;function mi(){return null!==ui&&ui.apply(this,arguments)||this}yi=ie.ChildProperty,t(bi,yi),i([ie.Property(null)],bi.prototype,"minimum",void 0),i([ie.Property(null)],bi.prototype,"maximum",void 0);var yi,fi=bi;function bi(){return null!==yi&&yi.apply(this,arguments)||this}vi=ie.ChildProperty,t(Si,vi),i([ie.Property(!1)],Si.prototype,"enable",void 0),i([ie.Property(null)],Si.prototype,"pointsLength",void 0),i([ie.Complex({},fi)],Si.prototype,"range",void 0),i([ie.Property(null)],Si.prototype,"trackColor",void 0),i([ie.Property(0)],Si.prototype,"scrollbarRadius",void 0),i([ie.Property(null)],Si.prototype,"scrollbarColor",void 0),i([ie.Property(0)],Si.prototype,"trackRadius",void 0),i([ie.Property(null)],Si.prototype,"gripColor",void 0),i([ie.Property(16)],Si.prototype,"height",void 0),i([ie.Property(!0)],Si.prototype,"enableZoom",void 0),i([ie.Property("PlaceNextToAxisLine")],Si.prototype,"position",void 0);var vi,xi=Si;function Si(){return null!==vi&&vi.apply(this,arguments)||this}Ci=ie.ChildProperty,t(wi,Ci),i([ie.Property("Far")],wi.prototype,"horizontalAlignment",void 0),i([ie.Property("Top")],wi.prototype,"verticalAlignment",void 0),i([ie.Property(0)],wi.prototype,"x",void 0),i([ie.Property(0)],wi.prototype,"y",void 0),i([ie.Property(!1)],wi.prototype,"draggable",void 0);var Ci,Fi=wi;function wi(){return null!==Ci&&Ci.apply(this,arguments)||this}Li=ie.ChildProperty,t(Pi,Li),i([ie.Property(!1)],Pi.prototype,"visible",void 0),i([ie.Property("transparent")],Pi.prototype,"fill",void 0),i([ie.Property(null)],Pi.prototype,"format",void 0),i([ie.Property(0)],Pi.prototype,"angle",void 0),i([ie.Property(5)],Pi.prototype,"rx",void 0),i([ie.Property(5)],Pi.prototype,"ry",void 0),i([ie.Complex({left:5,right:5,top:5,bottom:5},be)],Pi.prototype,"margin",void 0),i([ie.Complex({width:null,color:null},pe)],Pi.prototype,"border",void 0),i([ie.Complex({size:null,color:null,fontStyle:null,fontWeight:"Bold",fontFamily:null},ae)],Pi.prototype,"font",void 0);var Li,t=Pi;function Pi(){return null!==Li&&Li.apply(this,arguments)||this}Ai=function(e,t){return(Ai=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 Ai,Mi,i=function(e,t){function i(){this.constructor=e}Ai(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},Di=(Mi=ie.ChildProperty,i(ki,Mi),ki.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([ie.Property("100%")],ki.prototype,"height",void 0),o([ie.Complex({},pe)],ki.prototype,"border",void 0),ki);function ki(){var e=null!==Mi&&Mi.apply(this,arguments)||this;return e.axes=[],e.nearSizes=[],e.farSizes=[],e.insideFarSizes=[],e.insideNearSizes=[],e}Ri=ie.ChildProperty,i(Ei,Ri),Ei.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([ie.Property("100%")],Ei.prototype,"width",void 0),o([ie.Complex({},pe)],Ei.prototype,"border",void 0);var Ri,Ti=Ei;function Ei(){var e=null!==Ri&&Ri.apply(this,arguments)||this;return e.axes=[],e.nearSizes=[],e.farSizes=[],e.insideFarSizes=[],e.insideNearSizes=[],e.padding=0,e}_i=ie.ChildProperty,i(Oi,_i),o([ie.Property(1)],Oi.prototype,"width",void 0),o([ie.Property("")],Oi.prototype,"dashArray",void 0),o([ie.Property(null)],Oi.prototype,"color",void 0);var _i,Ii=Oi;function Oi(){return null!==_i&&_i.apply(this,arguments)||this}zi=ie.ChildProperty,i(Ni,zi),o([ie.Property(.7)],Ni.prototype,"width",void 0),o([ie.Property("")],Ni.prototype,"dashArray",void 0),o([ie.Property(null)],Ni.prototype,"color",void 0);var zi,Bi=Ni;function Ni(){return null!==zi&&zi.apply(this,arguments)||this}Vi=ie.ChildProperty,i(Wi,Vi),o([ie.Property(1)],Wi.prototype,"width",void 0),o([ie.Property("")],Wi.prototype,"dashArray",void 0),o([ie.Property(null)],Wi.prototype,"color",void 0);var Vi,Hi=Wi;function Wi(){return null!==Vi&&Vi.apply(this,arguments)||this}ji=ie.ChildProperty,i(Xi,ji),o([ie.Property(1)],Xi.prototype,"width",void 0),o([ie.Property(5)],Xi.prototype,"height",void 0),o([ie.Property(null)],Xi.prototype,"color",void 0);var ji,Ui=Xi;function Xi(){return null!==ji&&ji.apply(this,arguments)||this}Gi=ie.ChildProperty,i(Zi,Gi),o([ie.Property(.7)],Zi.prototype,"width",void 0),o([ie.Property(5)],Zi.prototype,"height",void 0),o([ie.Property(null)],Zi.prototype,"color",void 0);var Gi,Yi=Zi;function Zi(){return null!==Gi&&Gi.apply(this,arguments)||this}qi=ie.ChildProperty,i($i,qi),o([ie.Property(!1)],$i.prototype,"enable",void 0),o([ie.Property(null)],$i.prototype,"fill",void 0),o([ie.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},J)],$i.prototype,"textStyle",void 0);var qi,Qi=$i;function $i(){return null!==qi&&qi.apply(this,arguments)||this}Ki=ie.ChildProperty,i(r,Ki),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 ho(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=ie.isNullOrUndefined(a)?(this.titleSize=oe.measureText(this.title,this.titleStyle,o.themeStyle.axisTitleFont),this.titleSize.height+t):(this.titleSize=ao(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=zr(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=ie.extend({},this.rect,null,!0),"Horizontal"===this.orientation?(e=this.crossInAxis.rect.height-wo(e,this.crossInAxis)*this.crossInAxis.rect.height,this.updatedRect.y=this.crossInAxis.rect.y+e):(e=wo(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;Qo(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 st(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:wt,axis:this,minimum:t,maximum:i,interval:o};e.trigger(wt,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){for(var p,u,g,e,m=this,y=0,f=!1,b=(this.angle=this.labelRotation,this.maxLabelSize=new oe.Size(0,0),this.labelIntersectAction),v=this,t=0,i=this.visibleLabels.length;t<i;t++)!function(e){g=v.visibleLabels[e],(u=oo(g.originalText))?(g.size=oe.measureText(g.originalText.replace(/<br>/g," "),v.labelStyle,d.themeStyle.axisLabelFont),g.breakLabelSize=oe.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=Nr(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=oe.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=oe.measureText(g.text,v.labelStyle,d.themeStyle.axisLabelFont):g.size=ao(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=wo(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=Nr(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=Nr(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=ie.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&&oo(this.rotatedLabel)?this.maxLabelSize=new oe.Size(this.maxLabelSize.height,this.maxLabelSize.width):this.maxLabelSize=ao(this.labelStyle,this.rotatedLabel,this.angle,d,d.themeStyle.axisLabelFont)),d.multiLevelLabelModule&&0<this.multiLevelLabels.length&&d.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=wo(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 ct(e):this.baseModule=e[Bo(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=re(e.element.id+"AxisInsideCollection"),r=re(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)},o([ie.Complex({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},J)],r.prototype,"labelStyle",void 0),o([ie.Complex({},Qi)],r.prototype,"crosshairTooltip",void 0),o([ie.Property("")],r.prototype,"title",void 0),o([ie.Complex({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},J)],r.prototype,"titleStyle",void 0),o([ie.Property("")],r.prototype,"labelFormat",void 0),o([ie.Property("")],r.prototype,"skeleton",void 0),o([ie.Property("DateTime")],r.prototype,"skeletonType",void 0),o([ie.Property("Center")],r.prototype,"lineBreakAlignment",void 0),o([ie.Property(0)],r.prototype,"plotOffset",void 0),o([ie.Property(null)],r.prototype,"plotOffsetLeft",void 0),o([ie.Property(null)],r.prototype,"plotOffsetTop",void 0),o([ie.Property(null)],r.prototype,"plotOffsetRight",void 0),o([ie.Property(null)],r.prototype,"plotOffsetBottom",void 0),o([ie.Property(!1)],r.prototype,"isIndexed",void 0),o([ie.Property(10)],r.prototype,"logBase",void 0),o([ie.Property(0)],r.prototype,"columnIndex",void 0),o([ie.Property(0)],r.prototype,"rowIndex",void 0),o([ie.Property(1)],r.prototype,"span",void 0),o([ie.Property(null)],r.prototype,"desiredIntervals",void 0),o([ie.Property(3)],r.prototype,"maximumLabels",void 0),o([ie.Property(1)],r.prototype,"zoomFactor",void 0),o([ie.Property(0)],r.prototype,"zoomPosition",void 0),o([ie.Property(!0)],r.prototype,"enableScrollbarOnZooming",void 0),o([ie.Property(!1)],r.prototype,"opposedPosition",void 0),o([ie.Property(!0)],r.prototype,"enableAutoIntervalOnZooming",void 0),o([ie.Property("Auto")],r.prototype,"rangePadding",void 0),o([ie.Property("Double")],r.prototype,"valueType",void 0),o([ie.Property("Shift")],r.prototype,"edgeLabelPlacement",void 0),o([ie.Property("Auto")],r.prototype,"intervalType",void 0),o([ie.Property("BetweenTicks")],r.prototype,"labelPlacement",void 0),o([ie.Property("Outside")],r.prototype,"tickPosition",void 0),o([ie.Property("Outside")],r.prototype,"labelPosition",void 0),o([ie.Property("")],r.prototype,"name",void 0),o([ie.Property(!0)],r.prototype,"visible",void 0),o([ie.Property(0)],r.prototype,"minorTicksPerInterval",void 0),o([ie.Property(0)],r.prototype,"labelRotation",void 0),o([ie.Property(null)],r.prototype,"titleRotation",void 0),o([ie.Property(null)],r.prototype,"crossesAt",void 0),o([ie.Property(!0)],r.prototype,"placeNextToAxisLine",void 0),o([ie.Property(null)],r.prototype,"crossesInAxis",void 0),o([ie.Property(null)],r.prototype,"minimum",void 0),o([ie.Property(null)],r.prototype,"maximum",void 0),o([ie.Property(null)],r.prototype,"interval",void 0),o([ie.Property(34)],r.prototype,"maximumLabelWidth",void 0),o([ie.Property(!1)],r.prototype,"enableTrim",void 0),o([ie.Property(!1)],r.prototype,"enableWrap",void 0),o([ie.Property(5)],r.prototype,"labelPadding",void 0),o([ie.Property(5)],r.prototype,"titlePadding",void 0),o([ie.Complex({},Ui)],r.prototype,"majorTickLines",void 0),o([ie.Complex({},Yi)],r.prototype,"minorTickLines",void 0),o([ie.Complex({},Ii)],r.prototype,"majorGridLines",void 0),o([ie.Complex({},Bi)],r.prototype,"minorGridLines",void 0),o([ie.Complex({},Hi)],r.prototype,"lineStyle",void 0),o([ie.Property(ie.Browser.isDevice?"Rotate45":"Trim")],r.prototype,"labelIntersectAction",void 0),o([ie.Property(!1)],r.prototype,"isInversed",void 0),o([ie.Property(100)],r.prototype,"coefficient",void 0),o([ie.Property(0)],r.prototype,"startAngle",void 0),o([ie.Property(!0)],r.prototype,"startFromZero",void 0),o([ie.Property(null)],r.prototype,"description",void 0),o([ie.Property(2)],r.prototype,"tabIndex",void 0),o([ie.Collection([],di)],r.prototype,"stripLines",void 0),o([ie.Collection([],gi)],r.prototype,"multiLevelLabels",void 0),o([ie.Complex({color:null,width:0,type:"Rectangle"},ni)],r.prototype,"border",void 0),o([ie.Complex({},xi)],r.prototype,"scrollbarSettings",void 0);var Ki,Ji=r;function r(e,t,i,o){e=Ki.call(this,e,t,i,o)||this;return e.visibleLabels=[],e.series=[],e.rect=new oe.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 oe.Size(0,0),e.internalVisibility=!0,e.isRTLEnabled=!1,e.angle=e.labelRotation,e}var eo,to=function(e,t,i,o,r,n,a){void 0===r&&(r=new oe.Size(0,0)),void 0===n&&(n=new oe.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=(eo=function(e,t){return(eo=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}eo(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function io(e,n,a){for(var t=ie.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 oo(e){return-1!==e.indexOf("<br>")}function ro(e){for(var t,i=ie.extend([],e.points,null,!0),o=[],r=0,n=0;n<i.length;n++)t=i[n],ie.isNullOrUndefined(t.x)||(t.index=r++,o.push(t));return o}function no(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=oe.measureText(o.title,o.titleStyle,o.themeStyle.chartTitleFont).height*o.titleCollection.length+a,o.subTitle)&&(n=oe.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 ao(e,t,i,o,r){var n,a,l=o.element.style.transform,s=(l&&(o.element.style.transform=""),new oe.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=oo(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=oe.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),ie.remove(r),o.delayRedraw||o.redraw||o.stockChart||o.pointsAdded||ie.remove(o.svgObject),o.enableCanvas?(l=oe.measureText(t,e,o.themeStyle.axisLabelFont).width,r=oe.measureText(t,e,o.themeStyle.axisLabelFont).height,t=i*Math.PI/180,i=Math.abs(Math.cos(t)*l)+Math.abs(Math.sin(t)*r),l=Math.abs(Math.sin(t)*l)+Math.abs(Math.cos(t)*r),new oe.Size(i,l)):new oe.Size(g.right-g.left,g.bottom-g.top)}function w(e){if(!e)return null;e="string"==typeof e?re(e):e;e&&ie.remove(e)}function lo(e,t){return Math.log(e)/Math.log(t)}function so(e,t,i,o,r,n,a,l,s){var h=document.getElementById(r),c=oe.measureText(e,{fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"Regular"}),d=c.width+5;t=o<t+d?t-(d+15):t,s&&t<s.x&&(t=s.x),i=l?i-c.height/2:i+15,s&&i+c.height>s.y+s.height&&(i-=i+c.height-(s.y+s.height)),h?(h.innerText=e,h.style.top=i.toString()+"px",h.style.left=(t+15).toString()+"px"):((h=ie.createElement("div",{id:r,styles:"top:"+i.toString()+"px;left:"+(t+15).toString()+'px;background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(112, 112, 112); padding-left : 3px; padding-right : 2px;padding-bottom : 2px; padding-top : 2px; font-size:12px; font-family: "Segoe UI"'})).innerText=e,n.appendChild(h),parseInt(h.style.left.replace("px",""),10)<0&&(h.style.left="0px")),a&&setTimeout(function(){w(r)},1500)}function ho(e,t){return e<t.max&&e>t.min}function co(e,t){return e<=t.max&&e>=t.min}function po(e,t){return"Logarithmic"===t.valueType?lo(e,t.logBase):e}function uo(e,t,i,o){var r;return!(!o.chart.zoomModule||!o.chart.zoomSettings.enableAnimation)||(t=po(t.xValue,o.xAxis),e=e?po(e.xValue,o.xAxis):t,i=i?po(i.xValue,o.xAxis):t,r=Math.floor(o.xAxis.visibleRange.min),o=Math.ceil(o.xAxis.visibleRange.max),r<=e&&e<=o)||r<=t&&t<=o||r<=i&&i<=o||e<=r&&r<=i}function go(e){for(var t=0,i=0,o=e;i<o.length;i++)t+=o[i];return t}function mo(e,t,i,o,r){var n=0,a=0;if(null!==o)for(var l=t+1;l<i;l++)-1===o.indexOf(l)&&(l===r.intermediateSumIndexes[a]||r.intermediateSumIndexes[r.intermediateSumIndexes.length-1]<l)&&(n+=e[l][r.yName],l===r.intermediateSumIndexes[a])&&(a+=1);else for(l=t+1;l<i;l++)ie.isNullOrUndefined(e[l][r.yName])||ie.isNullOrUndefined(r.sumIndexes)||-1!==r.sumIndexes.indexOf(l)||(n+=e[l][r.yName]);return n}function yo(e,t){return e.x+=t.left,e.y+=t.top,e.width-=t.left+t.right,e.height-=t.top+t.bottom,e}function fo(e,t){return e.x+=t.x,e.y+=t.y,e.width-=t.x+t.width,e.height-=t.y+t.height,e}function bo(e,t,i){e=e*Math.PI/180;return new ne(Math.cos(e)*t+i.x,Math.sin(e)*t+i.y)}function vo(e){return e*(Math.PI/180)}function xo(e,t,i,o){for(var r=[],n=0;n<4;n++){var a=e[n],l=a.x-t,s=a.y-i,h=l*Math.cos(vo(o))-s*Math.sin(vo(o)),l=l*Math.sin(vo(o))+s*Math.cos(vo(o));a.x=h+t,a.y=l+i,r.push(new ne(a.x,a.y))}return r}function So(e,t){for(var i,o,r,n,a=[e,t],l=0;l<a.length;l++)for(var s=a[l],h=0;h<s.length;h++){for(var c=(h+1)%s.length,d=s[h],c=s[c],p=new ne(c.y-d.y,d.x-c.x),u=i=void 0,g=0;g<e.length;g++)o=p.x*e[g].x+p.y*e[g].y,(ie.isNullOrUndefined(u)||o<u)&&(u=o),(ie.isNullOrUndefined(i)||i<o)&&(i=o);for(r=n=void 0,g=0;g<t.length;g++)o=p.x*t[g].x+p.y*t[g].y,(ie.isNullOrUndefined(r)||o<r)&&(r=o),(ie.isNullOrUndefined(n)||n<o)&&(n=o);if(i<r||n<u)return!1}return!0}function Co(e,t){t=Math.atan2(t.y-e.y,t.x-e.x);return(t<0?6.283+t:t)*(180/Math.PI)}function Fo(e,t){for(var i=[],o=0;o<=t-1;o++)i.push(e[o]);return i}function wo(e,t){var i=t.visibleRange,e=(e-i.min)/i.delta;return(t.isChart?t.isAxisInverse:t.isInversed)?1-e:e}function Lo(e,t,i,o,r,n){e="Logarithmic"===i.valueType?lo(1<e?e:1,i.logBase):e,t="Logarithmic"===o.valueType?lo(1<t?t:1,o.logBase):t,e+="Category"===i.valueType&&"BetweenTicks"===i.labelPlacement&&"Radar"!==n.type?.5:0;t=n.chart.radius*wo(t,o),o=Ao(Mo(e,i),n.chart.primaryXAxis.startAngle);return{x:n.clipRect.width/2+n.clipRect.x+t*o.x,y:n.clipRect.height/2+n.clipRect.y+t*o.y}}function Po(e,t){void 0===t&&(t=!1);var i=["NaN","NaN"];return-1<e.indexOf("_polygon")?i=["NaN","NaN"]:-1<e.indexOf("_Point_")?i=e.split("_Series_")[1].split("_Point_"):-1<e.indexOf("_shape_")&&(!t|