UNPKG

fusioncharts

Version:

FusionCharts JavaScript charting framework

1 lines 327 kB
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}(function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[5],{1e3:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;var o=a(187),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i={"initial.dataset.hlineargauge":function(){return{"parentgroup.initial":function(e){return[{initialAttr:{transform:e.attr.transform},finalAttr:{transform:e.attr.transform},slot:"initial"}]},"datalabel.initial":function(e){return[{initialAttr:{transform:e.attr.transform},finalAttr:{transform:e.attr.transform}}]},"background.appearing":function(){return r[0].slot=o.INITIALSTR,r},"background.updating":null,"final.appearing":function(){return r[0].slot=o.FINALSTR,r},"final.updating":null,"pointers.appearing":function(e){var t=e.attr.polypath.slice(0);return t[1]=0,[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{polypath:t},finalAttr:{opacity:1},slot:"middle"}]},"pointers.updating":null,"pointerValues.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{x:0},finalAttr:{opacity:1},slot:"middle"}]},"pointerValues.updating":null,"*":null}}};t["default"]=i},1001:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;var o=a(195),r=a(187),i=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],l={"initial.dataset.angularGauge":function(){var e=this.config,t=(0,o.getDep)("redraphael","plugin"),a=Math.PI/180,l=t.vml?-1.5:0,n=t.vml?-1.5:0;return{"dialPath.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{transform:"R"+e.gaugeStartAngle/a+","+l+","+n},finalAttr:{opacity:1},slot:"middle"}]},"dialPath.updating":null,"text.appearing":function(){return i[0].slot=r.FINALSTR,i},"text.updating":null,"pivot.appearing":function(){return i[0].slot=r.INITIALSTR,i},"pivot.updating":null,"plotBackground.appearing":function(){return i[0].slot=r.INITIALSTR,i},"plotBackground.updating":null}}};t["default"]=l},1002:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=function(e){var t=Math,a=t.pow,o=t.tan,r=t.acos,i=t.min,l=t.sqrt,n="M",s="L",c="Q",u=e._cacher(function(e,t,o,r){return l(a(o-e,2)+a(r-t,2))}),h=e._cacher(function(e,t,a,o,r){var i,l=a-e,n=o-t;return i=u(e,t,a,o),{x:e+(l/=i)*r,y:t+(n/=i)*r}});e.define&&e.define([{name:"trianglepath",trianglepath:function(){var t=this,a=arguments,o=e._lastArgIfGroup(a),r=t.path(o);return r.attr("trianglepath",[a[0],a[1],a[2],a[3],a[4],a[5],a[6]||0,a[7]||0,a[8]||0])},fn:{sides:function(){var e=this._args;return[u(e[0],e[1],e[2],e[3]),u(e[2],e[3],e[4],e[5]),u(e[4],e[5],e[0],e[1])]},enclosedAngles:function(){var e=this._sides;return[r((a(e[0],2)+a(e[2],2)-a(e[1],2))/(2*e[0]*e[2])),r((a(e[0],2)+a(e[1],2)-a(e[2],2))/(2*e[0]*e[1])),r((a(e[2],2)+a(e[1],2)-a(e[0],2))/(2*e[2]*e[1]))]},semiperimeter:function(){var e=this._sides||this.sides();return(e[0]+e[1]+e[2])/2}},ca:{trianglepath:function(e,t,a,r,u,d,p,g,f){if(p||g||f){this._args=arguments,this._sides=this.sides();var m,v,b,k=this.enclosedAngles(),C=this.semiperimeter();b=l(C*(C-this._sides[0])*(C-this._sides[1])*(C-this._sides[2]))/C,m=[i(p,b)/o(k[0]/2),i(g,b)/o(k[1]/2),i(f,b)/o(k[2]/2)],v=[h(e,t,u,d,m[0]),h(e,t,a,r,m[0]),h(a,r,e,t,m[1]),h(a,r,u,d,m[1]),h(u,d,a,r,m[2]),h(u,d,e,t,m[2])],this.attr({path:[n,v[0].x,v[0].y,c,e,t,v[1].x,v[1].y,s,v[2].x,v[2].y,c,a,r,v[3].x,v[3].y,s,v[4].x,v[4].y,c,u,d,v[5].x,v[5].y,s,v[0].x,v[0].y]})}else this.attr({path:[n,e,t,s,a,r,u,d,"Z"]})}}}])}},1003:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(1004))["default"];t["default"]=r},1004:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=o(a(1005)),l="led",n="bottom",s="top",c=function(e){function t(){var t;return(t=e.call(this)||this).defaultSeriesType=l,t.defaultPlotShadow=1,t.realtimeEnabled=!0,t.chartleftmargin=15,t.chartrightmargin=15,t.charttopmargin=10,t.chartbottommargin=10,t.showTooltip=0,t.connectTickMarks=0,t.isHorizontal=!0,t.config.isAxisOpposite=!1,t.config.scalePosition=n,t.config.canBeScalePosition=s,t}(0,r["default"])(t,e),t.getName=function(){return"Hled"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.friendlyName="Vertical LED Gauge"},a.getName=function(){return"Hled"},t}(i["default"]);t["default"]=c},1005:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=a(1006),l=o(a(982)),n=o(a(1007)),s=o(a(979)),c="led",u="left",h="right",d=function(e){function t(){var t;return(t=e.call(this)||this).showRTvalue=!1,t.canvasPadding=!1,t.defaultSeriesType=c,t.defaultPlotShadow=1,t.realtimeEnabled=!0,t.chartleftmargin=15,t.chartrightmargin=15,t.charttopmargin=10,t.chartbottommargin=10,t.showTooltip=0,t.connectTickMarks=0,t.isHorizontal=!1,t.config.isAxisOpposite=!0,t.config.scalePosition=h,t.config.canBeScalePosition=u,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.isRealTime=!0,t.colorRange=!0,t.registerFactory("dataset",s["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Vled"};var a=t.prototype;return a.getName=function(){return"Vled"},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),i.configureAttributes.call(this)},a._getData=function(){return i._getData.call(this)},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Vertical LED Gauge",t.hasLegend=!1,t.defaultDatasetType=c,t.skipCanvasDrawing=!0,t.majorTMNumber=-1,t.majorTMHeight=6,t.showTickMarks=1,t.majorTMThickness=1,t.minorTMNumber=4,t.minorTMThickness=1,t.tickMarkDistance=3,t.placeTicksInside=0,t.placeValuesInside=0},a.getDSdef=function(){return n["default"]},t}(l["default"]);t["default"]=d},1006:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t.configureAttributes=function(){var e=this.getFromEnv("dataSource").colorrange;e&&e.color&&e.color.length?((0,r.componentFactory)(this,i["default"],"colorRange",1,[{colorRange:e,numberFormatter:this.getFromEnv("number-formatter")}]),this.addToEnv("colorRange",this.getChildren("colorRange")&&this.getChildren("colorRange")[0])):this.deleteFromEnv("colorRange")},t._getData=function(){var e,t,a=this.getDatasets();if(a&&(t=a[0].components.data)&&t[0])return e=t[0].config,(0,r.pluckNumber)(e.setValue,e.itemValue)};var r=a(187),i=o(a(951))},1007:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=a(187),l=o(a(1008)),n=a(195),s=o(a(1010)),c=i.BLANK,u=i.preDefStr.colors.c000000,h=i.preDefStr.showHoverEffectStr,d=i.preDefStr.POSITION_MIDDLE,p=window,g=p.navigator.userAgent,f="rgba(192,192,192,"+(/msie/i.test(g)&&!p.opera?.002:1e-6)+")",m=Math,v=m.round,b=m.max,k=i.regex.dropHash;(0,n.addDep)({name:"ledAnimation",type:"animationRule",extension:s["default"]});var C=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"led"},a.draw=function(){var e,t,a,o,r,l,n,s,c,d,p,g,m,C,x,T,w,A,S,y,N,F,D,E,L,M,R,_,V,O,I,P,G,B,H,W,j,z,U,X,K,Y,J,Z,q,$,Q,ee,te,ae,oe,re,ie,le,ne,se,ce=this.getFromEnv("chart"),ue=this.config,he=ce.getFromEnv("dataSource").chart,de=ce.config,pe=ce.getChildren("canvas")[0],ge=pe.getGraphicalElement(),fe=pe.config,me=ge.canvasBorderElement,ve=ge.colorRangeElems,be=ge.canvasElementPath,ke=ge.canvasHotElement,Ce=de.canvasLeft,xe=de.canvasRight,Te=de.canvasTop,we=de.canvasBottom,Ae=de.canvasWidth,Se=de.canvasHeight,ye=ce.getChildContainer().plotGroup,Ne=this.getFromEnv("scale"),Fe=Ne.getLimit().min,De=Ne.getLimit().max,Ee=(0,i.pluckNumber)(ce.getFromEnv("dataSource").chart.reverseaxis,ce.isAxisReverse),Le=ce.isHorizontal,Me=this.getFromEnv("color-manager"),Re=this.getFromEnv("number-formatter"),_e=ce.getFromEnv("animationManager"),Ve=ue.showHoverEffect,Oe=[],Ie=[],Pe=this.getContainer("trackerContainer"),Ge=ce.getChildContainer("trackerGroup"),Be=0,He=!1;if(Pe||(Pe=this.addContainer("trackerContainer",_e.setAnimation({el:"group",attr:{name:"led-hot"},container:Ge,component:this}))),n=(0,i.pluckNumber)(he.showgaugeborder,1),o=(0,i.pluck)(he.gaugebordercolor,ce.gaugeBorderColor,"333333"),n?(0,i.pluckNumber)(he.gaugeborderthickness,ce.gaugeBorderThickness,2):0,(0,i.pluck)(he.gaugeborderalpha,i.HUNDREDSTRING),fe.gaugeFillColor=D=(0,i.pluck)(he.gaugefillcolor,he.ledbgcolor,u),S=(0,i.pluckNumber)(he.usesamefillcolor,0),y=(0,i.pluckNumber)(he.usesamefillbgcolor,S),ue.ledGap=N=(0,i.pluckNumber)(he.ledgap,2),ue.ledSize=F=(0,i.pluckNumber)(he.ledsize,2),fe.colorRangeFillMix=e=(0,i.getFirstDefinedValue)(he.colorrangefillmix,he.gaugefillmix,ce.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}"),fe.colorRangeFillRatio=t=(0,i.getFirstDefinedValue)(he.colorrangefillratio,he.gaugefillratio,ce.colorRangeFillRatio,he.gaugefillratio,"0,10,80,10"),fe.colorRangeGetter=W=this.getFromEnv("colorRange"),fe.colorArray=a=W&&W.getColorRangeArr(Fe,De),o=(0,i.pluck)(o,u).replace(k,i.HASHSTRING),r=(0,i.pluckNumber)(he.colorrangeborderalpha,he.gaugeborderalpha,100),l=(0,i.pluckNumber)(he.showshadow,1),n=(0,i.pluckNumber)(he.showgaugeborder,1),fe.colorRangeBorderThickness=s=n?(0,i.pluckNumber)(he.colorrangeborderthickness,he.gaugeborderthickness,2):0,M=De-Fe,_=Ce-(R=s/2),V=Te-R,O=Ce+Ae+R,I=Te+Se+R,F+=(L=(Le?Ae:Se)-F)%(E=N+F||1)/(P=parseInt(L/E,10)+1),ue.sizeGapSum=E=F+N,ue.perLEDValueLength=Z=M/P,G=Ce,B=Te,Y=(0,i.pluck)(he.clickurl),U=Re.getCleanValue(ce.getFromEnv("dataSource").value),S||y)for(d=0,p=a.length;d<p;d+=1)if(U>=a[d].minvalue&&U<=a[d].maxvalue){j=a[d].code||Me.getPlotColor(d),X=d;break}for(a&&a.length>0&&(z=a[0].code||Me.getPlotColor(0)),q=Ee?xe:Ce,$=Ee?Te:we,d=0,p=a&&a.length;d<p;d+=1)c=a[d],oe=c.minvalue-Fe,re=c.maxvalue-Fe,g=Ee&&!Le?{x:Ce,y:Te+oe*Se/(De-Fe),width:Ae,height:(re-oe)*Se/(De-Fe)}:Ee||Le?Ee&&Le?{x:Ce+(Ae-re*Ae/(De-Fe)),y:Te,width:(re-oe)*Ae/(De-Fe),height:Se}:!Ee&&Le?{x:Ce+oe*Ae/(De-Fe),y:Te,width:(re-oe)*Ae/(De-Fe),height:Se}:void 0:{x:Ce,y:Te+(Se-re*Se/(De-Fe)),width:Ae,height:(re-oe)*Se/(De-Fe)},te=(Q=v((c.maxvalue-Fe)/Z))-Be,Be=Q,ee=te*E,Le||Ee?!Le&&Ee?(g.height=ee-N,g.y=$,$+=ee):Le&&!Ee?(g.width=ee-N,g.x=q,q+=ee):Le&&Ee&&(g.width=ee-N,g.x=q-g.width,q-=ee):(g.height=ee-N,g.y=$-g.height,$-=ee),c.x=g.x,c.y=g.y,c.width=g.width,c.height=g.height,m=S?j:y&&d>X?z:z=c.code||Me.getPlotColor(d),C=(0,i.convertColor)((0,i.getColorCodeString)((0,i.pluck)(c.bordercolor,m),o),(0,i.pluckNumber)(c.borderalpha,r)),x=Me.parseColorMix(c.code,e),T=Me.parseAlphaList(c.alpha,x.length),w=(0,i.pluckNumber)(c.borderAlpha,r),A=T.split(i.COMMASTRING),A=b.apply(Math,A),A=b(s&&w||0,A),ae={x:g.x,y:g.y,width:g.width<0?0:g.width,height:g.height<0?0:g.height,r:0,"stroke-width":0,stroke:C,fill:(0,i.toRaphaelColor)({FCcolor:{color:m,ratio:t,alpha:T,angle:180}})},K=_e.setAnimation({el:ve&&ve[d]||"rect",attr:ae,container:ye,component:this,label:"plotBackground"}).toBack(),ve&&ve[d]||(pe.addGraphicalElement("colorRangeElems",K,!0),K.shadow({apply:l,opacity:A/100})),Oe.push({"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{color:(0,i.getDarkColor)((0,i.pluck)(m,u),80)+i.COMMASTRING+(0,i.getLightColor)((0,i.pluck)(m,u),80),alpha:(0,i.pluckNumber)(c.alpha,100),angle:Le?90:0}})}),Ie.push({"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{color:(0,i.pluck)(m,u),alpha:(0,i.pluckNumber)(c.alpha,100)}})});for(p=(ve=pe.getGraphicalElement("colorRangeElems")||[]).length-1;p>=d;)pe.removeGraphicalElement(ve[p]),p--;for(J={link:Y,value:U},ae={x:Ce,y:Te,width:Ae,height:Se,"stroke-width":0,fill:f},ke?_e.setAnimation({el:ke,attr:ae,container:Pe,component:this}):(ke=ge.canvasHotElement=_e.setAnimation({el:"rect",attr:ae,container:Pe,component:this}),He=!0),ke.data("eventArgs",J).data(h,Ve).data("setRolloverAttr",Oe).data("setRolloutAttr",Ie),He&&(Y&&ke.on("fc-click",function(e){ce.plotEventHandler(this,e)}),ke.hover((ie=ve,se=0,function(){if(0!==(ne=this).data(h))for(se=0,le=ie.length;se<le;se+=1)ie[se].attr(ne.data("setRolloverAttr")[se])}),function(e){var t,a,o=0;return function(){if(0!==(a=this).data(h))for(o=0,t=e.length;o<t;o+=1)e[o].attr(a.data("setRolloutAttr")[o])}}(ve))),Le?G+=E-N/2:B+=E-N/2,H=[],ae={path:["M",_,V,"L",O,V,O,I,_,I,"Z"],stroke:(0,i.convertColor)(o,r),"stroke-width":s,"stroke-linecap":"butt"},me?_e.setAnimation({el:me,attr:ae,component:this}):ge.canvasBorderElement=_e.setAnimation({el:"path",attr:ae,container:ye,component:this,label:"plotBackground"}).shadow({apply:l}).toBack(),d=1;d<P;d+=1)Le?(H.push("M",G,B,"L",G,B+Se),G+=E):(H.push("M",G,B,"L",G+Ae,B),B+=E);ae={path:H,stroke:(0,i.convertColor)(D,100),"stroke-width":N,"stroke-linecap":"butt"},be?_e.setAnimation({el:be,attr:ae,component:this}):(be=_e.setAnimation({el:"path",attr:ae,container:ye,component:this,label:"plotBackground"}),pe.addGraphicalElement("canvasElementPath",be)),this.drawShade()},a.drawShade=function(){var e,t,a,o,r,l,n,s,u,h,p,g,f,m,b,k=this.config,C=this.components.data,x=this.getFromEnv("chart"),T=x.getChildren("caption")[0],w=x.getChildren("subCaption")[0],A=T&&T.config.text&&T.config.height||0,S=T&&T.config.text&&T.config.captionPadding||0,y=w&&w.config.text&&w.config.height||0,N=x.getFromEnv("dataSource").chart,F=x.getFromEnv("animationManager"),D=this.getFromEnv("toolTipController"),E=this.getFromEnv("smartLabel"),L=x.config,M=L.canvasLeft,R=L.canvasTop,_=L.canvasHeight,V=L.canvasWidth,O=x.getChildContainer().plotGroup,I=this.getContainer("container"),P=this.getFromEnv("number-formatter"),G=k.isAxisReverse=(0,i.pluckNumber)(N.reverseaxis,x.isaxisreverse),B=k.isHorizontal=x.isHorizontal,H=C[0],W=H.graphics,j=H&&H.config,z=this.getContainer("dataLabelContainer"),U=x.getChildContainer("datalabelsGroup"),X=x.getChildren("canvas")[0],K=x.config.dataLabelStyle,Y=k.heightUsed,J=this.getFromEnv("scale").getLimit().min;E.setStyle(K),o=x.getChildren("canvas")[0].config.gaugeFillColor,I||(I=this.addContainer("container",F.setAnimation({el:"group",attr:{name:"shade"},container:O,component:this}))),z||(z=this.addContainer("dataLabelContainer",F.setAnimation({el:"group",attr:{name:"datalabel"},container:U,component:this,label:"labelGroup"}))),r=P.getCleanValue(j.setValue),H.graphics||(H.graphics={}),g=(r-J)/k.perLEDValueLength,f=v(g)*k.sizeGapSum-k.ledGap,m=Math.ceil(_-f),b=Math.ceil(V-f),G&&!B?n={x:M,y:R+f,width:V,height:m,r:0,"stroke-width":0,fill:(0,i.convertColor)(o,50)}:G||B?!G&&B?n={x:M+f,y:R,width:b,height:_,r:0,"stroke-width":0,fill:(0,i.convertColor)(o,50)}:G&&B&&(n={x:M,y:R,width:b,height:_,r:0,"stroke-width":0,fill:(0,i.convertColor)(o,50)}):n={x:M,y:R,width:V,height:m,r:0,"stroke-width":0,fill:(0,i.convertColor)(o,50)},H.graphics.element=F.setAnimation({el:H.graphics.element||"rect",attr:n,container:I,component:this,label:"plotRect"}),p=j.setTooltext===i.BLANK||void 0===j.setTooltext?j.toolTipValue:j.setTooltext,k.showTooltip?D.enableToolTip(X._graphics.canvasHotElement,p):D.disableToolTip(X._graphics.canvasHotElement),l=(s=parseInt(K.lineHeight,10))>Y?L.height-L.marginBottom-Y+s/2:L.height-L.marginBottom-s/2,l-=L.borderWidth,l-=(x._manageActionBarSpace&&x._manageActionBarSpace(.225*j.availableHeight)||{}).bottom,0===T.config.isOnTop&&(l-=A+y+S),W=H.graphics,j.displayValue!==c&&void 0!==j.displayValue&&k.showValue?(a=(e=E.getSmartText(j.displayValue,L.width,k.heightUsed)).text,t=e.tooltext||c,n={text:a,"text-anchor":d,x:V/2+M,y:l,"vertical-align":d,fill:K.color,direction:j.textDirection,"text-bound":[K.backgroundColor,K.borderColor,K.borderThickness,K.borderPadding,K.borderRadius,K.borderDash]},W.label=F.setAnimation({el:W.label||"text",attr:n,container:z,component:this,label:"text"}),k.showTooltip?D.enableToolTip(W.label,t):D.disableToolTip(W.label),(u=W.label.getBBox()).x+L.marginLeft<0&&(h=u.width-L.marginLeft,L.width<h&&(h=L.width-L.marginLeft),n={x:h/2},F.setAnimation({el:W.label,attr:n,component:this,label:"text"}))):(W.label&&D.disableToolTip(W.label),W.label=W.label&&F.setAnimation({el:W.label,component:this}))},t}(l["default"]);t["default"]=C},1008:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=a(187),l=a(195),n=a(202),s=o(a(1009)),c=(0,l.getDep)("redraphael","plugin"),u=i.BLANK,h=i.preDefStr.showHoverEffectStr,d=i.preDefStr.ROUND,p=i.preDefStr.miterStr,g=i.preDefStr.colors,f=Math,m=f.max,v=f.min,b=f.abs,k=g.FFFFFF,C=void 0!==window.document.documentElement.ontouchstart,x={"true":void 0,"false":"crisp"},T=i.preDefStr.POSITION_START,w=i.preDefStr.POSITION_MIDDLE,A=i.preDefStr.PLOTFILLCOLOR_STR,S=C?i.TOUCH_THRESHOLD_PIXELS:i.CLICK_THRESHOLD_PIXELS;(0,l.addDep)({name:"bulletAnimation",type:"animationRule",extension:s["default"]});var y=function(e){function t(){var t;return(t=e.call(this)||this).addData=function(){},t.removeData=function(){},t.components={},t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"bullet"},a.configure=function(e){if(!e)return!1;this.config.JSONData=e;var t,a,o,r,l,n,s,c,u,h=this.getFromEnv("chart"),p=this.config,g=this.config.JSONData,f=h.getFromEnv("dataSource").chart,v=this.getFromEnv("color-manager"),b=p.plotColor=v.getColor(A),C=(0,i.pluckNumber)(g.dashed,f.plotborderdashed),x=this.components.data,T=h.isBar,w=h.config.is3D,S=h.isStacked;this.setState("visible",1===(0,i.pluckNumber)(g.visible,1)),p.targetCapStyle=u=(0,i.pluck)(f.targetcapstyle,d).toLowerCase(),"butt"!==u&&u!==d&&"square"!==u&&"inherit"!==u&&(p.targetCapStyle=d),p.upperLimit=(0,i.pluckNumber)(f.upperlimit),p.lowerLimit=(0,i.pluckNumber)(f.lowerlimit),p.initAnimation=!0,t=p.showplotborder=(0,i.pluckNumber)(f.showplotborder,0),p.plotDashLen=a=(0,i.pluckNumber)(f.plotborderdashlen,5),p.plotDashGap=o=(0,i.pluckNumber)(f.plotborderdashgap,4),p.plotfillAngle=(0,i.pluckNumber)(360-f.plotfillangle,T?180:90),p.plotFillAlpha=l=(0,i.pluck)(g.alpha,f.plotfillalpha,i.HUNDREDSTRING),p.plotColor=b=(0,i.pluck)(f.plotfillcolor,b),p.isRoundEdges=r=(0,i.pluckNumber)(f.useroundedges,0),p.plotRadius=(0,i.pluckNumber)(f.useRoundEdges,p.isRoundEdges?1:0),p.plotFillRatio=(0,i.pluck)(g.ratio,f.plotfillratio),p.plotgradientcolor=(0,i.getDefinedColor)(f.plotgradientcolor,v.getColor("plotGradientColor")),p.showPlotBorderOnHover=(0,i.pluckNumber)(f.showplotborderonhover,0),p.plotBorderAlpha=(0,i.pluck)(f.plotborderalpha,l,i.HUNDREDSTRING),p.plotBorderColor=(0,i.pluck)(f.plotbordercolor,w?k:v.getColor("plotBorderColor")),p.plotBorderThickness=t?(0,i.pluckNumber)(f.plotborderthickness,0):0,p.plotBorderDashStyle=C?(0,i.getDashStyle)(a,o):"none",p.showValue=(0,i.pluckNumber)(g.showvalue,f.showvalue,1),p.valuePadding=(0,i.pluckNumber)(f.valuepadding,2),p.showShadow=r||w?(0,i.pluckNumber)(f.showshadow,1):(0,i.pluckNumber)(f.showshadow,v.getColor("showShadow")),p.showHoverEffect=(0,i.pluckNumber)(f.plothovereffect,f.showhovereffect,0),p.showTooltip=(0,i.pluckNumber)(f.showtooltip,1),p.stack100Percent=n=(0,i.pluckNumber)(h.stack100percent,f.stack100percent,0),p.definedGroupPadding=m((0,i.pluckNumber)(f.plotspacepercent),0),p.plotSpacePercent=m((0,i.pluckNumber)(f.plotspacepercent,20)%100,0),p.maxColWidth=(0,i.pluckNumber)(T?f.maxbarheight:f.maxcolwidth,50),p.showPercentValues=(0,i.pluckNumber)(f.showpercentvalues,S&&n?1:0),p.showPercentInToolTip=(0,i.pluckNumber)(f.showpercentintooltip,S&&n?1:0),p.plotPaddingPercent=(0,i.pluckNumber)(f.plotpaddingpercent),p.rotateValues=(0,i.pluckNumber)(f.rotatevalues)?270:0,p.placeValuesInside=(0,i.pluckNumber)(f.placevaluesinside,0),p.use3DLighting=(0,i.pluckNumber)(f.use3dlighting,1),x||(x=this.components.data=[]),p.plotAsDot=c=(0,i.pluckNumber)(f.plotasdot,0),p.plotFillPercent=(0,i.pluckNumber)(f.plotfillpercent,c?25:40),p.targetFillPercent=(0,i.pluckNumber)(f.targetfillpercent,60),p.targetThickness=(0,i.pluckNumber)(f.targetthickness,3),s=p.targetalpha=(0,i.pluckNumber)(f.targetalpha,100),p.targetColor=(0,i.convertColor)((0,i.pluck)(f.targetcolor,v.getColor(A)),s),this._setConfigure()},a._setConfigure=function(e){var t,a,o,r,l,n,s,c,u,h,d,p,g,f,b,k,C,x,T,w,A,S,y,N,F,D,E,L,M,R,_,V,O,I,P,G,B,H,W,j,z=this.getFromEnv("chart"),U=this.config,X=this.config.JSONData,K=e||X.data,Y=K&&K.length,J=e&&e.data.length||Y,Z=z.getFromEnv("dataSource").chart,q=this.getFromEnv("color-manager"),$=U.showplotborder,Q=U.showPlotBorderOnHover,ee=U.plotColor,te=(0,i.parseUnsafeString)((0,i.pluck)(Z.tooltipsepchar,i.COMMASPACE)),ae=(0,i.pluckNumber)(Z.seriesnameintooltip,1),oe=U.plotBorderThickness,re=U.isRoundEdges,ie=U.showHoverEffect,le=U.plotFillAngle,ne=U.plotBorderAlpha,se=U.plotBorderDashStyle,ce=this.components.data,ue=z.isBar,he=z.config.is3D,de=-Infinity,pe=Infinity,ge=this.getFromEnv("number-formatter"),fe=function(e){var o;return U.showTooltip?null===t?o=!1:void 0!==e?(l=[1,2,3,4,5,6,7,26,27],a={formattedValue:t,targetValue:g.target,targetDataValue:g.toolTipValueTarget},o=(0,i.parseTooltext)(e,l,a,h,Z,X)):(ae&&(r=(0,i.getFirstValue)(X&&X.seriesname)),o=r?r+te:i.BLANK,o+=g.toolTipValue?g.toolTipValue:i.BLANK):o=!1,o};for(ce||(ce=this.components.data=[]),V=0;V<J;V++)h=e?e&&e.data[V]:K[V],p=ce[V],g=p&&p.config,p||(p=ce[V]={}),p.config||(g=ce[V].config={}),g.showValue=(0,i.pluckNumber)(h.showvalue,U.showValues),g.valuePadding=(0,i.pluckNumber)(Z.valuepadding,2),g.setValue=d=ge.getCleanValue(h.value),g.target=O=ge.getCleanValue(h.target),g.setLink=(0,i.pluck)(h.link),g.toolTipValue=E=ge.dataLabels(d),g.toolTipValueTarget=ge.dataLabels(O),g.setDisplayValue=L=(0,i.parseUnsafeString)(h.displayvalue),g.displayValue=(0,i.pluck)(h.label,L,E),M=(0,i.pluckNumber)(h.dashed),R=(0,i.pluckNumber)(h.dashlen,void 0),_=s=(0,i.pluckNumber)(h.dashgap,s),de=m(de,d,O),pe=v(pe,d,O),g.plotBorderDashStyle=u=1===M?(0,i.getDashStyle)(R,_):0===M?"none":se,ee=(0,i.pluck)(h.color,U.plotColor),c=(0,i.pluck)(h.alpha,U.plotFillAlpha),d<0&&!re&&(n=le,le=ue?180-le:360-le),g.colorArr=f=(0,i.getColumnColor)(ee,c,void 0,le,re,U.plotBorderColor,ne.toString(),ue?1:0,!!he),0!==ie&&(b=(0,i.pluck)(h.hovercolor,X.hovercolor,Z.plotfillhovercolor,Z.columnhovercolor,ee),k=(0,i.pluck)(h.hoveralpha,X.hoveralpha,Z.plotfillhoveralpha,Z.columnhoveralpha,c),!(0,i.pluck)(h.hovergradientcolor,X.hovergradientcolor,Z.plothovergradientcolor,U.plotgradientcolor)&&i.BLANK,C=(0,i.pluck)(h.hoverratio,X.hoverratio,Z.plothoverratio,void 0),x=(0,i.pluckNumber)(360-h.hoverangle,360-X.hoverangle,360-Z.plothoverangle,le),T=(0,i.pluck)(h.borderhovercolor,X.borderhovercolor,Z.plotborderhovercolor,Z.plotfillhovercolor,U.plotBorderColor),w=(0,i.pluck)(h.borderhoveralpha,X.borderhoveralpha,Z.plotborderhoveralpha,ne,c),A=(0,i.pluckNumber)(h.borderhoverthickness,X.borderhoverthickness,Z.plotborderhoverthickness,oe),S=(0,i.pluckNumber)(h.borderhoverdashed,X.borderhoverdashed,Z.plotborderhoverdashed),y=(0,i.pluckNumber)(h.borderhoverdashgap,X.borderhoverdashgap,Z.plotborderhoverdashgap,void 0),N=(0,i.pluckNumber)(h.borderhoverdashlen,X.borderhoverdashlen,Z.plotborderhoverdashlen,s),F=S?(0,i.getDashStyle)(N,y):u,1===ie&&b===ee&&(b=(0,i.getDarkColor)(b,90)),D=(0,i.getColumnColor)(b,k,C,x,re,T,w.toString(),ue?1:0,!1),g.setPlotRolloutAttr={fill:he?[(0,i.toRaphaelColor)(f[0]),!U.use3DLighting]:(0,i.toRaphaelColor)(f[0]),stroke:$&&(0,i.toRaphaelColor)(f[1]),"stroke-width":oe,"stroke-dasharray":u},g.setPlotRolloverAttr={fill:he?[(0,i.toRaphaelColor)(D[0]),!U.use3DLighting]:(0,i.toRaphaelColor)(D[0]),stroke:(0,i.toRaphaelColor)(D[1]),"stroke-width":Q?A||1:A,"stroke-dasharray":F}),0!==ie&&(ie||Z.targethovercolor||Z.targethoveralpha||0===Z.targethoveralpha||Z.targethoverthickness||0===Z.targethoverthickness)&&(ie=!0,I={},P={},G=(0,i.pluckNumber)(Z.targethoverthickness,U.targetThickness+2),U.targetThickness!==G&&(I["stroke-width"]=G,P["stroke-width"]=U.targetThickness),B=(0,i.pluck)(Z.targethovercolor,"{dark-10}"),H=(0,i.pluckNumber)(Z.targethoveralpha,U.targetalpha),G&&(P.stroke=U.targetColor,W=/\{/.test(B),I.stroke=(0,i.convertColor)(W?q.parseColorMix((0,i.pluck)(Z.targetcolor,ee),B)[0]:B,H)),g.tagetHoverAttr=I,g.targetOutAttr=P),t=g.toolTipValue,o=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(h.tooltext,X.plottooltext,Z.plottooltext))),g.toolText=fe(o),g.setTooltext=g.toolText,n&&(le=n),j=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(h.tooltexttarget,X.targettooltext,Z.targettooltext))),g.toolTextTarget=fe(j);U.maxValue=de,U.minValue=pe},a._manageSpace=function(e){var t,a,o,r=this.config,l=this.components.data,n=this.getFromEnv("chart"),s=n.config,c=n.getFromEnv("smartLabel"),u=s.dataLabelStyle,h=(0,i.pluckNumber)(parseInt(u.lineHeight,10),12),d=e,p=r.valuePadding,g=0,f=0;for(o=(t=l[f])&&t.config,c.useEllipsesOnOverflow(s.useEllipsesWhenOverflow),c.setStyle(u);f<1;f+=1)r.showValue&&(a=c.getOriSize(o.toolTipValue),o.toolTipValue===i.BLANK&&(a={height:h}),a.height>0&&(g=a.height+p),g>d&&(g=d));return r.heightUsed=g,{top:0,bottom:g}},a._manageSpaceHorizontal=function(e){var t,a,o,r=this.config,l=this.components.data,n=this.getFromEnv("chart"),s=n.config,c=n.getFromEnv("smartLabel"),h=s.dataLabelStyle,d=(0,i.pluckNumber)(parseInt(h.lineHeight,10),12),p=e,g=r.valuePadding,f=0,m=0;for(o=(t=l[m])&&t.config,c.useEllipsesOnOverflow(s.useEllipsesWhenOverflow),c.setStyle(h);m<1;m+=1)o&&o.displayValue!==u&&void 0!==o.displayValue&&r.showValue&&(a=c.getOriSize(o.displayValue),o.displayValue===i.BLANK&&(a={height:d}),a.height>0&&(f=a.width+g+2),f>p&&(f=p));return r.widthUsed=f,{top:0,right:f}},a.updateData=function(e,t,a){var o=this.config,r=o.maxValue,i=o.prevMin,l=this.getFromEnv("chart"),n=this.groupManager||this,s=this.getFromEnv("scale");this._setConfigure(e,t),this.setMaxMin(),o.maxValue===r&&o.minValue===i||(this.config.maxminFlag=!0),a&&(l._setAxisLimits(),s.draw(),n.draw())},a.setMaxMin=function(){var e,t,a=this.components.data,o=this.config,r=a.length,i=-Infinity,l=+Infinity;for(e=0;e<r;e++)a[e]&&(t=a[e].config,i=m(i,t.setValue,t.target),l=v(l,t.setValue,t.target));o.maxValue=i,o.minValue=l},a.draw=function(){var e,t,a,o,r,l,n,s,c,u,h,d,p,g,f,v,b,k,C,x,T,w,A,S,y,N=this.getFromEnv("chart"),F=N.getFromEnv("dataSource").chart,D=N.config,E=N.getChildren("canvas")[0],L=E.config,M=this.getGraphicalElement("backgroundRect")||[],R=D.canvasLeft,_=D.canvasTop,V=D.canvasWidth,O=D.canvasHeight,I=E.getContainer("canvasGroup"),P=this.getFromEnv("scale"),G=P.getLimit().min,B=P.getLimit().max,H=N.isHorizontal,W=this.getFromEnv("color-manager"),j=N.getFromEnv("animationManager");for(t=H?270:180,L.colorRangeFillMix=a=(0,i.getFirstDefinedValue)(F.colorrangefillmix,F.gaugefillmix,N.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}"),L.colorRangeFillRatio=o=(0,i.getFirstDefinedValue)(F.colorrangefillratio,F.gaugefillratio,N.colorRangeFillRatio,F.gaugefillratio,"0,10,80,10"),L.colorRangeGetter=r=N.getFromEnv("colorRange"),L.colorArray=l=r&&r.getColorRangeArr(G,B),n=(0,i.pluck)(F.colorrangebordercolor,F.gaugebordercolor,"{dark-20}"),s=(0,i.pluckNumber)(F.colorrangeborderalpha,F.gaugeborderalpha,100),c=(0,i.pluckNumber)(F.showshadow,1),u=(0,i.pluckNumber)(F.showgaugeborder,F.showcolorrangeborder,0),L.colorRangeBorderThickness=h=u?(0,i.pluckNumber)(F.colorrangeborderthickness,F.gaugeborderthickness,2):0,f=N.getFromEnv("dataSource").colorrange&&l&&l.length||0,p=0,g=0;p<f;p+=1)d=l[p],S=d.minvalue-G,y=d.maxvalue-G,v=H?H?{x:R+S*V/(B-G),y:_,width:(y-S)*V/(B-G),height:O}:void 0:{x:R,y:_+(O-y*O/(B-G)),width:V,height:(y-S)*O/(B-G)},d.x=v.x,d.y=v.y,d.width=v.width,d.height=v.height,b=d.code,k=(0,i.convertColor)((0,i.getColorCodeString)((0,i.pluck)(d.bordercolor,b),n),(0,i.pluckNumber)(d.borderalpha,s)),C=W.parseColorMix(d.code,a),x=W.parseAlphaList(d.alpha,C.length),T=(0,i.pluckNumber)(d.borderAlpha,s),w=x.split(i.COMMASTRING),w=m.apply(Math,w),w=m(h&&T||0,w),e={x:v.x,y:v.y,width:v.width,height:v.height,r:0,"stroke-width":h,stroke:k,fill:(0,i.toRaphaelColor)({FCcolor:{color:C.toString(),ratio:o,alpha:x,angle:t}})},A=j.setAnimation({el:M[p]||"rect",attr:e,container:I,component:this,doNotRemove:!0,label:"backgroundRect"}),!M[p]&&this.addGraphicalElement("backgroundRect",A,!0),A.show(),A.shadow({apply:c,opacity:w/100}),g++;for(f=M&&M.length;f>g;)M&&M[f-1]&&this.removeGraphicalElement(M[f-1]),f--;this.drawPlot()},a.drawPlot=function(){var e,t,a,o,r,l,n,s,d,g,f,m,v,k,C,A,y,N,F,D,E,L,M,R,_,V,O,I,P,G,B,H,W,j,z,U,X,K,Y=this.config,J=this.getState("visible"),Z=this.getFromEnv("chart"),q=Z.getChildren("caption")[0],$=Z.getChildren("subCaption")[0],Q=q&&q.config.text&&q.config.height||0,ee=q&&q.config.text&&q.config.captionPadding||0,te=$&&$.config.text&&$.config.height||0,ae=this.getFromEnv("toolTipController"),oe=Z.config,re=oe.canvasLeft,ie=oe.canvasRight,le=oe.canvasTop,ne=oe.canvasBottom,se=oe.canvasHeight,ce=oe.canvasWidth,ue=this.getFromEnv("smartLabel"),he=this.getFromEnv("scale"),de=Z.getChildContainer().plotGroup,pe=c,ge=Y.showTooltip,fe=this.components.data,me=Y.showShadow,ve=Y.plotBorderThickness,be=Y.plotRadius,ke=this.getContainer("container"),Ce=this.getContainer("targetContainer"),xe=this.getContainer("dataLabelContainer"),Te=this.getContainer("shadowContainer"),we=this.getContainer("shadowTargetContainer"),Ae=!1,Se=Z.getChildContainer("datalabelsGroup"),ye=Z.config.dataLabelStyle,Ne=Z.getFromEnv("animationManager"),Fe=Y.heightUsed,De=Y.lowerLimit,Ee=Y.showHoverEffect,Le=function(e){Z.plotEventHandler(this,e)},Me=function(e){return function(t){0!==this.data(h)&&e.attr(this.data("setRolloverAttr")),Z.plotEventHandler(this,t,"DataPlotRollOver")}},Re=function(e){return function(t){0!==this.data(h)&&e.attr(this.data("setRolloutAttr")),Z.plotEventHandler(this,t,"DataPlotRollOut")}},_e=function(){this.hide()};for(y=Ne.setAnimation({el:ke||"group",attr:{name:"bar"},component:this,container:de,doNotRemove:!0,label:"group"}),ke||(y=this.addContainer("container",y)),F=Ne.setAnimation({el:xe||"group",attr:{name:"datalabel"},component:this,container:Se,doNotRemove:!0,label:"labelGroup"}),xe||(F=this.addContainer("dataLabelContainer",F)),N=Ne.setAnimation({el:Ce||"group",attr:{name:"target"},container:de,doNotRemove:!0,component:this,label:"group"}),Ce||(N=this.addContainer("targetContainer",N)),D=Ne.setAnimation({el:Te||"group",attr:{name:"shadow"},component:this,container:de,doNotRemove:!0,label:"group"}),Te||(D=this.addContainer("shadowContainer",D.toBack()),J||D.hide()),E=Ne.setAnimation({el:we||"group",attr:{name:"shadow"},component:this,container:de,doNotRemove:!0,label:"group"}),we||(E=this.addContainer("shadowTargetContainer",E.toBack()),J||E.hide()),ue.setStyle(ye),t=0;t<1;t++)(k=(A=(f=fe[t])&&f.config).setValue)<0&&(Ae=!0),v=A.setLink,L=A.colorArr,j=!1,f.graphics||(fe[t].graphics={}),C=A.displayValue,Z.isHorizontal?(d=Y.plotFillPercent/100*se,o=b(le+ne)/2-d/2,Y.plotAsDot?(a=he.getPixel(k)-d/2,G=d):(z=De&&De<=k&&he.config.axisRange.min>=0?De:0,a=Ae?he.getPixel(k):he.getPixel(z),G=Ae?he.getPixel(0)-he.getPixel(k):he.getPixel(k)-he.getPixel(z)),a=(r=pe.crispBound(a,o,G,d,ve)).x,o=r.y,s=r.width,d=r.height,g=A.toolText===i.BLANK?A.toolTipValue:A.toolText,M=A.plotBorderDashStyle,e={x:a,y:o,width:s||1,height:d,r:be,fill:(0,i.toRaphaelColor)(L[0]),stroke:(0,i.toRaphaelColor)(L[1]),"stroke-width":ve,"stroke-dasharray":M,"stroke-linejoin":p,visibility:J},null!==k&&(f.graphics.element&&f.graphics.element.show(),(v||ge)&&d<S&&(o-=(S-d)/2,d=S)),A.elemCreated=void 0!==f.graphics.element,k?m=f.graphics.element=Ne.setAnimation({el:f.graphics.element||"rect",attr:e,container:y,component:this,label:"plotRect"}):f.graphics.element&&Ne.setAnimation({el:f.graphics.element,component:this,doNotRemove:!0,callback:_e,label:"plotRect"}),m&&m.shadow({opacity:me},D).data("BBox",r),A.target&&(g=A.toolTipValueTarget,_=Y.targetFillPercent/100*se,R=["M",V=O=he.getPixel(A.target),I=(le+ne)/2-_/2,"L",O,P=I+_],X={stroke:Y.targetColor,"stroke-width":Y.targetThickness,"stroke-linecap":Y.targetCapStyle,path:R,"shape-rendering":x[!1]},f.graphics.targetElement&&f.graphics.targetElement.show()),j=void 0===f.graphics.targetElement,K=f.graphics.targetElement=Ne.setAnimation({el:f.graphics.targetElement||"path",attr:X,container:N,component:this,doNotRemove:!0,callback:A.target?i.stubFN:_e,label:"path"}),A.target&&(m=f.graphics.targetElement),B=parseInt(ye.lineHeight,10),o=.5*(le+se),C!==u&&void 0!==C&&Y.showValue&&(C=(n=ue.getSmartText(C,Y.widthUsed,oe.height)).text,l=n.tooltext,U={text:C,"text-anchor":T,x:ie+Y.valuePadding+2,y:o,"vertical-align":i.POSITION_TOP,fill:ye.color,direction:A.textDirection,"text-bound":[ye.backgroundColor,ye.borderColor,ye.borderThickness,ye.borderPadding,ye.borderRadius,ye.borderDash]},f.graphics.label&&f.graphics.label.show()),f.graphics.label=Ne.setAnimation({el:f.graphics.label||"text",attr:U,component:this,container:F,doNotRemove:!0,callback:C&&Y.showValue?i.stubFN:_e,label:"text"}),(H=f.graphics.label.getBBox()).x+oe.marginLeft<0&&(W=H.width-oe.marginLeft,oe.width<W&&(W=oe.width-oe.marginLeft),U.x=W/2,Ne.setAnimation({el:f.graphics.label,attr:U,component:this,doNotRemove:!0,callback:C&&Y.showValue?i.stubFN:_e,label:"text"}))):(G=Y.plotFillPercent/100*ce,a=b(re+ie)/2-G/2,Y.plotAsDot?(o=he.getPixel(k)-G/2,d=G):(Y.base=z=De&&De<=k&&he.config.axisRange.min>=0?De:0,o=Ae?he.getPixel(0):he.getPixel(k),d=Ae?he.getPixel(k)-he.getPixel(0):he.getPixel(De&&De<=k&&he.config.axisRange.min>=0?De:0)-o),a=(r=pe.crispBound(a,o,G,d,ve)).x,o=r.y,s=r.width,d=r.height,g=A.toolText===i.BLANK?A.toolTipValue:A.toolText,M=A.plotBorderDashStyle,e={x:a,y:o,width:s,height:d||1,r:be,fill:(0,i.toRaphaelColor)(L[0]),stroke:(0,i.toRaphaelColor)(L[1]),"stroke-width":ve,"stroke-dasharray":M,"stroke-linejoin":p,visibility:J},f._xPos=a,f._yPos=o+d,f._height=d,f._width=s,null!==k&&(f.graphics.element&&f.graphics.element.show(),(v||ge)&&d<S&&(o-=(S-d)/2,d=S)),A.elemCreated=void 0!==f.graphics.element,k?m=f.graphics.element=Ne.setAnimation({el:f.graphics.element||"rect",attr:e,container:y,component:this,label:"plotRect"}):f.graphics.element&&Ne.setAnimation({el:f.graphics.element,label:"plotRect",doNotRemove:!0,callback:_e,component:this}),m&&m.shadow({opacity:me},D).data("BBox",r),A.target&&(g=A.toolTipValueTarget,O=(V=(re+ie)/2-(_=Y.targetFillPercent/100*ce)/2)+_,R=["M",V,I=P=he.getPixel(A.target),"L",O,P],X={stroke:Y.targetColor,"stroke-width":Y.targetThickness,"stroke-linecap":Y.targetCapStyle,path:R,"shape-rendering":x[!1]},f.graphics.targetElement&&f.graphics.targetElement.show()),j=void 0===f.graphics.targetElement,K=f.graphics.targetElement=Ne.setAnimation({el:f.graphics.targetElement||"path",attr:X,container:N,component:this,doNotRemove:!0,callback:A.target?i.stubFN:_e,label:"path"}),o=(B=parseInt(ye.lineHeight,10))>Fe?oe.height-oe.marginBottom-Fe+B/2:oe.height-oe.marginBottom-B/2,o-=oe.borderWidth,o-=(Z._manageActionBarSpace&&Z._manageActionBarSpace(.225*A.availableHeight)||{}).bottom,0===q.config.isOnTop&&(o-=Q+te+ee),C!==u&&void 0!==C&&Y.showValue&&(C=(n=ue.getSmartText(C,oe.width,Fe)).text,l=n.tooltext||u,U={text:C,"text-anchor":w,x:ce/2+re,y:o,"vertical-align":w,fill:ye.color,direction:A.textDirection,"text-bound":[ye.backgroundColor,ye.borderColor,ye.borderThickness,ye.borderPadding,ye.borderRadius,ye.borderDash]},f.graphics.label&&f.graphics.label.show()),f.graphics.label=Ne.setAnimation({el:f.graphics.label||"text",attr:U,component:this,container:F,doNotRemove:!0,callback:C&&Y.showValue?i.stubFN:_e,label:"text"}),(H=f.graphics.label.getBBox()).x+oe.marginLeft<0&&(W=H.width-oe.marginLeft,oe.width<W&&(W=oe.width-oe.marginLeft),U.x=W/2,Ne.setAnimation({el:f.graphics.label,attr:U,component:this,doNotRemove:!0,callback:C&&Y.showValue?i.stubFN:_e,label:"text"}))),f.graphics.element&&(f.graphics.element.data(h,Ee).data("setRolloverAttr",A.setPlotRolloverAttr||{}).data("setRolloutAttr",A.setPlotRolloutAttr||{}),A.elemCreated||f.graphics.element.on("fc-click",Le).hover(Me(f.graphics.element),Re(f.graphics.element)),ge?(ae.enableToolTip(K,g),ae.enableToolTip(f.graphics.element,A.toolText),ae.enableToolTip(f.graphics.label,l)):(ae.disableToolTip(K),ae.disableToolTip(f.graphics.element),ae.disableToolTip(f.graphics.label))),j&&K.on("fc-click",Le).hover(Me(K),Re(K)),K.shadow({opacity:me},D).data("BBox",r).data("eventArgs",void 0).data("groupId",void 0).data(h,Ee).data("setRolloverAttr",A.tagetHoverAttr).data("setRolloutAttr",A.targetOutAttr)},a.getDataLimits=function(){var e,t,a,o=this.config,r=this.pointerArr&&this.pointerArr.pointer,i=this.getFromEnv("chart").getFromEnv("dataSource").colorrange,l=i&&i.color,n=r&&r.length,s=o.upperLimit,c=o.lowerLimit,u=o.maxValue,h=o.minValue;for(n=l&&l.length,e=0;e<n;e++)t=Number(l[e].maxvalue),a=Number(l[e].minvalue),s&&t>s&&(t=s),c&&a<c&&(a=c),u=m(u,t),h=v(h,a);return{forceMin:!0,forceMax:!0,max:u,min:h}},t}(n.ComponentInterface);t["default"]=y},1009:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;var o=a(187),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i={"initial.dataset.bullet":function(){var e=this.config,t=this.getFromEnv("chart"),a=this.getFromEnv("scale"),i=a.max,l=a.min,n=i<=0&&l<0?i:i>0&&l>=0?l:0,s=a.yBasePos=a.getPixel(n);return{"plotRect.appearing":function(){var o,r=t.isHorizontal;return e.plotAsDot||(s=a.getPixel(e.base)),o=r?{width:0}:{height:0,y:s},[{initialAttr:function(){return o},slot:"middle"}]},"plotRect.updating":null,"path.appearing":function(){return r[0].slot=o.MIDDLESTR,r},"path.updating":null,"text.appearing":function(){return r[0].slot=o.FINALSTR,r},"text.updating":null,"labelGroup.appearing":function(){return r[0].slot=o.FINALSTR,r},"labelGroup.updating":null,"backgroundRect.appearing":function(){return r[0].slot=o.INITIALSTR,r},"backgroundRect.updating":null}}};t["default"]=i},1010:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;var o=a(187),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i={"initial.dataset.led":function(){var e=this.config,t=this.getFromEnv("chart").config,a=t.canvasLeft,i=t.canvasTop,l=t.canvasHeight,n=t.canvasWidth;return{"plotRect.appearing":function(){var t,o=e.isAxisReverse,r=e.isHorizontal;return o&&!r?t={y:i,height:l}:o||r?!o&&r?t={x:a,width:n}:o&&r&&(t={width:n}):t={height:l},[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:t,finalAttr:{opacity:1},slot:"middle"}]},"plotRect.updating":null,"text.appearing":function(){return r[0].slot=o.FINALSTR,r},"text.updating":null,"plotBackground.appearing":function(){return[Object.assign({},r[0],{slot:"initial"})]},"plotBackground.updating":null}}};t["default"]=i},1011:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(1005))["default"];t["default"]=r},1012:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(1013))["default"];t["default"]=r},1013:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=a(187),l=o(a(1014)),n=o(a(982)),s=o(a(999)),c=a(993),u=i.BLANK,h="bottom",d="top",p=function(e){function t(){var t;return(t=e.call(this)||this).showRTvalue=!1,t.canvasPadding=!1,t.isHorizontal=!0,t.config.isAxisOpposite=!1,t.config.scalePosition=h,t.config.canBeScalePosition=d,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.minorTMNumber=4,t.isRealTime=!0,t.colorRange=!0,t.rtParserModify=!0,t.registerFactory("dataset",function(e){var t=e.getFromEnv("dataSource").pointers;(0,i.datasetFactory)(e,s["default"],"dataset",1,[t])},["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Hlineargauge"};var a=t.prototype;return a.getName=function(){return"Hlineargauge"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Horizontal Linear Gauge",t.hasLegend=!1,t.defaultDatasetType="hlineargauge",t.skipCanvasDrawing=!0},a.configure=function(t){e.prototype.configure.call(this,t);var a=this.getFromEnv("dataSource").colorrange;a&&a.color&&a.color.length?((0,i.componentFactory)(this,l["default"],"colorRange",1,[{colorRange:a,numberFormatter:this.getFromEnv("number-formatter")}]),this.addToEnv("colorRange",this.getChildren("colorRange")[0])):this.deleteFromEnv("colorRange")},a._configueTrendPoints=function(){var e,t,a,o,r,l=this.getFromEnv("dataSource"),n=this.config,s=n.style,c=l.trendpoints&&l.trendpoints.point,h=this.getFromEnv("scale").config,d=h.axisRange,p=d.max,g=d.min,f=h.scaleFactor||1,m=this.getFromEnv("color-manager"),v=n.trendPointConfig=[],b=l.chart,k=c.length;for(s.trendStyle={fontFamily:s.outCanfontFamily,color:s.outCancolor,fontSize:s.outCanfontSize},t=0;t<k;t++)e=c[t],r=(a=(0,i.pluckNumber)(e.startvalue,e.value))!==(o=(0,i.pluckNumber)(e.endvalue,a)),a<=p&&a>=g&&o<=p&&o>=g&&v.push({startValue:a,endValue:o,tooltext:(0,i.getValidValue)((0,i.parseUnsafeString)(e.markertooltext)),displayValue:(0,i.getValidValue)((0,i.parseUnsafeString)(e.displayvalue),r?u:this.getFromEnv("number-formatter").scale(a)),showOnTop:(0,i.pluckNumber)(e.showontop,b.ticksbelowgauge,1),color:(0,i.pluck)(e.color,m.getColor("trendLightColor")),textColor:e.color,alpha:(0,i.pluckNumber)(e.alpha,99),thickness:(0,i.pluckNumber)(e.thickness,1),dashStyle:Number(e.dashed)?(0,i.getDashStyle)(e.dashlen||2,e.dashgap||2):i.BLANK,useMarker:(0,i.pluckNumber)(e.usemarker,0),markerColor:(0,i.convertColor)((0,i.pluck)(e.markercolor,e.color,m.getColor("trendLightColor")),100),markerBorderColor:(0,i.convertColor)((0,i.pluck)(e.markerbordercolor,e.bordercolor,m.getColor("trendDarkColor")),100),markerRadius:(0,i.pluckNumber)((0,i.pluckNumber)(e.markerradius)*f,5),markerToolText:(0,i.getFirstValue)(e.markertooltext),trendValueDistance:(0,i.pluckNumber)((0,i.pluckNumber)(e.trendvaluedistance)*f,d.tickInterval),isTrendZone:r});i.stableSort&&(0,i.stableSort)(n.trendPointConfig,function(e,t){return e.startValue-t.startValue})},a._getData=function(e,t){return c._getData.call(this,e,t)},a._setData=function(e,t){c._setData.call(this,e,t)},a._getDataForId=function(e,t){return c._getDataForId.call(this,e,t)},a._setDataForId=function(e,t){c._setDataForId.call(this,e,t)},t}(n["default"]);t["default"]=p},1014:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=a(187),l=a(202),n=(0,i.getComparatorFN)(!0,"minvalue"),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"colorComponent"},a.getName=function(){return"colorGradient"},a.configure=function(e){var t,a,o,r,l,s,c,u,h,d,p=this,g=p.colorArr,f=p.getFromEnv("color-manager"),m=p.getFromEnv("number-formatter"),v=e.colorRange&&(0,i.extend2)({},e.colorRange).color,b=f.getColor("paletteColors");if(delete p.defaultAsigned,b instanceof Array||(b=f.getPlotColor(0)),v&&v.length>0){for(r=l=v.length-1;r>=0;r-=1)(a=v[r])&&(a.minvalue=m.getCleanValue(a.minvalue),a.maxvalue=m.getCleanValue(a.maxvalue),null===a.minvalue&&(null!==a.maxvalue?a.minvalue=a.maxvalue:r!==l&&v.splice(r,1)),void 0!==a.label&&(a.label=(0,i.parseUnsafeString)(a.label)),void 0!==a.name&&(a.name=(0,i.parseUnsafeString)(a.name)),null!==a.maxvalue&&a.minvalue>a.maxvalue&&(s=a.minvalue,a.minvalue=a.maxvalue,a.maxvalue=s));for(v.sort(n),v[0].code||(v[0].code=b[0]),void 0===(0,i.getValidValue)(v[0].alpha)&&(v[0].alpha=i.HUNDREDSTRING),r=0,l=v.length-1;r<l;r+=1)if(d=r+1,a=v[r],(o=v[d]).code||(o.code=b[d]),void 0===(0,i.getValidValue)(o.alpha)&&(o.alpha=i.HUNDREDSTRING),null===a.maxvalue&&(a.maxvalue=o.minvalue),a.maxvalue>o.minvalue){if(a.maxvalue>o.maxvalue){for((c=(0,i.extend2)(a)).maxvalue=a.maxvalue,h=c.minvalue=o.maxvalue,u=r+2;u<l&&v[u].minvalue<h;)u+=1;v.splice(u,0,c),l+=1}a.maxvalue=o.minvalue}null===(a=v[r]).maxvalue&&(a.maxvalue=a.minvalue)}v&&v.length||(t||(t={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),v=[t],p.defaultAsigned=!0),p.colorArr=v||g},a.getColorObj=function(e){for(var t,a,o=this.colorArr,r=0,i=o.length,l={};r<i;r+=1){if(l.index=r,t=o[r],a=o[r+1],e<t.minvalue)return l.nextObj=t,l;if(e>=t.minvalue&&e<=t.maxvalue)return l.colorObj=t,a&&e===a.minvalue&&(l.nextObj=a,l.isOnMeetPoint=!0),l;l.prevObj=t}return l.index=r-1,l},a.getColorRangeArr=function(e,t){var a,o,r,l,n,s,c,u,h=this.colorArr,d=[],p=e,g=t;if(!this.defaultAsigned&&(p>g&&(a=p,p=g,g=a),p<g&&(l=this.getColorObj(p),s=this.getColorObj(g),l&&s))){for(n=p,o=l.index,r=s.index;o<=r;o+=1)(c=(0,i.extend2)({},h[o])).minvalue!==n&&(c.minvalue=n),d.push(c),u=c,n=c.maxvalue;u.maxvalue=g}return d},t}(l.ComponentInterface);t["default"]=s},1015:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(1016))["default"];t["default"]=r},1016:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=a(187),l=o(a(1017)),n=o(a(979)),s=o(a(982)),c=i.preDefStr.gaugeFillColorStr,u=i.preDefStr.gaugeBorderColorStr,h=function(e){return null!=e},d="right",p="left",g=function(e){function t(){var t;return(t=e.call(this)||this).showRTvalue=!1,t.canvasPadding=!1,t.defaultPaletteOptions=(0,i.extend2)((0,i.extend2)({},i.defaultGaugePaletteOptions),{gaugeBorderColor:["545454","60634E","415D6F","845001","68001B"],gaugeFillColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]},!1,!0),t.isHorizontal=!1,t.config.isAxisOpposite=!0,t.config.scalePosition=d,t.config.canBeScalePosition=p,t.hasCanvas=!0,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.isRealTime=!0,t.registerFactory("dataset",n["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Thermometer"};var a=t.prototype;return a.getName=function(){return"Thermometer"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.alignCaptionWithCanvas=1,t.friendlyName="Horizontal Linear Gauge",t.hasLegend=!1,t.defaultDatasetType="thermometer",t.animationeffect="easeOut",t.skipCanvasDrawing=!0},a._getData=function(){var e=this.getChildren("dataset");if(e&&e[0])return e[0].config.value},a._parseSpecialConfig=function(){var e,t=this.config,a=this.getFromEnv("dataSource").chart,o=this.getFromEnv("number-formatter"),r=this.getFromEnv("color-manager");t.use3DLighting=(0,i.pluckNumber)(a.use3dlighting,1),t.thmOriginX=(0,i.pluckNumber)(a.thmoriginx,a.gaugeoriginx),t.thmOriginY=(0,i.pluckNumber)(a.thmoriginy,a.gaugeoriginy),t.thmBulbRadius=(0,i.pluckNumber)(o.getCleanValue(a.thmbulbradius,!0)),t.thmHeight=(0,i.pluckNumber)(o.getCleanValue((0,i.pluckNumber)(a.thmheight,a.gaugeheight),!0)),t.origW=(0,i.pluckNumber)(a.origw),t.origH=(0,i.pluckNumber)(a.origh),t.xDefined=h(t.thmOriginX),t.yDefined=h(t.thmOriginY),t.rDefined=h(t.thmBulbRadius),t.hDefined=h(t.thmHeight),t.gaugeFillColor=(0,i.pluck)(a.gaugefillcolor,a.thmfillcolor,r.getColor(c)),t.gaugeFillAlpha=(0,i.pluckNumber)(a.gaugefillalpha,a.thmfillalpha,i.HUNDREDSTRING),t.showGaugeBorder=(0,i.pluckNumber)(a.showgaugeborder,1),e=t.showGaugeBorder?(0,i.pluckNumber)(a.gaugeborderalpha,40):0,t.gaugeBorderColor=(0,i.convertColor)((0,i.pluck)(a.gaugebordercolor,r.getColor(u)),e),t.gaugeBorderThickness=(0,i.pluckNumber)(a.gaugeborderthickness,1),t.gaugeContainerColor=(0,i.pluck)(a.thmglasscolor,(0,i.getLightColor)(t.gaugeFillColor,30))},a.allocatePosition=function(){var e=this.config,t=e.canvasLeft,a=e.canvasRight,o=e.canvasTop,r=e.canvasWidth,i=e.canvasHeight,l=e.canvasBottom;e.gaugeStartX=t,e.gaugeEndX=a,e.gaugeStartY=o,e.gaugeEndY=l,e.gaugeCenterX=t+.5*r,e.gaugeCenterY=o+.5*i,e.gaugeRadius=.5*r},a.getDSdef=function(){return l["default"]},t}(s["default"]);t["default"]=g},1017:function(e,t,a){"use strict";var o=a(181);t.__esModule=!0,t["default"]=void 0;var r=o(a(201)),i=a(187),l=a(195),n=o(a(1018)),s=o(a(989)),c=i.preDefStr.configStr,u=i.preDefStr.POSITION_TOP,h=i.preDefStr.POSITION_MIDDLE,d="M",p="A",g="L",f="Z",m=window,v=m.navigator.userAgent,b="rgba(192,192,192,"+(/msie/i.test(v)&&!m.opera?.002:1e-6)+")";(0,l.addDep)({name:"thermometerAnimation",type:"animationRule",extension:n["default"]});var k=function(e){function t(){var t;return(t=e.call(this)||this).addData=i.stubFN,t.removeData=i.stubFN,t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"thermometer"},a.getType=function(){return"dataset"},a._manageSpace=function(){var e,t,a,o,r,l=this.getFromEnv("chart").config,n=l.width,s=l.height,c=l.canvasWidth,u=l.canvasHeight,h=l.canvasLeft,d=l.canvasRight,p=l.canvasTop,g=l.xDefined,f=l.yDefined,m=l.rDefined,v=l.hDefined,b=l.thmOriginX,k=l.thmOriginY,C=l.thmBulbRadius,x=l.thmHeight,T=function(e,t,a,o){var r=t,l=e;return r=(0,i.pluckNumber)(r,o),l=(0,i.pluckNumber)(l,a),r&&l?l/a==r/o?a/l:Math.min(a/l,o/r):1}(l.origW,l.origH,n,s),w=0,A=0,S=0,y=0;return u-=o=this._getLabelSpace(),A+=o,m?C*=T:(C=Math.min(c/2,.13*(0,i.pluckNumber)(x,u)),m=!0),l.effectiveR=C,t=2*(e=.643*C),a=1.766*C,w+=e,p+=e,u-=e,g?r=(b*=T)-e-h:(r=(d-h)/2-e)+t>c&&(r=c-t),S+=r,h+=r,y+=(c-=r)-t,f&&(k*=T),v?(x*=T,f?w+=k-x-p:k=p+x):f?x=k-p:k=p+(x=Math.max(u-a,3*C)),{top:w,bottom:A+=p+u-k,left:S,right:y}},a.draw=function(){var e,t,a,o,r,l,n,s,m,v,k,C,x,T,w,A,S,y,N,F,D,E,L,M,R,_,V,O,I,P,G,B,H,W=this,j=W.config,z=W.getFromEnv("smartLabel"),U=W.getFromEnv("chart"),X=U.getChildContainer("datalabelsGroup"),K=U.getChildContainer("trackerGroup"),Y=W.getFromEnv("toolTipController"),J=W.getFromEnv("scale"),Z=U.getChildContainer().plotGroup,q=U.get(c),$=q.canvasLeft,Q=q.canvasTop,ee=q.canvasHeight,te=q.effectiveR||10,ae=.643*te,oe=q.use3DLighting,re=$+ae,ie=Q-ae,le=ee,ne=Math.abs(q.width-q.canvasRight-$),se=ie+ae,ce=se+le,ue=ce+.766*te,he=(0,i.pluckNumber)(j.value,J.getLimit().min),de=.33*ae,pe=ie+de,ge=J.getPixel(he),fe=.9*ae,me=ae-de,ve=te+fe-ae,be=re-ae,ke=re+ae,Ce=re-me,xe=re+me,Te=re-fe,we=re+fe,Ae=parseInt(re-.6*ae,10),Se=re+ae/2,ye=j.thmBaseY=ue-Math.abs(Math.sqrt(ve*ve-fe*fe)),Ne=W.getContainer("container"),Fe=W.getGraphicalElement("fluid"),De=W.getGraphicalElement("topLightGlow"),Ee=W.getGraphicalElement("topLight"),Le=W.getGraphicalElement("label"),Me=W.getContainer("dataLabelContainer"),Re=W.getGrap