/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.11.3
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.11.3
*/
(function(Fa,Ga){"object"===typeof module&&module.exports?module.exports=Fa.document?Ga(Fa):function(K){if(!K.document)throw Error("Window with document not present");return Ga(K,!0)}:Fa.FusionCharts=Ga(Fa,!0)})("undefined"!==typeof window?window:this,function(Fa,Ga){FusionCharts.register("module",["private","modules.renderer.js-spark",function(){var K=this.hcLib,ba=K.BLANKSTRING,h=K.pluck,t=K.pluckNumber,n=K.extend2,T=K.chartAPI,f=K.graphics.getLightColor,q=K.COMMASTRING,e=K.graphics.convertColor,
qb=K.getValidValue,la=Math,sa=la.min,ka=la.max,oa=la.ceil,pa=K.toRaphaelColor,N=K.parseUnsafeString,da=K.graphics.getColumnColor,A=K.graphics.parseColor,m=K.COLOR_TRANSPARENT,D=K.POSITION_BOTTOM,aa=K.POSITION_MIDDLE,R=K.POSITION_START,Aa=K.POSITION_END,xa=K.HUNDREDSTRING,la=n({},K.defaultGaugePaletteOptions),fa=function(){var e=this.chart,f=e.config,h=f.dataLabelStyle,n=e.components.paper,z=f.valuepadding+2,A=this.graphics.dataLabelContainer||e.graphics.datalabelsGroup,m=f.sparkValues||(f.sparkValues=
{}),H=e.graphics,H=H.sparkLabels||(H.sparkLabels={}),ha=e.linkedItems.smartLabel,t=e.get("config","animationObj"),e=t.transposeAnimDuration,t=t.animType,da="[",N="]",D="|",F={"class":"fusioncharts-label","text-anchor":Aa,fill:h.color,"font-size":h.fontSize,"font-weight":h.fontWeight,"font-style":h.fontStyle,"font-family":h.fontFamily,visibility:"visible"},q={x:0,y:0};A&&A.attr({"clip-rect":null});q.y=.5*f.canvasHeight+f.canvasTop;q.x=f.canvasLeft-z;if(m.openValue&&m.openValue.label||H.openValue)H.openValue?
(H.openValue.attr({text:m.openValue.label,fill:m.openValue.color||F.fill,"text-anchor":Aa,"line-height":h.lineHeight,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash],visibility:"visible"}),e?H.openValue.animate(q,e,t):H.openValue.attr(q)):H.openValue=n.text({text:m.openValue.label,x:q.x,y:q.y,fill:m.openValue.color||F.fill,"text-anchor":Aa,"line-height":h.lineHeight,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,
h.borderRadius,h.borderDash],visibility:"visible"},A);F["text-anchor"]=R;q.x=f.canvasWidth+f.canvasLeft+z;if(m.closeValue&&m.closeValue.label||H.closeValue)H.closeValue?(H.closeValue.attr({text:m.closeValue.label,fill:m.closeValue.color||F.fill,"text-anchor":R,"line-height":h.lineHeight,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash],visibility:"visible"}),e?H.closeValue.animate(q,e,t):H.closeValue.attr(q)):H.closeValue=n.text({text:m.closeValue.label,
x:q.x,y:q.y,fill:m.closeValue.color||F.fill,"text-anchor":R,"line-height":h.lineHeight,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash],visibility:"visible"},A),q.x+=m.closeValue.smartObj&&m.closeValue.smartObj.width+2+z||0;if(m.highLowValue&&m.highLowValue.label||H.highValue)m.highLowValue&&m.highLowValue.label===ba&&(D=da=N=ba),ha.useEllipsesOnOverflow(f.useEllipsesWhenOverflow),ha.setStyle(h),H.startBraces?e?H.startBraces.animate(q,e,
t):H.startBraces.attr(q):H.startBraces=n.text({text:da,x:q.x,y:q.y,"text-anchor":R,visibility:"visible"},A),q.x+=ha.getSmartText(da).width,H.highValue?(H.highValue.attr({text:m.highValue.label,"text-anchor":R,fill:m.highValue.color||F.fill,visibility:"visible"}),e?H.highValue.animate(q,e,t):H.highValue.attr(q)):H.highValue=n.text({text:m.highValue.label,x:q.x,y:q.y,"text-anchor":R,fill:m.highValue.color||F.fill,visibility:"visible"},A),q.x+=ha.getSmartText(m.highValue.label).width,H.separater?e?H.separater.animate(q,
e,t):H.separater.attr(q):H.separater=n.text({text:D,x:q.x,y:q.y,"text-anchor":R,visibility:"visible"},A),q.x+=ha.getSmartText(D).width,H.lowValue?(H.lowValue.attr({text:m.lowValue.label,"text-anchor":R,fill:m.lowValue.color||F.fill,visibility:"visible"}),e?H.lowValue.animate(q,e,t):H.lowValue.attr(q)):H.lowValue=n.text({text:m.lowValue.label,x:q.x,y:q.y,"text-anchor":R,fill:m.lowValue.color||F.fill,visibility:"visible"},A),q.x+=ha.getSmartText(m.lowValue.label).width,H.endBraces?e?H.endBraces.animate(q,
e,t):H.endBraces.attr(q):H.endBraces=n.text({text:N,x:q.x,y:q.y,"text-anchor":R,visibility:"visible"},A);this.labelDrawn=!0},ta=function(){var e=this.chart,f=e.jsonData.chart,A=e.components,e=A.colorManager,n=this.components.data,A=A.xAxis[0],z=t(f.periodlength,0),m;m=A.getLimit();A.config.band.isDraw=!0;z&&A.setAxisConfig({alternateGridColor:h(f.periodcolor,e.getColor("periodColor")),alternateGridAlpha:h(f.periodalpha,100),showAlternateGridColor:!0,categoryNumDivLines:n&&(m.max-m.min)/z-1,categoryDivLinesFromZero:0});
A.draw()};T("sparkchartbase",{standaloneInit:!0,creditLabel:!1,showBorder:0,chartTopMargin:3,chartRightMargin:3,chartBottomMargin:3,chartLeftMargin:3,canvasBorderThickness:1,subTitleFontSizeExtender:0,subTitleFontWeight:0,defaultPaletteOptions:function(e,f){var h;e||(e={});for(h in f)e[h]=f[h];return e}(n({},la),{paletteColors:[["555555","A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60",
"FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:[ba,ba,ba,ba,ba],canvasBorderColor:["BCBCBC","BEC5A7","93ADBF","C97901","FF97B1"],toolTipBgColor:["FFFFFF","FFFFFF",
"FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["666666","60634E","415D6F","845001","68001B"],plotFillColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"],winColor:["666666","60634E","025B6A","A15E01","FF97B1"],lossColor:["CC0000","CC0000",
"CC0000","CC0000","CC0000"],drawColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],scorelessColor:["FF0000","FF0000","FF0000","FF0000","FF0000"]}),_setAxisLimits:function(){var e=this.components.yAxis;e[0]&&e[0].setAxisConfig({numDivLines:0});T.mscartesian._setAxisLimits.call(this)},_fetchCaptionPos:function(){return-1},_spaceManager:function(){var e,f=this.config,h=f.canvasBaseDepth,A=this.components.canvas.config.canvasBorderWidth;e=f.borderWidth;var z=f.canvasMarginTop,n=f.canvasMarginBottom,
m=f.canvasMarginLeft,H=f.canvasMarginRight,q=f.minCanvasHeight,t=f.minCanvasWidth,da=f.height,N=f.width,D=!1,F=!1,aa=f.origCanvasTopMargin,K=f.origCanvasBottomMargin,ba=f.origCanvasLeftMargin,R=f.origCanvasRightMargin;this._allocateSpace({top:e,bottom:e,left:e,right:e});e=.325*f.availableHeight;this._getDSspace&&this._allocateSpace(this._getDSspace(e));this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*f.availableHeight)||{});f.availableWidth=f.width;e=.75*f.availableWidth;
e=e-f.origMarginLeft-f.origMarginRight-2*f.borderWidth;e=ka(.1*f.availableWidth,e);this._manageChartMenuBar(e);e=.75*(f.availableWidth-2*f.borderWidth);this._placeOpenCloseValues&&this._allocateSpace(this._placeOpenCloseValues(e));this._allocateSpace({top:A,bottom:A,left:A,right:A});this._allocateSpace({bottom:h});q>da-z-n&&(D=!0,A=f.canvasHeight-q,h=z+n,z=f.canvasMarginTop=A*z/h,n=f.canvasMarginBottom=A*n/h);t>N-m-H&&(F=!0,A=f.canvasWidth-t,h=m+H,m=f.canvasMarginLeft=A*m/h,H=f.canvasMarginRight=
A*H/h);z=z>f.canvasTop?z-f.canvasTop:0;n=n>da-f.canvasBottom?n+f.canvasBottom-da:0;m=m>f.canvasLeft?m-f.canvasLeft:0;H=H>N-f.canvasRight?H+f.canvasRight-N:0;this._allocateSpace({top:z,bottom:n,left:m,right:H});D&&(h=aa+K,D=f.canvasHeight,D>q&&(A=D-q,z=A*aa/h,n=A*K/h),this._allocateSpace({top:z,bottom:n}));F&&(h=ba+R,q=f.canvasWidth,q>t&&(A=q-t,m=A*ba/h,H=A*R/h),this._allocateSpace({left:m,right:H}));void 0!==f.origCanvasLeftMargin&&(f.canvasWidth=ka(f.canvasWidth+f.canvasLeft-f.origCanvasLeftMargin,
.2*f.availableWidth),f.canvasLeft=f.origCanvasLeftMargin)},_manageCaptionSpacing:function(e){var f=this.config,A=this.components,n=A.caption,z=A.subCaption,m=n.config,q=z.config,n=n.components,z=z.components,H=this.jsonData.chart,da=this.linkedItems.smartLabel,D=N(H.caption),aa=N(H.subcaption),H=m.captionPadding=t(H.captionpadding,2),K=A.chartMenuBar,K=K&&K.getLogicalSpace(),R=f.height-(K&&K.height||0),F=0,K=0,xa=ka(A.canvas.config.canvasBorderThickness,0),T=0,A={},ra,fa;3<.7*R&&(H<xa&&(H=xa+2),m.captionPadding=
q.captionPadding=H,D!==ba&&(fa=m.style,F=m.captionLineHeight=oa(parseFloat(h(fa.fontHeight,fa.lineHeight),10),12)),aa!==ba&&(ra=q.style,K=oa(parseInt(h(ra.lineHeight,ra.fontHeight),10),12)),da.useEllipsesOnOverflow(f.useEllipsesWhenOverflow),0<F||0<K)&&(da.setStyle(fa),f=da.getSmartText(D,e,R),0<f.width&&(f.width+=2,T=f.height),da.setStyle(ra),ra=da.getSmartText(aa,e,R-T),0<ra.width&&(ra.width+=2),m.captionSubCaptionGap=f.height+0+.2*K,n.text=f.text,m.height=f.height,m.width=f.width,m.tooltext&&(n.originalText=
f.tooltext),z.text=ra.text,q.height=ra.height,q.width=ra.width,q.tooltext&&(n.originalText=ra.tooltext),n=Math.max(f.width,ra.width),m.captionPadding=H=sa(e-n,H),0<n&&(n=sa(e,n+H)),m.maxCaptionWidth=q.maxCaptionWidth=n,m.isOnLeft?A.left=n:A.right=n);return A},_manageCaptionPosition:function(){var e=this.config,f=this.components,h=f.caption.config,f=f.subCaption.config,A=h.captionPosition,n=ka(h.width,f.width),m=e.borderWidth||0,q=e.height,H=(e.sparkValues||{}).openValueWidth||0,t=h.captionPadding,
da=h.captionSubCaptionGap;switch(A){case aa:h.y=(q-(h.height+f.height))/2+.5*(h._offsetHeight||0);break;case D:h.y=q-(h.height+f.height)-e.marginBottom-m;break;default:h.y=e.marginTop+m+(h._offsetHeight||0)}f.y=h.y+da;h.isOnLeft?(h.align=f.align=Aa,h.x=f.x=e.canvasLeft-(m+H+2+t)+e.borderWidth):(h.align=f.align=R,h.x=f.x=e.width-e.marginRight-n-m)}},T.sscartesian);T("sparkcolumn",{standaloneInit:!0,creditLabel:!1,friendlyName:"sparkcolumn Chart",defaultDatasetType:"sparkcolumn",_parseCanvasCosmetics:function(){var f,
A,n=this.config;A=this.components;var m=A.canvas.config,z=this.jsonData.chart;A=A.colorManager;var q,da=this.is3D?K.chartPaletteStr.chart3D:K.chartPaletteStr.chart2D,H=m.isRoundEdges=t(z.useroundedges,0);f=t(z.showxaxisline,z.showyaxisline,0)?0:1;m.canvasBorderRadius=t(z.plotborderradius,H?2:0);f=m.showCanvasBorder=!!t(z.showcanvasborder,f,void 0,H?0:1);q=m.oriCanvasBorderThickness=ka(t(z.canvasborderthickness,H?0:t(this.canvasborderthickness,1),0));m.canvasBorderWidth=this.is3D?0:f?q:0;m.canvasBorderColor=
e(h(z.canvasbordercolor,A.getColor("canvasBorderColor")),h(z.canvasborderalpha,A.getColor("canvasBorderAlpha")));f=m.canBGAlpha=h(z.canvasbgalpha,A.getColor("canvasBgAlpha"));m.canBGColor={FCcolor:{color:h(z.canvasbgcolor,A.getColor(da.canvasBgColor)),alpha:h(z.canvasbgalpha,100),angle:h(z.canvasbgangle,0),ratio:h(z.canvasbgratio)}};A=m.shadow=t(z.showshadow,H,0)&&H?{enabled:!0,opacity:f/100}:0;m.shadowOnCanvasFill=A&&A.enabled;n.origMarginTop=t(z.charttopmargin,3);n.origMarginLeft=t(z.chartleftmargin,
3);n.origMarginBottom=t(z.chartbottommargin,3);n.origMarginRight=t(z.chartrightmargin,3);n.origCanvasLeftMargin=t(z.canvasleftmargin);n.origCanvasRightMargin=t(z.canvasrightmargin);n.origCanvasTopMargin=t(z.canvastopmargin);n.origCanvasBottomMargin=t(z.canvasbottommargin);m.canvasPadding=t(z.canvaspadding,0);m.origCanvasTopPad=t(z.canvastoppadding,0);m.origCanvasBottomPad=t(z.canvasbottompadding,0);m.origCanvasLeftPad=t(z.canvasleftpadding,0);m.origCanvasRightPad=t(z.canvasrightpadding,0)},canvasBorderThickness:1,
singleseries:!1},T.sparkchartbase,{showplotborder:0});FusionCharts.register("component",["dataset","sparkcolumn",{_setConfigure:function(e){var A=this.chart,n=A.jsonData.chart,m=this.config,z=A.config,N=this.JSONData,D=e||N.data,H=D&&D.length,ha=A.config.categories,ha=ha&&ha.length;e=e&&e.data.length||sa(ha,H);var H=z.plothovereffect,K=A.components.colorManager,z=z.useroundedges,aa,R,fa,F,T,ka,ra,Aa,la,oa,ya,ta,qa,ma,Ba,Za,V;m.plotgradientcolor=ba;m.showvalues=t(N.showvalues,n.showvalues,0);m.showShadow=
t(n.showshadow,0);this.__base__._setConfigure.call(this);A=this.components.data;ha=m.maxValue;V=m.minValue;K=h(n.plotfillcolor,K.getColor("plotFillColor"));Aa=h(n.plotfillalpha,xa);la=h(n.plotborderalpha,xa);oa=h(n.plotbordercolor,K);ya=h(n.highcolor,"000000");ta=h(n.lowcolor,"000000");qa=h(n.highbordercolor,n.plotbordercolor,ya);ma=h(n.lowbordercolor,n.plotbordercolor,ta);for(Za=0;Za<e;Za++)if(Ba=D[Za],F=A[Za],ra=F.config,aa=K,R=oa,ra.setValue==ha&&(aa=ya,R=qa),F.config.setValue==V&&(aa=ta,R=ma),
ra.colorArr=aa=da(aa+q+m.plotgradientcolor,Aa,"0","90",z,R,la,0,0),0!==H&&aa){R=fa=void 0;ra.setValue==ha&&(R=n.highhovercolor,fa=n.highhoveralpha);F.config.setValue==V&&(R=n.lowhovercolor,fa=n.lowhoveralpha);R=h(Ba.hovercolor,N.hovercolor,R,n.plotfillhovercolor,n.columnhovercolor,aa[0].FCcolor.color);R=R.split(/\s{0,},\s{0,}/);F=R.length;for(T=0;T<F;T++)R[T]=f(R[T],70);R=R.join(",");fa=h(Ba.hoveralpha,N.hoveralpha,fa,n.plotfillhoveralpha,n.columnhoveralpha,Aa);F=h(Ba.hovergradientcolor,N.hovergradientcolor,
n.plothovergradientcolor,m.plotgradientcolor);!F&&(F=ba);T=h(Ba.borderhovercolor,N.borderhovercolor,n.plotborderhovercolor,m.plotbordercolor);ka=h(Ba.borderhoveralpha,N.borderhoveralpha,n.plotborderhoveralpha,n.plotfillhoveralpha,la,Aa);t(Ba.borderhoverthickness,N.borderhoverthickness,n.plotborderhoverthickness,void 0);1==H&&R===aa[0].FCcolor.color&&(R=f(R,70));Ba=da(R+q+F,fa,"0","90",z,T,ka.toString(),0,0);ra.setRolloutAttr={fill:pa(aa[0]),stroke:void 0,"stroke-width":void 0};ra.setRolloverAttr=
{fill:pa(Ba[0]),stroke:void 0,"stroke-width":void 0}}},draw:function(){this.__base__.draw.call(this);ta.call(this)}},"Column"]);FusionCharts.register("component",["datasetGroup","SparkColumn",{},"column"]);T("sparkwinloss",{standaloneInit:!0,friendlyName:"sparkwinloss Chart",creditLabel:!1,defaultDatasetType:"sparkwinloss",canvasBorderThickness:0,applicableDSList:{sparkwinloss:!0},_setAxisLimits:function(){var e=this.components.yAxis;T.mscartesian._setAxisLimits.call(this);e[0]&&e[0].setAxisRange({min:-1,
max:1})},_placeOpenCloseValues:function(e){var f=this.config,h=this.linkedItems.smartLabel,n=f.dataLabelStyle,A=t(n.borderThickness,0),m=this.config.valuepadding+2+A,q=0,A=0,H=f.sparkValues||{};h.useEllipsesOnOverflow(f.useEllipsesWhenOverflow);h.setStyle(n);H.openValue&&H.openValue.label&&(H.openValue.smartObj=h.getSmartText(H.openValue.label),q=H.openValue.smartObj.width+m);H.closeValue&&H.closeValue.label&&(H.closeValue.smartObj=h.getSmartText(H.closeValue.label),A+=H.closeValue.smartObj.width+
m);H.highValue&&H.highValue.label&&(H.highValue.smartObj=h.getSmartText(H.highValue.label));H.lowValue&&H.lowValue.label&&(H.lowValue.smartObj=h.getSmartText(H.lowValue.label));H.highLowValue&&H.highLowValue.label&&(H.highLowValue.smartObj=h.getSmartText(H.highLowValue.label),A+=H.highLowValue.smartObj.width+m);f=H.openValueWidth=sa(q,e);e=H.closeValueWidth=sa(A,e-f);return{left:f,right:e}},_parseCanvasCosmetics:function(){var f,n;f=this.components;var A=this.config,q=f.canvas.config,z=this.jsonData.chart,
da=f.colorManager;q.canvasBorderRadius=0;f=q.canvasBorderThickness=0;n=q.showCanvasBorder=0;q.canvasBorderWidth=n?f:0;q.canvasBorderColor=e(h(z.canvasbordercolor,da.getColor("canvasBorderColor")));q.canBGColor=m;f=q.shadow=0;q.shadowOnCanvasFill=f&&f.enabled;q.origCanvasTopPad=t(z.canvastoppadding,0);q.origCanvasBottomPad=t(z.canvasbottompadding,0);q.origCanvasLeftPad=t(z.canvasleftpadding,0);q.origCanvasRightPad=t(z.canvasrightpadding,0);A.origCanvasLeftMargin=t(z.canvasleftmargin);A.origCanvasRightMargin=
t(z.canvasrightmargin);A.origCanvasTopMargin=t(z.canvastopmargin);A.origCanvasBottomMargin=t(z.canvasbottommargin)},singleseries:!0},T.sparkchartbase);FusionCharts.register("component",["dataset","sparkwinloss",{_setConfigure:function(e,n){var A=this.chart,m=A.config,z=this.config,q=this.JSONData,da=e||q.data,H=da&&da.length,N=A.config.categories,N=N&&N.length,H=e&&e.data.length||sa(N,H),N=A.jsonData.chart,D=A.components,aa=D.colorManager,D=D.xAxis[0],R=m.showplotborder,fa=z.plotColor=aa.getPlotColor(this.index||
this.positionIndex),F=K.parseUnsafeString,T=h(N.plotfillcolor,aa.getColor("plotFillColor")),Aa=h(N.wincolor,aa.getColor("winColor")),ra=h(N.losscolor,aa.getColor("lossColor")),la=h(N.drawcolor,aa.getColor("drawColor")),aa=h(N.scorelesscolor,aa.getColor("scorelessColor")),oa=N.winhovercolor,ta=N.losshovercolor,ya=N.drawhovercolor,jb=N.scorelesshovercolor,qa=0,ma=0,Ba=0,Za,V,bb=m.plotborderthickness,Fa=m.isroundedges,cb=m.plothovereffect,Oa=z.plotfillangle,Ja,Ra,Z,$a,Sa=z.plotBorderDashStyle,na,wa,
ua,Ha,ab,Ua,va,Ga,hb,ib,ob=K.getDashStyle,Da=this.components.data,Va=A.isBar,Ta=A.is3D,Wa,kb=z.maxValue||-Infinity,a=z.minValue||Infinity,c;Da||(Da=this.components.data=[]);this.__base__._setConfigure.call(this);z.plotgradientcolor="";ua=z.showPlotBorder=t(N.showplotborder,0);z.plotborderalpha=ua?h(N.plotborderalpha,Ja,xa):0;z.showTooltip=0;for(Wa=m.showtooltip=0;Wa<H;Wa++){e?(na=e&&e.data[Wa],c=void 0!==n?n+Wa:Da.length-H+Wa,V=Da[c]):(V=Da[Wa],na=da[Wa]);ua=V&&V.config;V||(V=Da[Wa]={});V.config||
(ua=Da[Wa].config={});switch((na.value||"").toLowerCase()){case "w":fa=h(na.color,Aa,T);Ha=h(na.hovercolor,oa,fa);ua.setValue=wa=1;qa+=1;break;case "l":fa=h(na.color,ra,T);Ha=h(na.hovercolor,ta,fa);ua.setValue=wa=-1;ma+=1;break;case "d":fa=h(na.color,la,T);Ha=h(na.hovercolor,ya,fa);ua.setValue=wa=.1;Ba+=1;break;default:ua.setValue=wa=null}1==na.scoreless&&(fa=h(na.color,aa,T),Ha=h(na.hovercolor,jb,na.color,aa,Ha));ua.toolText=!1;ua.setLink=h(na.link);ua.setDisplayValue=F(na.displayvalue);$a=t(na.dashed);
Ja=t(na.dashlen,void 0);ab=V=t(na.dashgap,z.plotDashGap);null!==wa&&(kb=ka(kb,wa),a=sa(a,wa));ua.plotBorderDashStyle=$a=1===$a?ob(Ja,ab,bb):0===$a?"none":Sa;Ja=h(na.alpha,z.plotfillalpha);Z=h(na.alpha,z.plotborderalpha,Ja).toString();0>wa&&!Fa&&(Za=z.plotfillAngle,Oa=Va?180-Oa:360-Oa);ua.colorArr=wa=K.graphics.getColumnColor(fa+","+z.plotgradientcolor,Ja,Ra=z.plotfillratio,Oa,Fa,z.plotbordercolor,Z,Va?1:0,Ta?!0:!1);ua.label=qb(F(D.getLabel(t(c-H,Wa)).label));0!==cb&&(Ha=h(na.hovercolor,q.hovercolor,
N.plotfillhovercolor,N.columnhovercolor,fa),ab=h(na.hoveralpha,q.hoveralpha,N.plotfillhoveralpha,N.columnhoveralpha,Ja),Ua=h(na.hovergradientcolor,q.hovergradientcolor,N.plothovergradientcolor,z.plotgradientcolor),!Ua&&(Ua=""),Ra=h(na.hoverratio,q.hoverratio,N.plothoverratio,Ra),va=t(360-na.hoverangle,360-q.hoverangle,360-N.plothoverangle,Oa),Ga=h(na.borderhovercolor,q.borderhovercolor,N.plotborderhovercolor,z.plotbordercolor),Z=h(na.borderhoveralpha,q.borderhoveralpha,N.plotborderhoveralpha,Z,Ja),
Ja=t(na.borderhoverthickness,q.borderhoverthickness,N.plotborderhoverthickness,bb),hb=t(na.borderhoverdashed,q.borderhoverdashed,N.plotborderhoverdashed),ib=t(na.borderhoverdashgap,q.borderhoverdashgap,N.plotborderhoverdashgap,void 0),na=t(na.borderhoverdashlen,q.borderhoverdashlen,N.plotborderhoverdashlen,V),na=hb?ob(na,ib,Ja):$a,1==cb&&Ha===fa&&(Ha=f(Ha,70)),V=K.graphics.getColumnColor(Ha+","+Ua,ab,Ra,va,Fa,Ga,Z.toString(),Va?1:0,Ta?!0:!1),ua.setRolloutAttr={fill:Ta?[pa(wa[0]),!m.use3dlighting]:
pa(wa[0]),stroke:R&&pa(wa[1]),"stroke-width":bb,"stroke-dasharray":$a},ua.setRolloverAttr={fill:Ta?[pa(V[0]),!m.use3dlighting]:pa(V[0]),stroke:R&&pa(V[1]),"stroke-width":Ja,"stroke-dasharray":na});Za&&(Oa=Za);c++}z.maxValue=1;z.minValue=-1;1==t(N.showvalue,1)&&(A.config.sparkValues={closeValue:{}},A.config.sparkValues.closeValue.label=qa+"-"+ma+(0<Ba?"-"+Ba:ba))},draw:function(){this.__base__.draw.call(this);ta.call(this)},drawLabel:fa},"Column"]);FusionCharts.register("component",["datasetGroup",
"SparkWinLoss",{manageSpace:function(){},draw:function(){var e=this.positionStackArr,f=e.length,h,A,n,m,q=this.chart;h=q.config.viewPortConfig.scaleX||1;A=q.is3D;n=q.graphics.columnGroup;var H=q.graphics;m=q.components.canvas.config.clip["clip-canvas"].slice(0);H=H.datalabelsGroup;q=q.get("config","animationObj").duration;m[2]*=h;n.clip||A||(n.attr({"clip-rect":m}),H.attr({}));q?(!A&&n.animate({"clip-rect":m},q,"normal"),!A&&H.animate({},q,"normal")):(!A&&n.attr({"clip-rect":m}),!A&&H.attr({}));this.preDrawCalculate();
this.drawSumValueFlag=!0;for(h=0;h<f;h++)for(A=e[h],n=A.length,this.manageClip=!0,A=0;A<n;A++)m=e[h][A].dataSet,m.draw()}},"column"]);T("sparkline",{standaloneInit:!0,friendlyName:"SparkLine Chart",creditLabel:!1,defaultDatasetType:"sparkline",singleseries:!0,showValues:0,_parseCanvasCosmetics:T.sparkwinloss._parseCanvasCosmetics,_placeOpenCloseValues:T.sparkwinloss._placeOpenCloseValues,defaultPlotShadow:0,axisPaddingLeft:0,axisPaddingRight:0,applicableDSList:{line:!0}},T.sparkchartbase,{showvalues:0});
FusionCharts.register("component",["dataset","sparkline",{type:"sparkline",configure:function(){var e=this.config,f=this.JSONData,h=this.chart.jsonData.chart;this.__base__.configure.call(this);e.linethickness=t(f.linethickness,h.linethickness,1)},_setConfigure:function(e){var n=this.chart,m=this.config,q=this.JSONData,z=n.jsonData.chart,q=e||q.data,N,da=n.components.xAxis[0];e=e&&e.data.length||da.getCategoryLen();var H=n.components.colorManager,n=n.config,D,aa,da=A(h(z.opencolor,"0099FF")),R=A(h(z.closecolor,
"0099FF")),K=A(h(z.highcolor,"00CC00")),fa=A(h(z.lowcolor,"CC0000")),F=A(h(z.anchorcolor,H.getColor("plotFillColor")));aa=t(z.showopenanchor,z.drawanchors,z.showanchors,1);var T=t(z.showcloseanchor,z.drawanchors,z.showanchors,1),xa=t(z.showhighanchor,z.drawanchors,z.showanchors,1),Aa=t(z.showlowanchor,z.drawanchors,z.showanchors,1),ka=t(z.anchoralpha,100),la=t(z.drawanchors,z.showanchors,0)?t(z.anchoralpha,100):0,oa=h(z.linecolor,H.getColor("plotFillColor")),pa,ta,qa,ma,Ba,sa;this.__base__._setConfigure.call(this);
H=this.components.data;ta=m.maxValue;qa=m.minValue;m.shadow={opacity:t(z.showshadow,0)?m.alpha/100:0};N=H[0];D=N.config;D.anchorProps.bgColor=h(N.anchorbgcolor,da);D.anchorProps.enabled=!!aa;D.anchorProps.bgAlpha=aa?ma:0;D.anchorProps.enabled&&D.hoverEffects&&(D.hoverEffects.anchorColor=h(z.openhovercolor,z.anchorhovercolor,z.plotfillhovercolor,f(da,70)),D.hoverEffects.anchorBgAlpha=t(z.openhoveralpha,z.anchorhoveralpha,z.plotfillhoveralpha,100));m=D.displayValue;N=H[e-1];D=N.config;D.anchorProps.bgColor=
h(N.anchorbgcolor,R);D.anchorProps.enabled=!!T;D.anchorProps.bgAlpha=T?ma:0;D.anchorProps.enabled&&D.hoverEffects&&(D.hoverEffects.anchorColor=h(z.closehovercolor,z.anchorhovercolor,z.plotfillhovercolor,f(R,70)),D.hoverEffects.anchorBgAlpha=t(z.closehoveralpha,z.anchorhoveralpha,z.plotfillhoveralpha,100));T=D.displayValue;for(aa=0;aa<e;aa++)N=H[aa],D=N.config,N=q[aa],ma=t(N.anchorbgalpha,ka),0!==aa&&aa!==e-1&&(D.anchorProps.bgColor=h(N.anchorbgcolor,F),D.anchorProps.bgAlpha=t(N.anchorbgalpha,la),
D.hoverEffects.anchorColor=A(h(z.anchorhovercolor,z.plotfillhovercolor,f(oa,70))),D.hoverEffects.anchorBgAlpha=t(z.lowhoveralpha,z.anchorhoveralpha,z.plotfillhoveralpha,100)),D.anchorProps.radius=t(z.anchorradius,N.anchorradius,2),D.anchorProps.borderThickness=0,D.hoverEffects.anchorBorderThickness=0,D.hoverEffects.anchorRadius=t(z.anchorhoverradius,z.anchorradius,N.anchorradius,3),D.setValue===qa&&(D.anchorProps.bgColor=h(N.anchorbgcolor,fa),D.hoverEffects.anchorColor=h(z.lowhovercolor,z.anchorhovercolor,
z.plotfillhovercolor,f(fa,70)),D.hoverEffects.anchorBgAlpha=t(z.lowhoveralpha,z.anchorhoveralpha,z.plotfillhoveralpha,100),D.anchorProps.enabled=!!Aa,D.anchorProps.bgAlpha=Aa?ma:0,sa=D.displayValue),D.setValue===ta&&(D.anchorProps.bgColor=h(N.anchorbgcolor,K),D.hoverEffects.anchorColor=h(z.highhovercolor,z.anchorhovercolor,z.plotfillhovercolor,f(K,70)),D.hoverEffects.anchorBgAlpha=t(z.highhoveralpha,z.anchorhoveralpha,z.plotfillhoveralpha,100),D.anchorProps.enabled=!!xa,D.anchorProps.bgAlpha=xa?ma:
0,Ba=D.displayValue),ma=D.setValue,void 0!==ma&&null!==ma&&(pa=1);q=n.sparkValues={openValue:{color:da},closeValue:{color:R},highValue:{color:K},lowValue:{color:fa},highLowValue:{}};pa&&(q.openValue.label=t(z.showopenvalue,1)?m:ba,q.closeValue.label=t(z.showclosevalue,1)?T:ba,t(z.showhighlowvalue,1)&&(q.highLowValue.label="["+Ba+" | "+sa+"]",q.highValue.label=Ba,q.lowValue.label=sa))},draw:function(){this.__base__.draw.call(this);this._drawSparkValues();ta.call(this)},_drawSparkValues:function(){fa.call(this)}},
"Line"])},[3,2,0,"sr2"]]);FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var K=this.window,ba=K.document,h=8===ba.documentMode,t=this.hcLib,n=t.Raphael,T=t.componentDispose,f=t.pluckNumber,q=t.isIE,e=t.graphics.HEXtoRGB,qb=t.graphics.convertColor,la=t.pluck,sa=Math.min,ka,oa={},pa={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"};oa.literal=oa.info={title:'<span style="color: #005900">$titleVal$</span>',body:"<span>$msgVal$</span>"};
oa.link={title:oa.info.title,body:'<a href="$msgLinkVal$">$msgVal$</a>'};oa.error={title:'<span style="color: #CC0000">$titleVal$</span>',body:'<span style="color: #CC0000">$msgVal$</span>'};ka=function(e,f){var h=this.config={},n=(e.msgType||"").toLowerCase(),q=e.msgTitle,t=e.msgText,R=la(e.msgLink,t);h.totalHTML="";this.graphics={};this.linkedItems={msgLogger:f};n=oa[n]||oa.literal;q&&(h.titleHTML=n.title.replace("$titleVal$",q),h.totalHTML+=h.titleHTML);t&&(h.msgHTML=n.body.replace("$msgVal$",
t),h.msgHTML=h.msgHTML.replace("$msgLinkVal$",R),h.totalHTML+=h.msgHTML)};ka.prototype={draw:function(){var e=this.config,f=this.graphics,n,m=f.element,D=this.linkedItems.msgLogger,t=D.graphics,R=t&&t.log&&t.log.element,t=t.logWrapper&&t.logWrapper.element,D=D.config;if(!m){m=f.element=ba.createElement("span");for(n in pa)m.style[n]=pa[n];R.appendChild&&R.appendChild(m)}f.element.innerHTML=e.totalHTML;q&&h&&(e=R.innerHTML,R.innerHTML=e);D.scrollToBottom&&(D.dynamicScrolling=!0,R=t.scrollHeight,t.scrollTop=
R)},dispose:function(){var e=this.graphics,f=this.linkedItems.msgLogger;f&&f.graphics&&f.graphics.log&&f.graphics.log.element&&f.graphics.log.element.removeChild&&f.graphics.log.element.removeChild(e.element);delete e.element;T.call(this)}};ka.prototype.constractor=ka;FusionCharts.register("component",["logger","message",{pIndex:1,customConfigFn:null,init:function(e){var f=this.linkedItems||(this.linkedItems={});this.components=this.components||{};this.components.messages=this.components.messages||
[];this.graphics=this.graphics||{};f.chart=e},configure:function(){var h=this,n=h.config||(h.config={}),A=h.linkedItems.chart,m=A.get&&A.get("jsonData","chart")||{},q=A.chartMenuTools,A=n.usemessagelog=A.get("config","usemessagelog");n.messageLogWPercent=sa(f(m.messagelogwpercent,80),100);n.messageLogHPercent=sa(f(m.messageloghpercent,70),100);n.messageLogShowTitle=f(m.messagelogshowtitle,1);n.messageLogTitle=la(m.messagelogtitle,"Message Log");n.messageLogColor=la(m.messagelogcolor,"#fbfbfb").replace(/^#?([a-f0-9]+)/ig,
"$1");n.messageLogColorRgb=e(n.messageLogColor);n.messageGoesToJS=f(m.messagegoestojs,0);n.messageGoesToLog=f(m.messagegoestolog,1);n.messageJSHandler=la(m.messagejshandler,"");n.messagePassAllToJS=f(m.messagepassalltojs,0);n.messagePassAsObject=f(m.messagepassasobject,0);n.messageLogIsCancelable=f(m.messagelogiscancelable,1);n.alwaysShowMessageLogMenu=f(m.alwaysshowmessagelogmenu,A);A&&n.messageGoesToLog&&q&&q.set([{"Show Log":{handler:function(){h.show()},action:"click"}}]);n.dynamicScrolling=!1;
n.scrollToBottom=!0},_createMessage:function(e){e=new ka(e,this);this.graphics.container&&e.draw();return e},addLog:function(e){var h=this.config,n=this.components.messages,m=f(e.msgGoesToLog,h.messageGoesToLog),q=f(e.msgGoesToJS,h.messageGoesToJS),t=K[h.messageJSHandler],R=la(e.msgId,""),T=la(e.msgTitle,""),xa=la(e.msgText,""),fa=la(e.msgType,"literal");h.usemessagelog&&(q&&t&&"function"===typeof t&&(h.messagePassAllToJS?h.messagePassAsObject?t(e):t(R,T,xa,fa):t(xa)),"1"===e.clearLog&&this.clearLog(),
m&&(e.msgTitle||e.msgText)&&(e=this._createMessage(e),n.push(e),1!==n.length||h.visible||this.show()))},show:function(){var e=this.graphics,f=this.config;f.visible||(f.visible=!0,e.container||this.draw(),e.container&&e.container.show())},hide:function(){var e=this.graphics;this.config.visible=!1;e.container&&e.container.hide()},clearLog:function(){var e=this.components.messages,f,h=e.length;for(f=0;f<h;f+=1)e[f]&&e[f].dispose&&e[f].dispose();e.splice(0,h)},isDrawn:function(){return!!this.graphics.container},
draw:function(){var e=this.config,f=this.components.messages,h;if(e.usemessagelog)for(this._createHTMLDialogue(),e.visible||this.hide(),h=f.length,e=0;e<h;e+=1)f[e]&&f[e].draw&&f[e].draw();else this.isDrawn()&&(this.clearLog(),this.hide())},_createHTMLDialogue:function(){var e=this,f=e.config,h=e.graphics,m=e.components,q=e.linkedItems.chart,t=q.get("components","paper"),R=q.get("linkedItems","container"),K=q.get("config"),T=K.width,fa=K.height,ba=(q=K.style)&&q.inCanvasStyle,ka=f.messageLogShowTitle,
la=f.messageLogIsCancelable,oa=f.messageLogColor,pa=f.messageLogTitle,z=m.paper,sa=h.cg,La=f.messageLogWPercent/100*T,H=f.messageLogHPercent/100*fa,ha=(T-La)/2,Fa=(fa-H)/2,Ga=La-18-22,fb=H-18-22,gb=ha+La-21,F=Fa+3,q=h.container,K=e.isDrawn()&&K.animation&&K.animation.transposeAnimDuration;q||(q=h.container=t.html("div",{fill:"transparent"},{fontSize:"10px",lineHeight:"15px"},R),h.veil=t.html("div",{id:"veil",fill:"000000",opacity:.1},void 0,q).on("click",function(){la&&e.hide()}),pa&&ka&&(h.title=
t.html("p",{id:"Title",innerHTML:pa,x:5,y:5},{"font-weight":"bold"},q)),h.dialog=t.html("div",{id:"dialog",strokeWidth:1},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},q),h.logBackground=t.html("div",{id:"dialogBackground",x:0,y:0},void 0,h.dialog),la&&(h.closeBtnContainer=t.html("div",{id:"closeBtnContainer"},{},q),m.paper=z=
new n("closeBtnContainer",18,18),z.setConfig("stroke-linecap","round"),sa=h.cg=z.group("closeGroup"),h.closeButton=z.symbol("closeIcon",0,0,6,sa).attr({transform:"t9,9","stroke-width":2,stroke:qb("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click(function(){e.hide()})),h.logWrapper=t.html("div",{id:"logWrapper"},{overflow:"auto"},h.dialog).on("scroll",function(){var e=this&&this.scrollTop,h=this&&this.scrollHeight,n=this&&this.offsetHeight;
f.dynamicScrolling?f.dynamicScrolling=!1:f.scrollToBottom=h-e===n?!0:!1}),h.log=t.html("div",{id:"log",x:0,y:0},{},h.logWrapper));q.css({fontFamily:ba.fontFamily});h.dialog.attr({fill:"ffffff",stroke:oa});h.logBackground.attr({fill:oa});m={width:T,height:fa};t={x:ha,y:Fa,width:La,height:H};R={width:La,height:H};gb={width:18,height:18,x:gb,y:F};La={x:(La-Ga)/2,y:(H-fb)/2,width:Ga,height:fb};K?(q.animate(m,K,"normal"),h.veil.animate(m,K,"normal"),h.dialog.animate(t,K,"normal"),h.logBackground.animate(R,
K,"normal"),h.closeBtnContainer&&h.closeBtnContainer.animate(gb,K,"normal"),h.logWrapper.animate(La,K,"normal")):(q.attr(m),h.veil.attr(m),h.dialog.attr(t),h.logBackground.attr(R),h.closeBtnContainer&&h.closeBtnContainer.attr(gb),h.logWrapper.attr(La))}}])}]);FusionCharts.register("module",["private","modules.renderer.js-alertmanager",function(){var K=this,ba=function(h){return function(){eval(h.param)}};FusionCharts.register("component",["manager","alert",{pIndex:1,init:function(h){this.linkedItems=
{chart:h}},configure:function(){var h=this.linkedItems.chart,t=h.get("jsonData","alerts"),t=t&&t.alert,h=h.get("components","numberFormatter"),n=this.config||(this.config={}),K,f;if(t&&t.length)for(n.alertArr=t,n=t.length,K=0;K<n;K+=1)f=t[K],f.minvalue=h.getCleanValue(f.minvalue),f.maxvalue=h.getCleanValue(f.maxvalue);else n.alertArr=[]},processRTData:function(h){var t=this.linkedItems.chart.get("components","numberFormatter"),n,K,f,q,e,ba,la;if(h&&h.dataset&&h.dataset.length)for(f=h.dataset.length,
n=0;n<f;n+=1)if(q=h.dataset[n],q.data&&q.data.length)for(e=q.data.length,K=0;K<e;K+=1)la=(ba=q.data[K])&&t.getCleanValue(ba.value),null!==la&&this._doAlert(t.getCleanValue(ba.value))},_doAlert:function(h){var t=this.linkedItems.chart,n=this.config.alertArr,T=n.length,f,q,e;for(q=0;q<T;q+=1)if(f=n[q],e=f.action&&f.action.toLowerCase(),f.minvalue<=h&&f.maxvalue>=h){if("1"!==f.occuronce||!f.hasOccurred){f.hasOccurred=!0;f.state="1";switch(e){case "calljs":setTimeout(ba(f),0);break;case "showannotation":t.showAnnotation&&
t.showAnnotation(f.param)}K.raiseEvent("AlertComplete",{alertValue:h,alertMaxValue:f.maxvalue,alertMinValue:f.minvalue},t.chartInstance)}}else"showannotation"===e&&"1"===f.state&&t.hideAnnotation&&t.hideAnnotation(f.param),f.state="2"}}])}]);FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var K=this,ba=K.window,h=Math.random,t=K.hcLib.pluckNumber,n=function(f,h,e){clearTimeout(e);return setTimeout(f,h)},T;T=function(f){var q=f.sender,e=q.__state,T,la,sa,ka,oa,pa,
N,da,A,m;e.dataSetDuringConstruction&&!e.rtStateChanged&&void 0===e.rtPreInit&&(q.dataReady()?(e.rtStateChanged=!0,e.rtPreInit=!0):e.rtPreInit=!1);e.rtStateChanged&&(e.rtStateChanged=!1,sa=(la=q.jsVars)&&la.instanceAPI)&&(ka=sa.config||{},T=sa.jsonData&&sa.jsonData.chart,sa=ka&&ka.chart||{},oa=1E3*t(ka.updateInterval,ka.refreshInterval),pa=1E3*t(ka.clearInterval,0),N=ka.dataStreamURL,ka=!!(ka&&ka.realtimeEnabled&&0<oa&&void 0!==N&&""!==N&&sa),da=e._rtAjaxObj,A=function(){q.clearChart&&q.clearChart();
pa&&(e._toClearChart=setTimeout(A,pa))},m=function(){var f=N,n=T&&T.datastamp,f=f+((-1===N.indexOf("?")?"?num=":"&num=")+h());n&&(f+="&dataStamp="+n);da.open&&da.abort();da.get(f);e._rtAjaxLatencyStart=new Date},0>=oa?(e._toRealtime=clearTimeout(e._toRealtime),da&&da.abort()):10>oa&&(oa=10),e._toClearChart=clearTimeout(e._toClearChart),0<pa&&(10>pa?pa=10:e._toClearChart=setTimeout(A,pa)),e._rtStaticRefreshMS=oa,ka&&(void 0===e._rtPaused&&(e._rtPaused=!1),e._rtDataUrl=N,e.lastSetValues=null,da=e._rtAjaxObj||
(e._rtAjaxObj=new K.ajax),da.onSuccess=function(h,n,A,t){if(!q.disposed){n=la.instanceAPI;A=n.feedData;var K={},da=n.config;e._rtAjaxLatencyStart&&(e._rtAjaxLatency=new Date-e._rtAjaxLatencyStart);if(A&&da.realtimeEnabled&&N){n._getPrevData();n.feedData(h,!0,t,e._rtAjaxLatency||0);h=(K.realtimeDrawingLatency||0)+(e._rtAjaxLatency||0);try{ba.FC_ChartUpdated&&ba.FC_ChartUpdated(f.sender.id)}catch(T){setTimeout(function(){throw T;},1)}e._rtPaused||(h>=e._rtStaticRefreshMS&&(h=e._rtStaticRefreshMS-1),
e._toRealtime=setTimeout(m,e._rtStaticRefreshMS-h))}else e._toRealtime=clearTimeout(e._toRealtime)}},da.onError=function(h,n,A,t){e._rtAjaxLatencyStart&&(e._rtAjaxLatency=new Date-e._rtAjaxLatencyStart);K.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:t,xmlHttpRequestObject:n.xhr,error:h,httpStatus:n.xhr&&n.xhr.status?n.xhr.status:-1,networkLatency:e._rtAjaxLatency},f.sender);e._toRealtime=q.isActive()?setTimeout(m,oa):clearTimeout(e._toRealtime)},e._rtPaused||(e._toRealtime=n(m,0,
e._toRealtime))))};K.addEventListener(["beforeDataUpdate","beforeRender"],function(f){f=f.sender;var h=f.__state;f.jsVars&&(f.jsVars._rtLastUpdatedData=null);h._toRealtime&&(h._toRealtime=clearTimeout(h._toRealtime));h._toClearChart&&(h._toClearChart=clearTimeout(h._toClearChart));h._rtAjaxLatencyStart=null;h._rtAjaxLatency=null});K.addEventListener(["renderComplete","dataUpdated"],function(f){var h=f.sender.__state;h&&(void 0===h.rtPreInit&&(h.rtPreInit=!1),h._rtPaused&&delete h._rtPaused,h.rtStateChanged||
(h.rtStateChanged=!0,T.apply(this,arguments)))});K.core.addEventListener("beforeDispose",function(f){f=f.sender.__state;f._toRealtime&&(f._toRealtime=clearTimeout(f._toRealtime));f._toClearChart&&(f._toClearChart=clearTimeout(f._toClearChart))});K.core.addEventListener("drawComplete",T)}]);FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function K(){}var ba=this,h=ba.hcLib,t=h.Raphael,n=h.BLANKSTRING,T=h.parseConfiguration,f=h.pluck,q=h.getValidValue,e=h.pluckNumber,
Fa=h.getFirstDefinedValue,la=h.getColorCodeString,sa={},ka=h.extend2,oa=h.hasSVG,pa=h.getFirstValue,N=h.graphics.getDarkColor,da=h.graphics.getLightColor,A=h.graphics.convertColor,m=h.chartAPI,D=h.preDefStr,aa=D.colors,R=aa.c000000,Aa=aa.FFFFFF,xa=D.configStr,fa=D.animationObjStr,ta=D.showHoverEffectStr,Ga=D.visibleStr,Qa=D.ROUND,mb=D.miterStr,Ya=D.POSITION_START,z=D.POSITION_TOP,nb=D.POSITION_END,La=D.POSITION_BOTTOM,H=D.POSITION_MIDDLE,ha=D.PLOTFILLCOLOR_STR,ub=D.gaugeFillColorStr,rb=D.gaugeBorderColorStr,
fb=h.getDashStyle,gb=h.parseTooltext,F=h.COMMASTRING,vb=h.ZEROSTRING,Na=h.parseUnsafeString,ra=ba.window,D=/msie/i.test(ra.navigator.userAgent)&&!ra.opera,yb=h.regex.hexcode,Ia="rgba(192,192,192,"+(D?.002:1E-6)+")",Mb=D?.002:1E-6,D=Math,ya=D.round,jb=D.ceil,qa=D.max,ma=D.min,Ba=D.abs,Za=D.atan2,V=D.pow,bb=D.sqrt,D=D.PI,Jb=2*D,cb=D/180,Oa=h.regex.dropHash,Ja=h.toPrecision,Ra=h.HASHSTRING,Z=h.toRaphaelColor,D=h.TOUCH_THRESHOLD_PIXELS,aa=h.CLICK_THRESHOLD_PIXELS,$a=void 0!==ra.document.documentElement.ontouchstart,
Sa=$a?D:aa,na=h.getPosition,wa=h.plotEventHandler,ua=h.schedular,Ha={"true":void 0,"false":"crisp"},D=function(a,c){var b;a||(a={});for(b in c)a[b]=c[b];return a},ab=function(a,c,b,d){c=e(c,d);a=e(a,b);return c&&a?a/b==c/d?b/a:Math.min(b/a,d/c):1},Ua=function(a){return"string"===typeof a},va=function(a){return void 0!==a&&null!==a},Db=h.regex.startsRGBA,hb=h.setLineHeight,ib=h.pluckFontSize,ob=h.POSITION_MIDDLE,Da=h.HUNDREDSTRING,Va=h.COMMASPACE,Ta={right:nb,left:Ya,middle:H,start:Ya,end:nb,center:H,
undefined:n,BLANK:n},Wa=function(){return function(a,c,b){var d,g=this,J=this._Attr,e=t.vml?-1.5:0,k=t.vml?-1.5:0,l;J||(J=g._Attr={});Ua(a)&&va(c)&&(d=a,a={},a[d]=c);if(Ua(a)||void 0===a)g="angle"==a?g._Attr[a]:g._attr(a);else for(d in a)c=a[d],"angle"===d?(J[d]=c,l=c*cb,J.tooltipPos[0]=J.cx+J.toolTipRadius*Math.cos(l),J.tooltipPos[1]=J.cy+J.toolTipRadius*Math.sin(l),J.prevValue=c,b&&b.duration?g.animate({transform:"R"+c+F+e+F+k},b.duration,"easeIn"):g.attr({transform:"R"+c+F+e+F+k})):g._attr(d,c);
return g}},kb=function(a){var c=[],b;(function(a){(b=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))?c=[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10),parseFloat(b[4])]:(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&(c=[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16),1])})(a);return{get:function(b){return c&&!isNaN(c[0])?"rgb"===b?"rgb("+c[0]+","+c[1]+","+c[2]+")":"hex"===b?"#"+(R+(c[0]<<16|c[1]<<8|c[2]).toString(16)).slice(-6):
"a"===b?c[3]:"rgba("+c.join(",")+")":a},brighten:function(a){if(!isNaN(a)&&0!==a){var b;for(b=0;3>b;b++)c[b]+=parseInt(255*a,10),0>c[b]&&(c[b]=0),255<c[b]&&(c[b]=255)}return this},setOpacity:function(a){c[3]=a;return this}}},aa=ka({},h.defaultGaugePaletteOptions);Array.prototype.forEach||(Array.prototype.forEach=function(a,c){var b,d,g,J,e;if(null==this)throw new TypeError(" this is null or not defined");g=Object(this);J=g.length>>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");
1<arguments.length&&(b=c);for(d=0;d<J;)d in g&&(e=g[d],a.call(b,e,d,g)),d++});K.prototype={numDecimals:function(a){a=Ja(a,10);a=Math.abs(a);a=Ja(a-Math.floor(a),10);a=String(a).length-2;return 0>a?0:a},toRadians:function(a){return a/180*Math.PI},toDegrees:function(a){return a/Math.PI*180},flashToStandardAngle:function(a){return-1*a},standardToFlashAngle:function(a){return-1*a},flash180ToStandardAngle:function(a){var c=360-(0>(a%=360)?a+360:a);return 360==c?0:c},getAngularPoint:function(a,c,b,d){d*=
Math.PI/180;return{x:a+b*Math.cos(d),y:c-b*Math.sin(d)}},remainderOf:function(a,c){var b=a%c,d=void 0,d=V(10,void 0===d?2:d),b=ya(Number(String(b*d)));return b/=d},boundAngle:function(a){return 0<=a?K.prototype.remainderOf(a,360):360-K.prototype.remainderOf(Math.abs(a),360)},toNearestTwip:function(a){var c=0>a?-1:1;a=ya(100*Math.abs(a));var b=Math.floor(a/5);return(2<Number(String(a-5*b))?5*b+5:5*b)/100*c},roundUp:function(a,c){var b=V(10,void 0===c?2:c);a=ya(Number(String(a*b)));return a/=b}};K.prototype.constructor=
K;h.MathExt=K;m("realtimecolumn",{showRTvalue:!0,canvasPadding:!0,isRealTime:!0,standaloneInit:!0,creditLabel:!1,defaultDatasetType:"realtimecolumn",applicableDSList:{realtimecolumn:!0},transposeAxis:!0,rtManageSpace:!0,_realTimeConfigure:function(){var a=this.config,c=a.animationObj,a=a.realTimeConfig||(a.realTimeConfig={}),b,d,g,J;b=this.jsonData;var W=b.chart;J=b.categories&&b.categories[0]&&b.categories[0].category&&b.categories[0].category.length||0;a.showRTValue=e(W.showrealtimevalue,1);a.dataStreamURL=
f(W.datastreamurl,n);a.dataStamp=W.datastamp;a.useMessageLog=e(W.usemessagelog,0);a.clearInterval=e(W.clearchartinterval,0);a.realtimeValueSeparator=f(W.realtimevaluesep,Va);a.refreshInterval=b=e(W.refreshinterval,W.updateinterval,2);a.updateInterval=this.config.updateInterval=e(W.updateinterval,b);a.realtimeValuePadding=e(W.realtimevaluepadding);a.realtimeValueFont=f(W.realtimevaluefont,n);a.realtimeValueFontBold=f(W.realtimevaluefontbold,0);a.realtimeValueFontColor=d=f(W.realtimevaluefontcolor,
n);a.realtimeValueFontSize=g=e(W.realtimevaluefontsize,n);a.realTimeValuePadding=e(W.realtimevaluepadding,5);a.fontWeight=e(W.realtimevaluefontbold,0)?"bold":"normal";a.numDisplaySets=e(W.numdisplaysets,qa(J,15));a.refreshInstantly=e(W.refreshinstantly,0);a.showRTmenuItem=J=e(W.showrtmenuitem,0);a.sync=e(W.sync,.6<b?!0:!1);d&&(a.realtimeValueFontColor=d.replace(Oa,Ra));g&&(a.realtimeValueFontSize=g+"px");b*=1E3;c.duration>b&&(c.duration=b);J&&this._setRTmenu()},_setRealTimeCategories:function(){var a=
this.components.xAxis[0],c=[],b=this.config.realTimeConfig,d=b&&b.clear?void 0:this.jsonData.categories&&this.jsonData.categories[0]&&this.jsonData.categories[0].category,g=a.getCategoryLen(),b=b.numDisplaySets,g=a.getCategoryLen();g<b?(c.length=b-g,d=d?c.concat(d):c,a.setCategory(d)):g>b&&(d.splice(b,g-b),a.setCategory(d))},_realTimeValuePositioning:function(a){var c=this.components,b=this.linkedItems.smartLabel,d;d=this.config;var g=d.realTimeConfig||(d.realTimeConfig={}),J=g.realTimeValuePadding,
c=c.xAxis[0].config,W=c.trend.trendStyle,c=g.style={color:A(f(g.realtimeValueFontColor,W.color),f(c.trendlineAlpha,99)),fontFamily:f(g.realtimeValueFont,W.fontFamily),fontSize:f(g.realtimeValueFontSize,W.fontSize),fontWeight:f(g.fontWeight,W.fontWeight),lineHeight:e(W.lineHeight)};b.useEllipsesOnOverflow(d.useEllipsesWhenOverflow);b.setStyle(c);g.height=b=b.getOriSize(h.TESTSTR).height;g.canvasBottom=d.canvasBottom;d=b+J;d>a&&(d=a);return{bottom:d}},_drawRealTimeValue:function(){var a=this.components,
c=this.config,b=a.dataset,d=a.paper,g=this.linkedItems.smartLabel,J=c.realTimeConfig,e=J.realtimeValueSeparator,k=b.length,l=n,x=this.get(xa,fa),r=x.animObj,p=x.dummyObj,x=x.duration,f=J.canvasBottom,h=J.height,w=c.canvasLeft,v=c.canvasRight,Pa=J.style||{},a=a.realTimeValue||(a.realTimeValue={}),y=a.graphics,u=this.graphics,E=u.parentGroup,B=u.realTimeValueGroup,Xa;J.clear&&a.graphics.attr({text:n});if(B){for(J=0;J<k;J++)u=b[J].components.data,u=(u=u[u.length-1])&&u.config.displayValue,l+=u?void 0===
u?n:u+e:n;l=l.substring(0,l.length-e.length);g.useEllipsesOnOverflow(c.useEllipsesWhenOverflow);g.setStyle(Pa);g.getOriSize(l);c={x:(w+v)/2||0,y:f-h/2||0,"font-size":Pa.fontSize,"font-weight":Pa.fontWeight,"font-family":Pa.fontFamily,"line-height":Pa.lineHeight,visibility:Ga};y||(y=a.graphics=d.text(c,B),Xa=!0);y.attr({text:l,fill:Pa.color});y&&!Xa&&(y.show(),y.animateWith(p,r,c,x))}else u.realTimeValueGroup=d.group("realTimeValue",E).insertBefore(u.datalabelsGroup)},_hideRealTimeValue:function(){var a=
this.components;(a=(a=a.realTimeValue||(a.realTimeValue={}),a.graphics))&&a.hide()},_getData:function(){var a=this.components,c=a.dataset,a=a.xAxis&&a.xAxis[0]||a.scale,b,d,g,J=[],e=0,k,l;if(c){b=c.length;for(d=0;d<b;d++)e=qa(e,c[d].components.data.length);for(d=0;d<e;d++)for(l=J[d]=[],l[0]=a.getLabel(d).label,g=1;g<=b;g++)k=c[g-1].components.data[d],l[g]=k&&k.config.setValue;return J}},_setData:function(a,c){var b=n;if(a&&a.toString||a===n||0===a)b="value="+a.toString();if(c&&c.toString||c===n)b=
b+"&label="+c.toString();b&&this.feedData(b)},_stopUpdate:function(a){var c=this.config.realTimeConfig,b=this.linkedItems.timers&&this.linkedItems.timers.setTimeout.loadData,d=this.chartInstance,g=d.__state;clearTimeout(g._toRealtime);g._rtAjaxObj&&g._rtAjaxObj.abort();g._rtPaused=!0;b&&clearTimeout(b);c.clearIntervalFlag=!1;ba.raiseEvent("realimeUpdateStopped",{source:a},d)},_restartUpdate:function(){var a=this.chartInstance.__state;a._rtDataUrl&&a._rtPaused&&(a._rtPaused=!1,a._rtAjaxObj.get(a._rtDataUrl))},
_isUpdateActive:function(){return!this.chartInstance.__state._rtPaused},_setRTmenu:function(){var a=this,c=a.chartMenuTools,b=c.set,d=c.update,g=!1;b([{"Clear Chart":{handler:function(){a._clearChart.call(a)},action:"click"}},{"Stop Update":{handler:function(){g?(a._restartUpdate.call(a),d("Restart Update","Stop Update",a),g=!1):(a._stopUpdate.call(a),d("Stop Update","Restart Update",a),g=!0)},action:"click"}}])},_getDataJSON:function(){return this.config.realTimeConfig.legacyUpdateObj||{values:[]}},
eiMethods:{feedData:function(){return this.apiInstance.feedData.apply(this.apiInstance,arguments)},setData:function(){this.apiInstance._setData.apply(this.apiInstance,arguments)},stopUpdate:function(){this.apiInstance._stopUpdate.apply(this.apiInstance,arguments)},restartUpdate:function(){this.apiInstance._restartUpdate.apply(this.apiInstance,arguments)},isUpdateActive:function(){return this.apiInstance._isUpdateActive.apply(this.apiInstance,arguments)},clearChart:function(){this.apiInstance._clearChart.apply(this.apiInstance,
arguments)},getData:function(){return this.apiInstance._getData.apply(this.apiInstance,arguments)},showLog:function(){var a=this.apiInstance.components&&this.apiInstance.components.messageLogger;return a&&a.show&&a.show.apply(a,arguments)},hideLog:function(){var a=this.apiInstance.components&&this.apiInstance.components.messageLogger;return a&&a.hide&&a.hide.apply(a,arguments)},clearLog:function(){var a=this.apiInstance.components&&this.apiInstance.components.messageLogger;return a&&a.clearLog&&a.clearLog.apply(a,
arguments)},getDataForId:function(){return this.apiInstance._getDataForId.apply(this.apiInstance,arguments)},setDataForId:function(){return this.apiInstance._setDataForId.apply(this.apiInstance,arguments)},getDataJSON:function(){return this.apiInstance._getDataJSON.apply(this.apiInstance,arguments)}}},m.mscartesian);m("realtimestackedcolumn",{isStacked:!0},m.realtimecolumn);m("gaugebase",{creaditLabel:!1,defaultPaletteOptions:aa,multiValueGauge:!1,decimals:2,formatnumberscale:0,drawAnnotations:!0,
useScaleRecursively:!0,includeColorRangeInLimits:!1,isWidget:!0,_createAxes:function(){},_feedAxesRawData:function(){},_setCategories:function(){},_setAxisLimits:function(){},realTimeUpdate:function(a){var c=this.components.dataset,b=a.dataset;a=a.categories&&a.categories.category||[];var d=this.config.realTimeConfig=this.config.realTimeConfig||(this.config.realTimeConfig={}),g,J,e;if(c){e=b[0];b=e.data;J=0;for(g=b.length;J<g;J++)b[J].label=a[J]&&a[J].label;c[0].updateData(e);c[0].maxminFlag&&(d.maxminFlag=
c[0].maxminFlag)}},_clearChart:function(){},_realTimeConfigure:m.realtimecolumn,_setRTmenu:function(){var a=this,c=a.chartMenuTools,b=c.set,d=c.update,g=!1;b([{"Stop Update":{handler:function(){g?(a._restartUpdate.call(a),d("Restart Update","Stop Update",a),g=!1):(a._stopUpdate.call(a),d("Stop Update","Restart Update",a),g=!0)},action:"click"}}])},_getData:m.realtimecolumn,_setData:m.realtimecolumn,_stopUpdate:m.realtimecolumn,_restartUpdate:m.realtimecolumn,_isUpdateActive:m.realtimecolumn,eiMethods:m.realtimecolumn},
m.sscartesian,{valuefontbold:1});m("axisgaugebase",{chartLeftMargin:15,chartRightMargin:15,chartTopMargin:10,chartBottomMargin:10,minChartHeight:10,minCanvasWidth:0,annotationRelativeLayer:"axis",_createAxes:function(){var a=this.components,c=FusionCharts.register("component",["axis","gauge"]);a.scale=a=new c;a.chart=this;a.init()},_feedAxesRawData:function(){var a=this.components,c=a.colorManager,b=this.jsonData,d=b.chart,g=h.chartPaletteStr.chart2D,J=e(d.ticksbelowgauge),W=e(d.ticksonright),J=e(d.axisontop,
void 0!==d.axisonleft?!e(d.axisonleft):void 0,void 0!==J?!J:void 0,void 0!==W?W:void 0,this.isAxisOpposite),W=e(d.reverseaxis,this.isAxisReverse),k=e(d.showtickmarks,1),l=e(d.showtickvalues),k=l||void 0===l?k||void 0!==l?!0:!1:!1,c={outCanfontFamily:f(d.outcnvbasefont,d.basefont,"Verdana,sans"),outCanfontSize:ib(d.outcnvbasefontsize,d.basefontsize,10),outCancolor:f(d.outcnvbasefontcolor,d.basefontcolor,c.getColor(g.baseFontColor)).replace(/^#?([a-f0-9]+)/ig,"#$1"),useEllipsesWhenOverflow:d.useellipseswhenoverflow,
divLineColor:f(d.vdivlinecolor,c.getColor(g.divLineColor)),divLineAlpha:f(d.vdivlinealpha,c.getColor("divLineAlpha")),divLineThickness:e(d.vdivlinethickness,1),divLineIsDashed:!!e(d.vdivlinedashed,d.vdivlineisdashed,0),divLineDashLen:e(d.vdivlinedashlen,4),divLineDashGap:e(d.vdivlinedashgap,2),showAlternateGridColor:e(d.showalternatevgridcolor,0),alternateGridColor:f(d.alternatevgridcolor,c.getColor("altVGridColor")),alternateGridAlpha:f(d.alternatevgridalpha,c.getColor("altVGridAlpha")),numDivLines:d.numvdivlines,
labelFont:d.labelfont,labelFontSize:d.labelfontsize,labelFontColor:d.labelfontcolor,labelFontAlpha:d.labelalpha,labelFontBold:d.labelfontbold,labelFontItalic:d.labelfontitalic,axisName:d.xaxisname,axisMinValue:d.lowerlimit,axisMaxValue:d.upperlimit,setAdaptiveMin:d.setadaptivemin,adjustDiv:d.adjustvdiv,labelDisplay:d.labeldisplay,showLabels:d.showlabels,rotateLabels:d.rotatelabels,slantLabel:e(d.slantlabels,d.slantlabel),labelStep:e(d.labelstep,d.xaxisvaluesstep),showAxisValues:e(d.showxaxisvalues,
d.showxaxisvalue),showDivLineValues:e(d.showvdivlinevalues,d.showvdivlinevalues),showZeroPlane:d.showvzeroplane,zeroPlaneColor:d.vzeroplanecolor,zeroPlaneThickness:d.vzeroplanethickness,zeroPlaneAlpha:d.vzeroplanealpha,showZeroPlaneValue:d.showvzeroplanevalue,trendlineColor:d.trendlinecolor,trendlineToolText:d.trendlinetooltext,trendlineThickness:d.trendlinethickness,trendlineAlpha:d.trendlinealpha,showTrendlinesOnTop:d.showtrendlinesontop,showAxisLine:e(d.showxaxisline,d.showaxislines,d.drawAxisLines,
0),axisLineThickness:e(d.xaxislinethickness,d.axislinethickness,1),axisLineAlpha:e(d.xaxislinealpha,d.axislinealpha,100),axisLineColor:f(d.xaxislinecolor,d.axislinecolor,"#000000"),majorTMNumber:d.majortmnumber,majorTMColor:d.majortmcolor,majorTMAlpha:d.majortmalpha,majorTMHeight:d.majortmheight,tickValueStep:d.tickvaluestep,showTickMarks:d.showtickmarks,connectTickMarks:d.connecttickmarks,showTickValues:d.showtickvalues,majorTMThickness:d.majortmthickness,upperlimit:a.numberFormatter.getCleanValue(d.upperlimit),
lowerlimit:a.numberFormatter.getCleanValue(d.lowerlimit),reverseScale:d.reversescale,showLimits:d.showlimits||k,adjustTM:d.adjusttm,minorTMNumber:e(d.minortmnumber,this.minorTMNumber,4),minorTMColor:d.minortmcolor,minorTMAlpha:d.minortmalpha,minorTMHeight:e(d.minortmheight,d.minortmwidth),minorTMThickness:d.minortmthickness,tickMarkDistance:e(d.tickmarkdistance,d.tickmarkgap),tickValueDistance:e(d.tickvaluedistance,d.displayvaluedistance),placeTicksInside:d.placeticksinside,placeValuesInside:d.placevaluesinside,
upperLimitDisplay:d.upperlimitdisplay,lowerLimitDisplay:d.lowerlimitdisplay,drawTickMarkConnector:this.isHorizontal?1:0},a=a.scale;a.vtrendlines=b.trendpoints;a.chart=this;a.setCommonConfigArr(c,!this.isHorizontal,W,J);a.configure()},_setAxisLimits:function(){var a=this.components,c=this.jsonData.chart,b=a.scale,a=a.dataset[0].getDataLimits();-Infinity===a.max&&(a.max=0);Infinity===a.min&&(a.min=0);this.colorRange&&b.setAxisConfig({lowerlimit:e(c.lowerlimit,a.forceMin?a.min:void 0),upperlimit:e(c.upperlimit,
a.forceMax?a.max:void 0)});b.setDataLimit(a.max,a.min)},_spaceManager:function(){var a,c=this.config,b=this.components,d=b.dataset[0],b=b.scale,g=this.jsonData.chart,J=e(g.showborder,this.is3D?0:1),W=this.isHorizontal,k=c.minChartWidth,l=c.minChartHeight,g=c.borderWidth=J?e(g.borderthickness,1):0,x;c.canvasWidth-2*g<k&&(a=(c.canvasWidth-k)/2);c.canvasHeight-2*g<l&&(x=(c.canvasHeight-l)/2);this._allocateSpace({top:x||g,bottom:x||g,left:a||g,right:a||g});a=.225*c.availableHeight;a=this._manageActionBarSpace&&
this._manageActionBarSpace(a)||{};this._allocateSpace(a);W?this._allocateSpace(b.placeAxis(c.availableHeight)):this._allocateSpace(b.placeAxis(c.availableWidth));this._manageChartMenuBar(.4*c.availableHeight);d._manageSpace&&this._allocateSpace(d._manageSpace(c.availableHeight));b.setAxisConfig({drawPlotlines:this.drawPlotlines,drawPlotBands:this.drawPlotBands})},_postSpaceManagement:function(){var a=this.config,c=this.components.scale;this.isHorizontal?c.setAxisDimention({axisLength:a.canvasWidth}):
c.setAxisDimention({axisLength:a.canvasHeight})},_getDataJSON:function(){var a=0,c,b,d=[],g=[],J=[],e=this.components.dataset[0].components.data;for(c=e&&e.length?e.length:0;a<c;a+=1)b=e[a].config,d.push(b.itemValue),g.push(b.formatedVal||n),J.push(b.toolText||n);return{values:d,labels:g,toolTexts:J}}},m.gaugebase);m("funnelpyramidbase",{showRTvalue:!1,canvasPadding:!1,sliceOnLegendClick:!0,defaultDatasetType:"funnelpyramidbaseds",applicableDSList:{funnel:!0},hasCanvas:!1,defaultPlotShadow:1,subTitleFontSizeExtender:0,
tooltippadding:3,defaultPaletteOptions:h.defaultPaletteOptions,drawAnnotations:!0,hasLegend:!0,isDataLabelBold:!1,dontShowLegendByDefault:!0,formatnumberscale:1,isSingleSeries:!0,alignCaptionWithCanvas:0,_updateVisuals:function(){var a=this.config,c=this.linkedItems.container,b=this.components,d=b.legend,g=b.paper,J=b.tooltip,e=this.chartInstance,k=this.get(xa,fa),l=k.animType,x=k.dummyObj,r=k.animObj,k=k.duration,p;a.animationStarted=!0;g?(a={width:c.offsetWidth,height:c.offsetHeight},p=!0,this._chartAnimation(!0),
g.animateWith(x,r,a,k,l)):(g=b.paper=new t(c,c.offsetWidth,c.offsetHeight),g.setConfig("stroke-linecap",Qa));g.tooltip(J.style,J.config.shadow,J.config.constrain);this.setChartCursor();this._createLayers();this._setDataLabelStyle();!p&&this._chartAnimation(!0);this._drawBackground();b.chartMenuBar&&this._drawChartMenuBar();this._manageCaptionPosition();b.caption&&b.caption.draw();b.actionBar&&this.drawActionBar();this._drawDataset();!1!==this.hasLegend&&d.drawLegend();this._drawCreditLabel();this._drawLogo();
e.annotations&&this._drawAnnotations();this.createChartStyleSheet()}},m.gaugebase);m("funnel",{friendlyName:"Funnel Chart",standaloneInit:!0,creditLabel:!1,defaultDatasetType:"funnel",applicableDSList:{funnel:!0},useSortedData:!0},m.funnelpyramidbase);m("pyramid",{friendlyName:"Funnel Chart",standaloneInit:!0,creditLabel:!1,defaultDatasetType:"pyramid",applicableDSList:{pyramid:!0},useSortedData:!1},m.funnelpyramidbase);FusionCharts.register("component",["dataset","FunnelPyramidBase",{type:"funnelpyramidbase",
pIndex:2,customConfigFn:"_createDatasets",init:function(a){var c=this.utils,b=c.invokeHookFns,d=this.postInitHook;if(!a)return!1;c.setContext(this);this.JSONData=a;this.components={};this.conf={};this.graphics={};b(d);this.configure()},removeData:function(){},_configure:function(){var a=this.chart,c=a.components.colorManager,b=a.config,d=b.style,g=this.components,J=this.conf||{},W=this.JSONData.data||[],a=a.jsonData?a.jsonData.chart:{},k=this.utils,l=k.invokeHookFns,k=k.copyProperties,x=h.setLineHeight,
b=b.canvasHeight,r=this.configureSpecifics,p=this.preDrawingHook,Eb=c.getColor("baseFontColor");k(a,J,[["showlabels","showLabels",e,1],["showvalues","showValues",e,1],["plottooltext","toolText",f,n],["enableslicing","enableSlicing",e,1],["plotfillalpha","plotFillAlpha",e,100],["showplotborder","showPlotBorder",e,0],["plotborderalpha","plotBorderAlpha",e,void 0],["plotbordercolor","plotBorderColor",f,void 0],["plotborderthickness","plotBorderThickness",e,1],["showshadow","showShadow",e,1],["showhovereffect",
ta,e,0],["hovercapsepchar","hoverCapSepChar",f,Va],["tooltipsepchar","tooltipSepChar",f,"$hoverCapSepChar"],["labelsepchar","labelSepChar",f,"$tooltipSepChar"],["showpercentintooltip","showPercentInToolTip",e,1],["showpercentvalues","showPercentValues",e,0],[n,"slicingDistance",e,.1*b],["slicingdistance","slicingHeight",e,"$slicingDistance",function(a){a.slicingDistance=a.slicingHeight>2*a.slicingDistance?0:a.slicingHeight}],[n,"blankSpace",e,3],["labeldistance","labelDistance",e,50],["issliced",
"isSliced",e,0],["is2d","is2d",e,0],[n,"blankSpace",e,3],["showlabelsatcenter","showLabelsAtCenter",e,0],["smartlinethickness","connectorWidth",e,1],["smartlinealpha","connectorAlpha",e,100],["smartlinecolor","rawSmartLineColorCode",f,function(){return c.getColor("baseFontColor")}],["labelalpha","labelAlpha",e,100],["basefont","baseFont",f,"Verdana,sans"],["basefontsize","baseFontSize",e,10],["basefontcolor","baseFontColor",f,Eb],["labelfontcolor","labelFontColor",f,"$baseFontColor"],["showtooltip",
"showTooltip",e,1],["percentofprevious","percentOfPrevious",e,0],["animationduration","animationDuration",e,1,function(a){a.animationDuration*=1E3}]]);J.connectorColor=A(J.rawSmartLineColorCode,J.connectorAlpha);x(d);d.nLineHeight=d.lineHeight.match(/^\d+/)[0];k(d,J,[[n,"lineHeight",e,J.baseFontSize]]);delete d.nLineHeight;l(r);J.datalabelDisabled=J.showLabels||J.showValues?!1:!0;g.data=this.getNormalizeDataSet(W);l(p)},_checkValidData:function(a){var c=this.chart;return a&&a.length?!0:(c.setChartMessage(),
!1)},addLegend:function(){var a=this.chart,c=a.jsonData.chart,b,d=this.JSONData.data,g=a.components.legend;g.emptyItems();for(a=0;a<d.length;a+=1)b=d[a],b.pseudoPoint||(b.legendItemId=g.addItems(this,void 0,{type:this.type,label:b.label,index:a,enabled:e(c.includeinlegend,1),legendItemId:b.legendItemId}))},getNormalizeDataSet:function(a,c){var b=this.getPointInContext(),d=this.chart,g=this.conf,J=d.components,W=J.numberFormatter,k=this.chart.linkedItems.smartLabel,J=J.colorManager,l,x=[],r,p,Eb,S=
0,w,v,Pa,y,u,E=0,B,Xa,C,I,G,m,z=g.showPercentValues,Ka=g.labelSepChar,t=d.jsonData.chart,H=g.isSliced,L,M,O,D,Y={apply:g.showShadow,opacity:1},P,X,K=g.plotBorderThickness;r=g.dataConnectorStyle={};var Q=d.config.PLOT_COLOR_INDEX_START,ga,ca,ea,N;ka(P=g.style={},d.config.style);P.borderDash="none";P.borderPadding=2;P.borderRadius=0;P.borderThickness=1;P.color=A(g.labelFontColor,g.labelAlpha);P.fontFamily=g.baseFont;P.fontSize=g.baseFontSize+"px";P.fontStyle="normal";P.fontWeight="normal";r.connectorWidth=
g.connectorWidth;r.connectorColor=g.connectorColor;ga=this.datasetCalculations(a);p=ga.hasValidPoint;r=ga.refreshedData;S=ga.sumValue;Eb=ga.highestValue;this._chartLevelAttr=h.parsexAxisStyles({},{},t,P);if(p)for(g.sumValue=S,p=W.dataLabels(S),w=r.length,k.useEllipsesOnOverflow(d.config.useEllipsesWhenOverflow),d=0;d<w;d+=1){l=r[d];ca=l.legendItemId;v=l.cleanValue;Pa=d?r[d-1].value:v;y=Na(f(l.label,l.name,n));u=k.getOriSize(y);M=l.alpha||g.plotFillAlpha;ea=f(l.color,J.getPlotColor(Q++));N=A(ea);L=
A(ea,M);O=f(l.bordercolor,g.plotBorderColor,da(ea,25)).split(F)[0];D=g.showPlotBorder?f(l.borderalpha,g.plotBorderAlpha,"80"):vb;Y.opacity=Math.max(M,D)/100;if(B=e(l.issliced,H))E+=1,g.preSliced=B;ga.prevPerValReq&&(S=Pa);Xa=W.percentValue(v/S*100);g.datalabelDisabled||(C=W.dataLabels(v)||n,I=1===g.showLabels?y:n,G=1===e(l.showvalue,g.showValues)?1===z?Xa:C:n,m=q(Na(l.displayvalue)),X=f(m,y+Ka+(z?Xa:C),n),G=m?m:G!==n&&I!==n?I+Ka+G:f(I,G)||n);I=q(Na(f(l.tooltext,g.toolText)));void 0!==I?(Pa={formatedVal:C,
name:y,pValue:Xa,sum:p,sumValue:p,dataValue:v,prevValue:Pa,highestValue:Eb},I=gb(I,[1,2,3,7,14,24,25,37],this.getTooltipMacroStub(Pa),l,t)):(I=1===g.showPercentInToolTip?Xa:C,I=y!==n?y+g.tooltipSepChar+I:I);Pa=this.pointHoverOptions(l,{color:ea,alpha:M,borderColor:O,borderAlpha:D,borderWidth:K});Xa=G;m=X;var Z=h.parsexAxisStyles(l,{},t,P,L),R;R=l;var fa={labelfont:"fontFamily",labelfontcolor:"color",labelfontsize:"fontSize",labelfontbold:"fontWeight",labelfontitalic:"fontStyle"},U=void 0,ja=void 0;
for(ja in fa)ja in R&&(U=U||{},U[fa[ja]]=R[ja]);U&&(U.fontWeight&&(U.fontWeight=e(U.fontWeight)?"bold":"normal"),U.fontStyle&&(U.fontStyle=e(U.fontStyle)?"italic":"normal"));R=U;l={displayValue:Xa,displayValueArgs:m,style:Z,appliedStyle:R,name:y,categoryLabel:y,rawColor:ea,rawAlpha:M,toolText:I,legendCosmetics:void 0,legendItemId:ca,showInLegend:void 0,y:v,shadow:Y,smartTextObj:u,legendColor:N,color:L,alpha:M,borderColor:A(O,D),borderWidth:K,link:q(l.link),isSliced:B,doNotSlice:!g.enableSlicing,hoverEffects:Pa.enabled&&
Pa.options,rolloverProperties:Pa.enabled&&Pa.rolloverOptions};x.push(new b(l))}g.noOFSlicedElement=E;return x},datasetCalculations:function(a){var c=this.chart.components.numberFormatter,b,d,g,J,e={refreshedData:[]};e.sumValue=e.countPoint=0;e.highestValue=Number.NEGATIVE_INFINITY;b=0;for(d=a.length;b<d;b++)g=a[b],g.vline||(g.cleanValue=J=Math.abs(c.getCleanValue(g.value,!0)),null!==J&&(e.hasValidPoint=!0,e.highestValue=e.highestValue||J,e.refreshedData.push(g),e.sumValue+=J,e.countPoint+=1,e.highestValue=
Math.max(e.highestValue,e.itemValue)));return e},pointHoverOptions:function(a,c){var b=this.chart,d=e(a.showhovereffect,this.conf.showHoverEffect),g={enabled:d},J={},W,b=b.jsonData?b.jsonData.chart:{};d||(d=g.enabled=void 0!==f(a.hovercolor,b.plotfillhovercolor,a.hoveralpha,b.plotfillhoveralpha,a.borderhovercolor,b.plotborderhovercolor,a.borderhoverthickness,b.plotborderhoverthickness,a.borderhoveralpha,b.plotborderhoveralpha));if(d){g.highlight=e(a.highlightonhover,b.highlightonhover);g.color=f(a.hovercolor,
b.plotfillhovercolor);g.alpha=f(a.hoveralpha,b.plotfillhoveralpha,c.alpha);g.borderColor=f(a.borderhovercolor,b.plotborderhovercolor,c.borderColor);g.borderThickness=e(a.borderhoverthickness,b.plotborderhoverthickness,c.borderWidth);g.borderAlpha=f(a.borderhoveralpha,b.plotborderhoveralpha,c.borderAlpha);0!==g.highlight&&void 0===g.color&&(g.highlight=1);g.color=f(g.color,c.color).replace(/,+?$/,n);if(1===g.highlight){J=g.color.split(/\s{0,},\s{0,}/);b=J.length;for(W=0;W<b;W+=1)J[W]=da(J[W],70);g.color=
J.join(",")}J={color:g.color,alpha:+g.alpha,borderColor:A(g.borderColor,g.borderAlpha),borderWidth:g.borderThickness}}return{enabled:d,options:g,rolloverOptions:J}},getTooltipMacroStub:function(a){return{formattedValue:a.formatedVal,label:a.name,percentValue:a.pValue,sum:a.sum,unformattedSum:a.sumValue}},preDrawingSpaceManagement:function(){var a=this.getPointInContext(),c=this.chart,b=c.config,d=c.components,g=d.caption.config.height||0,J=d.subCaption.config.height||0,W=this.conf,k=W.showTooltip,
l=W.slicingDistance,x;x=b.height-(b.marginTop+b.marginBottom);var r=b.width-(b.marginRight+b.marginLeft),p=this.components.data,f,h;f=W.blankSpace;var w=this.LABEL_PLACEMENT_ITERATOR_INDEX_START,a=a.upperRadiusFactor,v,n,y,u,E,B,m=c.linkedItems.smartLabel,C,I,G,A,q,z,t;q=0;var H,L=0;C=this.utils.invokeHookFns;q=this.prePointProcessingHookFn;var M=d.legend,O=0;"right"===M.config.legendPos&&(O=M.config.width+10);b.oriCanvasLeft=c.config.canvasLeft;b.oriBottomSpace=c.config.marginBottom;b.oriTopSpace=
c.config.marginTop;d=W._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0};x=Math.min(2*(x-l),r);b.marginTop+=l/2;b.marginBottom+=l/2;l=p.length;f=W.labelDistance+f;h=W.showLabelsAtCenter;v=Math.min(x,.3*r);n=r-v;r-=O;y=r-v-f;u=0;E=p[0]&&p[0].y?p[0].y:1;B=.8/E;C(q,[p]);C=W.totalValue||0;for(m.useEllipsesOnOverflow(b.useEllipsesWhenOverflow);w<l;w+=1)I=p[w],I.legendItemId&&M.configureItems(I.legendItemId,{configuration:{fillColor:I.legendColor}}),q=I.style,hb(q),G=e(jb(parseFloat(q.lineHeight)+
q.borderPadding+q.borderThickness+5),10),m.setStyle(q),q=I.y,h?m.getSmartText(I.displayValue,r,G):(q=I.getModifiedCurrentValue&&I.getModifiedCurrentValue(C)||q,q=I.getRatioK(q,B,C,E),z=v*q,t=y+(v-z)/2,A=m.getSmartText(I.displayValue,t,G),I.displayValue=A.text,k&&A.tooltext&&(I.originalText=A.tooltext),u=Math.max(u,A.width),0<n&&(A=0<A.width?t-A.width:t+f,q=1/(q+1)*(z+2*A+v),n=Math.min(n,q-v)),C+=void 0===W.offsetVal?I.y:"function"===typeof W.offsetVal?W.offsetVal(w):W.offsetVal);"right"===M.config.legendPos?
(c.isLegendRight=!0,b.marginRight+=O):c.isLegendRight=!1;I&&(H=I.getLowestRadiusFactor(E));c=v+n;c>x&&(c=x);C=void 0===W.offsetVal?0:"function"===typeof W.offsetVal?W.offsetVal():W.offsetVal;if(!h)for(w=this.LABEL_PLACEMENT_ITERATOR_INDEX_START,l=p.length;w<l;w+=1)I=p[w],q=I.y,q=I.getModifiedCurrentValue&&I.getModifiedCurrentValue(C)||q,q=I.getRatioK(q,B,C,E),z=c*q,t=y+(v-z)/2-O,A=m.getSmartText(I.displayValue,t,G),L=qa(L,.5*z+A.width+f),C+=void 0===W.offsetVal?I.y:"function"===typeof W.offsetVal?
W.offsetVal():W.offsetVal;0<u?(d.rightLabelSpace=r-c,p=L-.5*b.canvasWidth,0<p&&(b.marginRight+=p,b.marginLeft-=p),b.marginRight+=.5*d.rightLabelSpace,b.marginLeft+=.5*d.rightLabelSpace):f=0;W.labelDistance=W.connectorWidth=f;(h||!u)&&x<r&&(b.marginLeft+=.5*(r-x-f),b.marginRight+=.5*(r-x-f));W.is2d||(b.marginTop+=d.top3DSpace=c*W.yScale*a/2,b.marginBottom+=d.bottom3DSpace=c*W.yScale*H/2);b.gaugeStartX=b.marginLeft;b.gaugeStartY=b.marginTop+(g+J+5);b.gaugeEndX=c+b.marginLeft;b.gaugeEndY=b.canvasHeight+
b.marginTop;b.gaugeCenterX=b.gaugeStartX+(b.gaugeEndX-b.gaugeStartX)/2-b.marginLeft/2;b.gaugeCenterY=b.gaugeStartY+(b.gaugeEndY-b.gaugeStartY)/2;b.plotSemiWidth=(b.canvasWidth-d.rightLabelSpace)/2;b.canvasCenterX=b.oriCanvasLeft+c/2},hide:function(a){var c,b,d;if(a&&0!==a.length)for(c=0,b=a.length;c<b;c++)d=a[c],d.connector&&d.connector.hide(),d.dataLabel&&d.dataLabel.hide(),d.graphic&&d.graphic.hide(),d.trackerObj&&d.trackerObj.hide()},animateElements:function(a,c,b,d,g){function J(){f||(g(),f=!0)}
function e(a,b){var c=(b||{}).alpha,c=void 0===c?d.post:{opacity:c};a&&(a.attr(d.pre),a.animateWith(x,r,c,l,p,J))}var k=this.chart.get(xa,fa),l=k.duration,x=k.dummyObj,r=k.animObj,p=k.animType,f=!1,h,w,v,n,y;g=g||function(){};b=b||[];h=0;for(w=a.length;h<w;h++)if(v=a[h])if(b.length)for(n=0,y=b.length;n<y;n++)k=a[h][c][b[n]],e(k,v.point);else k=v,e(k[c],v.point)},drawIndividualDataLabel:function(a,c){var b=this.conf,d=this.components.data,g=a.displayValue,J=a.plot,W=a.labelY,k=a.labelX,l=a.style||
{},x=e(parseInt(l.fontSize,10),b.baseFontSize),r=b.lineHeight,p=.3*x,f=.3*r,h,w=b.connectorEndSwitchHistoryY,v=b.labelDistance,m=b.blankSpace,x=b.streamLinedData;b.showLabelsAtCenter?(d=0===c&&x?W-f+(d[1].plot.distanceAvailed||0):W-f+(J.distanceAvailed||0),g!==n?J.dataLabel.transform("t"+k+","+d).show():J.dataLabel&&J.dataLabel.hide()):(f=W-p-a.distributionFactor*r,p=W-p,h=w[a.alignmentSwitch],void 0!==b.lastplotY&&void 0!==h&&h-p<r&&(W=p=h-r),a.displayValue&&(w[a.alignmentSwitch]=p),b.lastplotY=
a.plotY,b.labelAlignment===b.alignmentType.alternate?a.alignmentSwitch?(r=k+m+a.virtualWidth,b=r+v+a.distributionFactor*b.globalMinXShift):(r=k-m,b=r-(v-(a.lOverflow||0))-a.distributionFactor*b.globalMinXShift):(r=k-m,b=r-(v-(a.lOverflow||0))-a.distributionFactor*b.globalMinXShift),"undefined"===typeof g||g===n||0===c&&x?J.connector&&J.connector.hide():(b=["M",b,f,"L",r,p],J.connector.attr({path:b,"shape-rendering":f===p&&1>p?"crisp":n}).show()),d=0===c&&x?W+(d[1].plot.dy||0):p+(J.dy||0),g!==n?J.dataLabel.transform("t"+
k+F+d).show():J.dataLabel&&J.dataLabel.hide());J.dataLabel.attr({"text-bound":[l.backgroundColor,l.borderColor,l.borderThickness,l.borderPadding,l.borderRadius,l.borderDash]})},drawAllLabels:function(){var a=this.chart,c=a.graphics,b=this.graphics.plotItems,d=this.labelDrawingConfig,g=c.datalabelsGroup,J=["fontFamily","fontSize","fontWeight","fontStyle"],e={},a=a.components.paper,k=this.conf,l,x,r,p;p=0;for(x=J.length;p<x;p++)r=J[p],r in this._chartLevelAttr&&(e[r]=this._chartLevelAttr[r]);c.datalabelsGroup.css(e);
for(p=d.length-1;-1<p;p--)c=d[p],e=c.point,x=!!e.link,r=e.y,c.args&&c.css&&(c.args.fill=c.css.color||c.css.fill),null!==r&&void 0!==r&&e.shapeArgs?((l=b[p])&&l.dataLabel?(l.dataLabel.removeCSS(J),l.dataLabel.attr(c.args).css(c.css)):(e.plot.dataLabel=l.dataLabel=a.text(c.args,c.css,g),k.showLabelsAtCenter&&0===p&&k.streamLinedData||(l.connector=a.path(g))),l.dataLabel.tooltip(e.originalText),l.connector&&l.connector.attr({"stroke-width":k.dataConnectorStyle.connectorWidth,stroke:k.dataConnectorStyle.connectorColor,
ishot:!0,cursor:x?"pointer":n,transform:c.transform}),x=c.actions,!e.doNotSlice&&l.dataLabel.click(x.click,c.context),l.dataLabel.hover(x.hover[0],x.hover[1]),l.dataLabel.attr({transform:c.transform})):b[p]?(e.plot=b[p],x=e.plot.dataLabel,x.removeCSS(J),x&&x.attr(c.args).css(c.css)):e.plot=b[p]={dataLabel:a.text(c.args,c.css,g)},this.drawIndividualDataLabel(e,p)},drawAllTrackers:function(){var a=this.trackerArgs,c,b;c=0;for(b=a.length;c<b;c++)this.drawTracker(a[c])},drawTracker:function(a){var c=
this.chart,b=c.components.paper,c=c.graphics.trackerGroup,d,g,J=+new Date,e,k;if(e=a.plot)g=e.trackerObj,e.graphic&&(d=e.graphic.Shapeargs.silhuette,k={link:a.link,value:a.y,displayValue:a.displayValueArgs,categoryLabel:a.categoryLabel,dataIndex:e.index||n,toolText:a.toolText},a.datasetIndex=e.index,g?g.attr({path:d,isTracker:J,fill:Ia,stroke:"none",transform:"t0,"+(e._startTranslateY||0),ishot:!0,cursor:e.cursor}):g=e.trackerObj=b.path(d,c).attr({isTracker:J,fill:Ia,stroke:"none",transform:"t0,"+
(e._startTranslateY||0),ishot:!0,cursor:e.cursor}),g.data("eventArgs",k),g.show())},calculatePositionCoordinate:function(a,c){var b=this.conf,d=b.maxValue,g=b.is2d,J=b.x,e=this.graphics.plotItems||[],k=this.chart,l=k.config,x=l.canvasTop,r=b.unitHeight,p=b.drawingRadius,f=b.labelDistance,h=b.showLabelsAtCenter,w=b.isHollow,v=.3*l.style.fontSize,n=b.yScale,y=b.blankSpace,u=b.lastRadius,E=k.linkedItems.smartLabel,B,m=0,C,I,G=a.length-1,q=!1,A=0,z,t,F=b.lineHeight,L=.8/l.effCanvasHeight,M=k.config.width-
2,O=b.streamLinedData;B={flag:!1,point:void 0,sLabel:void 0,setAll:function(a,b,d){this.flag=a;this.point=b;this.sLabel=d}};var D={point:void 0,sLabel:void 0,set:function(a,b){return function(d,c){var g,J;d.dontPlot||(this.point&&this.sLabel?(g=a(this.point,this.sLabel),J=a(d,c),b(g,J)&&(this.point=d,this.sLabel=c)):(this.point=d,this.sLabel=c))}}},Y={},P={},X={},K={},Q=b.slicingGapPosition={};ba.extend(Y,B);ba.extend(P,B);Y.setAll=function(a,b,d){var c=this.point,g=this.sLabel;this.flag=a;c&&g?(a=
c.labelX-(g.oriTextWidth-g.width),c=b.labelX-(d.oriTextWidth-d.width),a>c&&(this.point=b,this.sLabel=d)):(this.point=b,this.sLabel=d)};P.setAll=function(a,b,d){var c=this.point,g=this.sLabel;this.flag=a;c&&g?(a=c.labelX+g.oriTextWidth,c=b.labelX+d.oriTextWidth,a<c&&(this.point=b,this.sLabel=d)):(this.point=b,this.sLabel=d)};ba.extend(X,D);ba.extend(K,D);X.set=function(){return D.set.apply(X,[function(a){return a.labelX},function(a,b){return a>b?!0:!1}])}();K.set=function(){return D.set.apply(K,[function(a,
b){return a.labelX+b.oriTextWidth},function(a,b){return a<b?!0:!1}])}();b.noOfGap=0;E.useEllipsesOnOverflow(l.useEllipsesWhenOverflow);l=0;for(B=a.length;l<B;l++)if(C=a[l])C.x=l,e[l]&&(C.isSliced=e[l].sliced||!!C.isSliced||!!b.isSliced),l?(c&&(q=!q),C.isSliced&&(t=C.x,1<t&&!Q[t]&&(Q[t]=!0,b.noOfGap+=1),t<G&&(Q[t+1]=!0,b.noOfGap+=1)),O?(t=1==b.useSameSlantAngle?d?p*C.y/d:p:d?p*bb(C.y/d):p,I=r*(a[l-1].y-C.y)||1):(m+=I=r*a[l].y,t=p*(1-m*L)),C.shapeArgs={x:J,y:x,R1:u,R2:t,h:I||1,r3dFactor:n,isHollow:w,
gStr:"point",is2D:g,renderer:k.components.paper,isFunnel:!0},E.setStyle(C.style),C.oriText=C.displayValue,z=z=E.getSmartText(C.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),h?(C.labelAline=H,C.labelX=J,C.labelY=(g?x:x+n*u)+I/2+v):(C.labelAline=Ya,C.alignmentSwitch=q,C.distributionFactor=C.distributionFactor||0,q?(C.labelX=J-(f+t+y+z.width),C.labelX-=C.distributionFactor*b.globalMinXShift,X.set(C,z)):(C.labelX=J+f+t+y,C.labelX+=C.distributionFactor*b.globalMinXShift,K.set(C,z)),A=
C.distributionFactor*F,C.labelY=x+v+I+A),c&&(q&&0>C.labelX?(u=C.labelX+z.width,u=E.getSmartText(C.displayValue,u,Number.POSITIVE_INFINITY,!0),C.labelX=2,C.isLabelTruncated=!0,C.displayValue=u.text,C.virtualWidth=u.maxWidth,Y.setAll(!0,C,u)):!q&&C.labelX+z.width>M&&(u=E.getSmartText(C.displayValue,M-C.labelX,Number.POSITIVE_INFINITY,!0),C.isLabelTruncated=!0,C.displayValue=u.text,C.virtualWidth=u.maxWidth,P.setAll(!0,C,u))),C.pWidth=C.virtualWidth=C.virtualWidth||z.width,x+=I,u=t):(C.oriText=C.displayValue,
t=1==b.useSameSlantAngle?d?p*C.y/d:p:d?p*bb(C.y/d):p,C.labelWidth>2*t&&!c?(C.labelAline=Ya,C.labelX=0):(C.labelAline=H,C.labelX=J),I=2*f,C.displayValue=E.getSmartText(C.displayValue,2*t+I,Number.POSITIVE_INFINITY,!0).text,C.labelY=(g?x:x-n*u)-v-y),C.plotX=J,C.plotY=x;this.findBestPosition.call(this,a,{lTrimmedInfo:Y,rTrimmedInfo:P,lLargestLabel:X,rLargestLabel:K})},findBestPosition:function(a,c){var b=this.conf,d=this.chart,g=d.config,J=0,e=c.lTrimmedInfo,k=c.rTrimmedInfo,l=c.lLargestLabel,x=c.rLargestLabel,
r=d.linkedItems.smartLabel,p=0,f=b.streamLinedData,h=b.blankSpace,b=g.width-b.blankSpace;if(!e.flag||!k.flag){if(k.flag){if(!l.point)return;J=k.sLabel;J=J.oriTextWidth-J.width;l=l.point.labelX-h;J=-Math.ceil(Math.min(J,l))}else if(e.flag){if(!x.point)return;J=e.sLabel;J=J.oriTextWidth-J.width;l=b-(x.point.labelX+x.sLabel.width);J=Math.ceil(Math.min(J,l))}if(J)for(l=0,x=a.length;l<x;l++)g=a[l],!l&&f?g.labelX+=J:(g.alignmentSwitch?(d=0>J?r.getSmartText(g.oriText,g.pWidth,Number.POSITIVE_INFINITY,!0):
r.getSmartText(g.oriText,g.pWidth+J,Number.POSITIVE_INFINITY,!0),g.isLabelTruncated&&(p=d.width-g.pWidth)):d=0<J?r.getSmartText(g.oriText,g.pWidth,Number.POSITIVE_INFINITY,!0):r.getSmartText(g.oriText,g.pWidth-J,Number.POSITIVE_INFINITY,!0),g.virtualWidth=d.width,g.displayValue=d.text,g.labelX+=J-p,g.shapeArgs&&(g.shapeArgs.x+=J),p=0);else for(r.useEllipsesOnOverflow(g.useEllipsesWhenOverflow),l=0,x=a.length;l<x;l++)g=a[l],0<(p=g.labelX+g.pWidth-b)&&(g.lOverflow=p,g.labelX-=p,d.isLegendRight?g.displayValue=
r.getSmartText(g.oriText,g.pWidth-p,Number.POSITIVE_INFINITY,!0).text:(g.lOverflow=p,g.labelX-=p))}},getPlotData:function(a){var c=this.components.data[a],b=this.userData||(this.userData=[]),d="y name color alpha borderColor borderWidth link label displayValue datasetIndex toolText".split(" "),g;if(b[a])a=b[a];else{a=b[a]={};for(b=0;b<d.length;b++)a[g=d[b]]=c[g];a.value=a.y;a.label=a.name;delete a.y;delete a.name}return a},pyramidFunnelShape:function(){var a={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,
opacity:!0,fill:!0,stroke:!0,strokeColor:!0,strokeAlpha:!0,"stroke-width":!0},c=function(a,b,d,c,g,e,p,f,h,w,v){"object"===typeof a&&(b=a.y,d=a.R1,c=a.R2,g=a.h,e=a.r3dFactor,p=a.is2D,w=a.isHollow,h=a.isFunnel,a=a.x);f=a-d;v=a+d;var n=a-c,y=a+c,u=b+g,E,B;if(p)E={silhuette:["M",f,b,"L",v,b,y,u,n,u,"Z"]},h||(a=Math.round(a),E.lighterHalf=["M",f,b,"L",a,b,a,u,n,u,"Z"],E.darkerHalf=["M",a,b,"L",v,b,y,u,a,u,"Z"]);else if(h){n=a;y=b;b=d||.01;v=c||.01;a=w;f=b*e;e*=v;g=y+g;u=V(v,2)-V(b,2);d=-2*(V(v,2)*y-V(b,
2)*g);c=V(b*e,2)+V(v*y,2)-V(v*f,2)-V(b*g,2);w=bb(V(d,2)-4*u*c);c=(-d+w)/(2*u);u=(-d-w)/(2*u);c<g&&c>y?B=u:u<g&&u>y&&(B=c);c=bb((V(B-y,2)-V(f,2))/V(b,2));d=-c;u={x:ya(V(b,2)*c/(B-y)*100)/100,y:ya(100*(V(f,2)/(B-y)+y))/100};c={x:ya(V(v,2)*c/(B-g)*100)/100,y:ya(100*(V(e,2)/(B-g)+g))/100};w={x:ya(V(b,2)*d/(B-y)*100)/100,y:ya(100*(V(f,2)/(B-y)+y))/100};B={x:ya(V(v,2)*d/(B-g)*100)/100,y:ya(100*(V(e,2)/(B-g)+g))/100};u={topLeft:w,bottomLeft:B,topRight:u,bottomRight:c};for(E in u)if(isNaN(u[E].x)||isNaN(u[E].y))u[E].x=
"topLeft"===E||"bottomLeft"===E?-b:b,u[E].y="bottomRight"===E||"bottomLeft"===E?g:y;g=u.topLeft;d=u.bottomLeft;E=n+g.x;B=n+u.topRight.x;y=n+d.x;n+=u.bottomRight.x;g=g.y;d=d.y;u=["A",b,f,0,0,0,B,g];c=["A",b,f,0,1,1,B,g];w=["A",v,e,0,0,1,y,d];v=["A",v,e,0,1,0,y,d];v={front:["M",E,g].concat(u,["L",n,d],w,["Z"]),back:["M",E,g].concat(c,["L",n,d],v,["Z"]),silhuette:["M",E,g].concat(c,["L",n,d],w,["Z"])};a||(v.top=["M",E,g].concat(u,["L",B,g],["A",b,f,0,1,0,E,g],["Z"]));E=v}else E=d*e,B=c*e,g=ma(5,d),d=
ma(2,2*E),c=ma(2,d),e=c/e,E={top:["M",f,b,"L",a,b+E,v,b,a,b-E,"Z"],front:["M",f,b,"L",a,b+E,v,b,y,u,a,u+B,n,u,"Z"],topLight:["M",f,b+.5,"L",a,b+E+.5,a,b+E-d,f+e,b,"Z"],topLight1:["M",v,b+.5,"L",a,b+E+.5,a,b+E-c,v-e,b,"Z"],silhuette:["M",f,b,"L",a,b-E,v,b,y,u,a,u+B,n,u,"Z"],centerLight:["M",a,b+E,"L",a,u+B,a-5,u+B,a-g,b+E,"Z"],centerLight1:["M",a,b+E,"L",a,u+B,a+5,u+B,a+g,b+E,"Z"]};return E},b=function(b,d){var g,l,f=this,r,p,h=!1,S=!1,w=this._3dAttr,v;Ua(b)&&va(d)&&(g=b,b={},b[g]=d);if(Ua(b))f=a[b]?
this._3dAttr[b]:this._attr(b);else{for(g in b)l=b[g],a[g]?(w[g]=l,"fill"===g?(l&&l.linearGradient&&l.stops&&l.stops[0]&&(l=l.stops[0][1]),Db.test(l)?(p=new kb(l),r=p.get("hex"),p=100*p.get("a")):l&&l.FCcolor?(r=l.FCcolor.color.split(F)[0],p=l.FCcolor.opacity.split(F)[0]):yb.test(l)&&(r=l.replace(Oa,Ra),p=e(w.opacity,100)),w.color=r,w.opacity=p,S=!0):"color"===g||"opacity"===g?(w.fill=Z(A(w.color,e(w.opacity,100))),S=!0):"stroke"===g||"strokeColor"===g||"strokeAlpha"===g?w.is2D&&("stroke"===g?(l&&
l.linearGradient&&l.stops&&l.stops[0]&&(l=l.stops[0][1]),Db.test(l)?(p=new kb(l),r=p.get("hex"),p=100*p.get("a")):l&&l.FCcolor?(r=l.FCcolor.color.split(F)[0],p=l.FCcolor.opacity.split(F)[0]):yb.test(l)&&(r=l.replace(Oa,Ra),p=e(w.opacity,100)),w.strokeColor=r,w.strokeAlpha=p):w.stroke=A(w.strokeColor,e(w.strokeAlpha,100)),w.isFunnel?this.funnel2D.attr("stroke",w.stroke):this.borderElement.attr("stroke",w.stroke)):"stroke-width"===g?w.is2D&&(w.isFunnel?this.funnel2D.attr(g,l):this.borderElement.attr(g,
l)):h=!0):this._attr(g,l);w.is2D?(h&&(r=c(w.x,w.y,w.R1,w.R2,w.h,w.r3dFactor,w.is2D),f.shadowElement.attr({path:r.silhuette}),w.isFunnel?f.funnel2D.attr({path:r.silhuette}):(f.lighterHalf.attr({path:r.lighterHalf}),f.darkerHalf.attr({path:r.darkerHalf}),f.borderElement.attr({path:r.silhuette}))),S&&(w.isFunnel?f.funnel2D.attr("fill",Z(A(w.color,e(w.opacity,100)))):(!1===w.use3DLighting?r=p=w.color:(r=N(w.color,80),p=da(w.color,80)),f.lighterHalf.attr("fill",Z(A(p,e(w.opacity,100)))),f.darkerHalf.attr("fill",
Z(A(r,e(w.opacity,100))))))):(h&&(r=c(w.x,w.y,w.R1,w.R2,w.h,w.r3dFactor,w.is2D),f.shadowElement.attr("path",r.silhuette),w.isFunnel?(f.front.attr("path",r.front),f.back.attr("path",r.back),f.toptop&&r.top&&f.toptop.attr("path",r.top)):(f.front.attr("path",r.front),f.toptop.attr("path",r.top),f.topLight.attr("path",r.topLight),f.topLight1.attr("path",r.topLight1),f.centerLight.attr("path",r.centerLight),f.centerLight1.attr("path",r.centerLight1))),S&&(r=w.color,p=w.opacity,w.isFunnel?(S=da(r,60),h=
N(r,60),f.back.attr("fill",Z({FCcolor:{color:h+F+S+F+r,alpha:p+F+p+F+p,ratio:"0,60,40",angle:0}})),f.front.attr("fill",Z({FCcolor:{color:r+F+S+F+h,alpha:p+F+p+F+p,ratio:"0,40,60",angle:0}})),f.toptop&&f.toptop.attr("fill",Z({FCcolor:{color:S+F+h,alpha:p+F+p,ratio:"0,100",angle:-65}}))):(S=da(r,80),g=da(r,70),h=N(r,80),l="0,"+p,v=r+F+g,w=5/(w.R1*w.r3dFactor)*100,f.centerLight.attr("fill",Z({FCcolor:{color:v,alpha:l,ratio:"0,100",angle:0}})),f.centerLight1.attr("fill",Z({FCcolor:{color:v,alpha:l,ratio:"0,100",
angle:180}})),f.topLight.attr("fill",Z({FCcolor:{color:g+F+g+F+r+F+r,alpha:p+F+p+F+0+F+0,ratio:"0,50,"+w+F+(50-w),angle:-45}})),f.topLight1.attr("fill",Z({FCcolor:{color:g+F+r+F+h,alpha:p+F+p+F+p,ratio:"0,50,50",angle:0}})),f.front.attr("fill",Z({FCcolor:{color:r+F+r+F+h+F+h,alpha:p+F+p+F+p+F+p,ratio:"0,50,0,50",angle:0}})),f.toptop.attr("fill",Z({FCcolor:{color:S+F+r+F+h+F+h,alpha:p+F+p+F+p+F+p,ratio:"0,25,30,45",angle:-45}})))))}return f},d=function(){var a=this.shadowElement;d&&a.shadow.apply(a,
arguments)},g=function(a,b,d){var c=a.chart.get(xa,fa),g=c.duration,e=c.dummyObj,f=c.animObj,h=c.animType;return function(c,l,v){if(c=d[c])return c.animateWith(e,f,{path:l},g,h,a.postPlotCallback);v=v||sa;a.postPlotCallback();return b.path(l,d).attr(v)}};return function(a,W,k,l,f,r,p,h,n,w,v,m){var y=this.chart.graphics.datasetGroup,u;"object"===typeof a&&(W=a.y,k=a.R1,l=a.R2,f=a.h,r=a.r3dFactor,p=a.gStr,h=a.is2D,m=a.use3DLighting,n=a.renderer,v=a.isHollow,w=a.isFunnel,u=a.graphics,a=a.x);r=e(r,.15);
a={x:a,y:W,R1:k,R2:l,h:f,r3dFactor:r,is2D:h,use3DLighting:m,isHollow:v,isFunnel:w,renderer:n};W=c(a);k="silhuette lighterHalf darkerHalf centerLight centerLight1 front toptop topLight topLight1 shadowElement funnel2D back".split(" ");if(u){if(l=u._3dAttr,l.isFunnel!==a.isFunnel||l.is2D!==a.is2D||l.isHollow!==a.isHollow)for(f=0,v=k.length;f<v;f++)if(r=k[f],l=u[r])delete u[r],l.remove()}else u=void 0;p=u||n.group(p,y);p.toFront();p.Shapeargs=W;n=g(this,n,p,"easeIn");p.shadowElement=n("shadowElement",
W.silhuette,{fill:Ia,stroke:"none"});p._attr=p._attr||p.attr;p.attr=b;p.shadow=d;p._3dAttr=a;w?h?p.funnel2D=n("funnel2D",W.silhuette):(p.back=n("back",W.back,{"stroke-width":0,stroke:"none"}),p.front=n("front",W.front,{"stroke-width":0,stroke:"none"}),W.top&&(p.toptop=n("toptop",W.top,{"stroke-width":0,stroke:"none"}))):h?(p.lighterHalf=n("lighterHalf",W.lighterHalf,{"stroke-width":0}),p.darkerHalf=n("darkerHalf",W.darkerHalf,{"stroke-width":0}),p.borderElement=n("borderElement",W.silhuette,{fill:Ia,
stroke:"none"})):(p.front=n("front",W.front,{"stroke-width":0}),p.centerLight=n("centerLight",W.centerLight,{"stroke-width":0}),p.centerLight1=n("centerLight1",W.centerLight1,{"stroke-width":0}),p.toptop=n("toptop",W.top,{"stroke-width":0}),p.topLight=n("topLight",W.topLight,{"stroke-width":0}),p.topLight1=n("topLight1",W.topLight1,{"stroke-width":0}));return p}}(),utils:function(){function a(){var b=[],c=0;this.set=function(a,e){c++;b[a]=e};this.get=function(a){return b[a]};this.getAll=function(){return b};
this.mergeWith=function(c){var g,e,l=b.slice(0);if(!(c instanceof Array))if(c instanceof a)c=c.getAll();else return;for(g in c)e=c[g],l[g]||(l[g]=e);return l};this.getEffectiveLength=function(){return c}}function c(a){this.distributionLength=a;this.distributedMatrix=[];this.altDistributedMatrix=[];this.nonDistributedMatrix={};this.forcePushObj={};this.flags={exhaustion:!1}}var b;a.prototype.constructor=a;c.prototype.constructor=c;c.prototype.push=function(a,b){this.nonDistributedMatrix[b]=this.nonDistributedMatrix[b]||
[];this.nonDistributedMatrix[b].push(a)};c.prototype.forcePush=function(a,b){this.forcePushObj[b]=a};c.prototype.distribute=function(c){var g=b,e=!0,f=new a,k=new a,l=new a,x=new a,r=this.flags,p,h,S,w,v,m=0,y=g.components.data;if(c){if(0<y.length-this.distributionLength)for(h in this.nonDistributedMatrix)for(g=this.nonDistributedMatrix[h],w=1;w<g.length;w++)v=g[w],v.dontPlot=!0,v.displayValue=n}else if(0<y.length-2*this.distributionLength)for(h in this.nonDistributedMatrix)for(g=this.nonDistributedMatrix[h],
w=1;w<g.length-1;w++)v=g[w],v.dontPlot=!0,v.displayValue=n;if(y.length>this.distributionLength&&!c){r.exhaustion=!0;for(h in this.nonDistributedMatrix)for(g=this.nonDistributedMatrix[h],w=0,c=g.length;w<c;w++)v=g[w],v.dontPlot?e?p=l:p=x:(e?p=f:p=k,p.getEffectiveLength()>parseInt(h,10)?v.distributionFactor=p.getEffectiveLength()-1-h:v.distributionFactor=0),p.set(m++,v),e=!e;this.distributedMatrix=f.mergeWith(l);this.altDistributedMatrix=k.mergeWith(x)}else{for(S in this.nonDistributedMatrix)for(g=
this.nonDistributedMatrix[S],w=0,c=g.length;w<c;w++)v=g[w],v.dontPlot?p=l:(p=f,p.getEffectiveLength()>parseInt(S,10)?v.distributionFactor=p.getEffectiveLength()-1-S:v.distributionFactor=0),p.set(m++,v);this.distributedMatrix=f.mergeWith(l)}};c.prototype.getDistributedResult=function(){var a=b,c=a.chart,e=a.conf.alignmentType,a=[],f=c.isLegendRight;c.components.legend.config.width||(f=0);c.isLegendRight=f;this.distribute(f);f?(c=e["default"],a.push(this.distributedMatrix)):(c=this.flags.exhaustion?
e.alternate:e["default"],this.flags.exhaustion?[].push.call(a,this.distributedMatrix,this.altDistributedMatrix):a.push(this.distributedMatrix));return{forceMatrix:this.forcePushObj,suggestion:c,matrix:a}};return{DistributionMatrix:c,setContext:function(a){b=a},invokeHookFns:function(){var a,c=[],e=b;switch(arguments.length){case 3:e=arguments[2];case 2:c=arguments[1];case 1:a=arguments[0];break;default:return}a&&"function"===typeof a&&a.apply(e,c)},copyProperties:function(a,c,e){function f(a){return"string"===
typeof a&&0===a.indexOf("$")?(a=a.substring(1),c[a]):"function"===typeof a?a.call(b,c):a}var k,l,x,r,p,h,n,w=function(){};k=0;for(l=e.length;k<l;k++)x=e[k],r=x[0],p=x[1],h=x[2],n=f(x[3]),x=x[4]||w,c[p]=h(a[r],n),x(c)},sortObjArrByKey:function(a,b){return a.sort(function(a,c){return Math.abs(c[b])-Math.abs(a[b])})},getSumValueOfObjArrByKey:function(a,b){var c,e,k=0;c=0;for(e=a.length;c<e;c++)k+=parseFloat(a[c][b],10);return k}}}(),slice:function(a,c,b,d){c=this.plotItem;var g=this.datasetStore,e=g.chart,
f=e.get(xa,fa);b=f.duration;var k=f.dummyObj,l=f.animObj,f=f.animType,h=g.conf,r=h.slicingDistance/2,p=0,n=0,S=g.graphics.plotItems,w=S.length,v,m,y,u,E;if(!h.sliceLock)for(h.sliceLock=1,c&&wa.call(c.trackerObj,e,a,"dataplotclick"),d=c.sliced=va(d)?d:!c.sliced,u=-r,E=function(){return function(){h.sliceLock=0;ba.raiseEvent("SlicingEnd",{slicedState:d,data:g.getPlotData(y)},e.chartInstance)}},p=0;p<w;p+=1)a=S[p],a!==c?m=a.sliced=!1:(m=!0,y=p),a.graphic&&(v=a.dy,v=-v,d&&(a.x<c.x?(v+=u,n+=1):a.x==c.x?
n?p==w-1&&(v+=.5*r):v+=.5*-r:v+=r),a.graphic.attr({transform:"t0,"+a.dy}),a.dy+=v,v={transform:"...t0,"+v},m&&ba.raiseEvent("SlicingStart",{slicedState:!d,data:g.getPlotData(y)},e.chartInstance),a.graphic.animateWith(k,l,v,b,f,m&&E(d,y)),a.dataLabel&&a.dataLabel.animateWith(k,l,v,b,f),a.connector&&a.connector.animateWith(k,l,v,b,f),a.trackerObj&&a.trackerObj.animateWith(k,l,v,b,f),1==p&&!S[0].graphic&&S[0].dataLabel&&S[0].dataLabel.animateWith(k,l,v,b,f))},legendClick:function(a){this.slice.call(a)},
getEventArgs:function(a){a=this.components.data[a.configuration.index]||{};return{alpha:a.alpha,value:a.y,color:a.color,borderColor:a.borderColor,borderWidth:a.borderWidth,link:a.link,displayValue:a.displayValue,datasetIndex:a.datasetIndex,toolText:a.toolText,label:a.categoryLabel}}}]);FusionCharts.register("component",["dataset","Funnel",{type:"funnel",LABEL_PLACEMENT_ITERATOR_INDEX_START:1,configure:function(){var a=this.chart,c=a.components.numberFormatter,b=this.utils.sortObjArrByKey,d=a.jsonData?
a.jsonData.chart:{},a=this.JSONData.data,g,e,f;if(this._checkValidData(a)){g=0;for(f=a.length;g<f;g++)(e=a[g])&&void 0!==e.value&&(e.value=c.getCleanValue(e.value,!0));c=+(void 0===d.streamlineddata?1:d.streamlineddata);this.JSONData.data=c?b(a,"value"):a;c&&(a[0].pseudoPoint=!0);this.addLegend()}},configureSpecifics:function(){var a=this.chart,c=this.conf,b=this.utils.copyProperties;b(a.jsonData?a.jsonData.chart:{},c,[["streamlineddata","streamLinedData",e,1],["funnelyscale","yScale",e,void 0,function(a){var b=
a.yScale;a.yScale=0<=b&&40>=b?b/200:.2}],["usesameslantangle","useSameSlantAngle",e,function(a){return a.streamLinedData?0:1}],["ishollow","isHollow",e,void 0,function(a){void 0===a.isHollow&&(a.isHollow=a.streamLinedData?1:0)}]]);a.config.PLOT_COLOR_INDEX_START=c.streamLinedData?-1:0},preDrawingHook:function(){var a=this.components.data,c=this.conf;c.streamLinedData||a.splice(0,0,{displayValue:n,y:c.sumValue})},prePointProcessingHookFn:function(a){var c=this.chart,b=c.config,d=this.conf,g=b.canvasWidth,
e=c.linkedItems.smartLabel,f=!d.streamLinedData,k,l;(k=a[0])&&(k.pseudoPoint=!0);k&&k.displayValue&&(e.useEllipsesOnOverflow(c.config.useEllipsesWhenOverflow),e.setStyle(k.style),hb(k.style),c=parseFloat(k.style.lineHeight.match(/^\d+/)[0]||d.lineHeight,10),l=e.getOriSize(k.displayValue).height,g=e.getSmartText(k.displayValue,g,l),k.displayValue=g.text,g.tooltext&&(k.originalText=g.tooltext),k.labelWidth=e.getOriSize(g.text).width,b.marginTop+=c+4);d.totalValue=f?a[0].y-a[1].y:0;d.offsetVal=function(b){return f?
-(a[b+1]&&a[b+1].y||0):k.y}},getPointInContext:function(){function a(a){this.displayValue=a.displayValue;this.displayValueArgs=a.displayValueArgs;this.style=a.style;this.appliedStyle=a.appliedStyle;this.categoryLabel=a.categoryLabel;this.toolText=a.toolText;this.legendCosmetics=a.legendCosmetics;this.showInLegend=a.showInLegend;this.y=a.y;this.shadow=a.shadow;this.smartTextObj=a.smartTextObj;this.color=a.color;this.legendItemId=a.legendItemId;this.name=a.name;this.alpha=a.alpha;this.rawColor=a.rawColor;
this.rawAlpha=a.rawAlpha;this.legendColor=a.legendColor;this.borderColor=a.borderColor;this.borderWidth=a.borderWidth;this.link=a.link;this.isSliced=a.isSliced;this.doNotSlice=a.doNotSlice;this.hoverEffects=a.hoverEffects;this.rolloverProperties=a.rolloverProperties}var c=this;a.upperRadiusFactor=1;a.prototype.getModifiedCurrentValue=function(){};a.prototype.getRatioK=function(a,d,g,e){a=c.conf;var f=a.useSameSlantAngle;return a.streamLinedData?this.y?f?this.y/e:Math.sqrt(this.y/e):1:.2+d*g};a.prototype.getLowestRadiusFactor=
function(a){var d=c.conf,g=d.useSameSlantAngle;return d.streamLinedData?this.y?g?this.y/a:Math.sqrt(this.y/a):1:.2};return a},datasetCalculations:function(a){var c=this.conf,b=this.chart.components.numberFormatter,d,g,e,f={},k=c.streamLinedData,l=c.percentOfPrevious;f.highestValue=Number.NEGATIVE_INFINITY;f.refreshedData=[];c=f.sumValue=f.countPoint=0;for(d=a.length;c<d;c++)g=a[c],g.vline||(g.cleanValue=e=Math.abs(b.getCleanValue(g.value,!0)),null!==e&&(f.hasValidPoint=!0,f.highestValue=f.highestValue||
e,f.refreshedData.push(g),f.sumValue+=e,f.countPoint+=1,f.highestValue=Math.max(f.highestValue,e)));k&&(f.sumValue=f.highestValue,l&&(f.prevPerValReq=!0));return f},draw:function(){this._configure();var a=this,c=a.chart,b=c.graphics,d=c.getJobList(),g=c.config,e=a.conf,f=a.utils,k=a.trackerArgs=[],l=f.getSumValueOfObjArrByKey,x=f.DistributionMatrix,r=a.calculatePositionCoordinate,p=g.marginTop,n=g.marginBottom,f=a.components.data,S,w,v,m=b.datalabelsGroup,y=e.streamLinedData,u,E=2;S=f.length;var B=
e.maxValue=f[0].y;v=e.minValue=f[S-1].y;var q=u=0,C=e.lineHeight,I=Math.floor,b=Math.min,G,A=a.graphics.plotItems,t=[],z;a.labelDrawingConfig=a.labelDrawingConfig||[];a.labelDrawingConfig.length=0;if(e.sumValue&&(a.preDrawingSpaceManagement(),a.hide(a.graphics.plotItems),a.rolloverResponseSetter=function(a,b){return function(d){a.graphic.attr(b);wa.call(this,c,d,"DataPlotRollOver")}},a.rolloutResponseSetter=function(a,b){return function(d){a.graphic.attr(b);wa.call(this,c,d,"DataPlotRollOut")}},a.legendClickHandler=
function(b){return function(){a.legendClick(b,!0,!1)}},a.animateFunction=function(a){return function(){c._animCallBack();a.attr({opacity:1})}},a.postPlotCallback=function(){},g.canvasTop+=g.marginTop-p,g.effCanvasHeight=u=g.canvasHeight-(g.marginTop+g.marginBottom)+(p+n),g.effCanvasWidth=p=g.width-(g.marginLeft+g.marginRight),w=e.drawingRadius=p/E,e.x=w+g.canvasLeft,E=e.slicingDistance,n=E/2,!(y&&2>S))){y?(v=u/(B-v),B=(l=l(f,"value"))?u/l:u):B=v=B?u/B:u;e.unitHeight=v;e.lastRadius=w;e.globalMinXShift=
0;l=e.alignmentType={};l["default"]=1;l.alternate=2;v=new x(I(u/C));for(x=0;x<S;x++)w=f[x],!y&&0===x||!y&&x===S-1?v.forcePush(w,x):(u=w.y*B,q+=w.y*B,u=q-u+u/2,u=I(u/C),v.push(w,u));y=v.getDistributedResult();f.length=0;if(void 0===y.matrix[1])[].push.apply(f,y.matrix[0]);else for(q=y.matrix[0],C=y.matrix[1],S=Math.max(q.length,C.length),x=0;x<S;x++)u=q[x],I=C[x],f.push(u?u:I);q=Object.keys(y.forceMatrix);if(0<q.length)for(G in y.forceMatrix)[].splice.apply(f,[parseInt(G,10),0].concat(y.forceMatrix[G]));
switch(y.suggestion){case l["default"]:r.call(a,f,!1);break;case l.alternate:e.labelAlignment=l.alternate,w=p/3,g.canvasLeft=g.canvasWidth/2-w,e.x=g.canvasLeft+w,r.call(a,f,!0)}if(g=e.noOfGap)e.perGapDistance=b(1.5*n,E/g),e.distanceAvailed=n;m.trackTooltip(!0);x=f.length;A||(a.graphics.plotItems=[]);e.alreadyPlotted&&(a.postPlotCallback=function(){z||(z=!0,a.animateFunction(m)())});for(;x--;)t.push(a.drawIndividualPlot(f[x],x));!e.alreadyPlotted&&a.animateElements(t,"graphic",[],{pre:{opacity:0},
post:{opacity:100}},a.animateFunction(m));e.connectorEndSwitchHistoryY={};for(x=f.length;x--;)k.push(f[x]);d.labelDrawID.push(ua.addJob(a.drawAllLabels,a,[],h.priorityList.label));d.trackerDrawID.push(ua.addJob(a.drawAllTrackers,a,[],h.priorityList.tracker));e.alreadyPlotted=!0}},drawIndividualPlot:function(a,c){var b=this.conf,d=this.graphics.plotItems,g=a.y,e=a.displayValue,f=b.isSliced,k=a.labelAline,l=a.appliedStyle,h=a.style,r=this.components.data,p=this.chart,m=p.graphics.trackerGroup,S=p.components.paper,
w=!!a.link,v=b.distanceAvailed,q=p.components.legend,p=p.get(xa,fa).duration,y=this.labelDrawingConfig,f=f?1:a.isSliced,h={text:e,ishot:!0,direction:n,cursor:w?"pointer":n,x:0,y:0,fill:l&&l.color||h&&h.color||this._chartLevelAttr.color,"text-anchor":Ta[k]};if(null!==g&&void 0!==g&&a.shapeArgs)return(k=d[c])?(a.plot=k,a.shapeArgs.graphics=k.graphic,a.shapeArgs.animationDuration=p,k.graphic=this.pyramidFunnelShape(a.shapeArgs).attr({fill:a.color,"stroke-width":a.borderWidth,stroke:a.borderColor}),k.graphic.show()):
(a.shapeArgs.graphics=k,a.shapeArgs.animationDuration=p,a.plot=k=d[c]={graphic:this.pyramidFunnelShape(a.shapeArgs).attr({fill:a.color,"stroke-width":a.borderWidth,stroke:a.borderColor}),trackerObj:S.path(m)}),y[c]=d={args:h,css:l,point:a},b.showTooltip?k.trackerObj.tooltip(a.toolText):k.trackerObj.tooltip(!1),k.value=g,k.displayValue=e,k.sliced=!!f,k.cursor=w?"pointer":n,k.x=a.x,k.index=c,q.configureItems(r[c].legendItemId,{legendClickFN:this.legendClickHandler({datasetStore:this,plotItem:k})}),
g=e={},a.hoverEffects&&(g={color:a.rawColor,opacity:a.rawAlpha,"stroke-width":a.borderWidth,stroke:a.borderColor},e=a.rolloverProperties,e={color:e.color,opacity:e.alpha,"stroke-width":e.borderWidth,stroke:e.borderColor}),r={datasetStore:this,plotItem:k},k.trackerObj.unclick(this.slice),!a.doNotSlice&&k.trackerObj.click(this.slice,r),k.trackerObj.mouseup(this.plotMouseUp,k),k.trackerObj.hover(this.rolloverResponseSetter(k,e),this.rolloutResponseSetter(k,g)),d.context=r,d.actions={click:this.slice,
hover:[this.rolloverResponseSetter(k,e),this.rolloutResponseSetter(k,g)]},k.dy=0,b.noOfGap&&(v&&(k._startTranslateY=g="t0,"+v,k.dy=k.distanceAvailed=v,k.graphic.attr({transform:g}),d.transform=g),b.slicingGapPosition[a.x]&&(b.distanceAvailed-=b.perGapDistance)),k&&(k.point=a),k;y[c]={args:h,css:l,point:a}},getTooltipMacroStub:function(a){var c=this.conf,b=this.chart.components.numberFormatter,d=this.__base__,g;c.streamLinedData&&(g=c.percentOfPrevious?a.pValue:b.percentValue(a.dataValue/a.prevValue*
100));d=d.getTooltipMacroStub(a);d.percentValue=c.percentOfPrevious?b.percentValue(a.dataValue/a.highestValue*100):a.pValue;d.percentOfPrevValue=g;return d}},"FunnelPyramidBase"]);FusionCharts.register("component",["dataset","Pyramid",{type:"pyramid",LABEL_PLACEMENT_ITERATOR_INDEX_START:0,configure:function(){this._checkValidData(this.JSONData.data)&&this.addLegend()},configureSpecifics:function(){var a=this.chart,c=this.utils.copyProperties;c(a.jsonData?a.jsonData.chart:{},this.conf,[["pyramidyscale",
"yScale",e,void 0,function(a){var c=a.yScale;a.yScale=0<=c&&40>=c?c/200:.2}],["use3dlighting","use3DLighting",e,1]]);a.config.PLOT_COLOR_INDEX_START=0},preDrawingHook:function(){},draw:function(){this._configure();var a=this,c=a.chart,b=c.getJobList(),d=c.config,g=a.conf,e=a.utils.DistributionMatrix,f=a.trackerArgs=[],k=a.calculatePositionCoordinate,l=d.marginTop,x=d.marginBottom,r=a.components.data,p,n,S,w=c.graphics.datalabelsGroup,v,m=2,y=r.length,u,E=u=0,B=g.lineHeight,q=Math.floor,C=Math.min,
I,G=a.graphics.plotItems,A=[],t;if(g.sumValue){a.labelDrawingConfig=a.labelDrawingConfig||[];a.labelDrawingConfig.length=0;a.preDrawingSpaceManagement();a.hide(a.graphics.plotItems);a.rolloverResponseSetter=function(a,b){return function(d){a.graphic.attr(b);wa.call(this,c,d,"DataPlotRollOver")}};a.rolloutResponseSetter=function(a,b){return function(d){a.graphic.attr(b);wa.call(this,c,d,"DataPlotRollOut")}};a.legendClickHandler=function(b){return function(){a.legendClick(b,!0,!1)}};a.animateFunction=
function(a){return function(){c._animCallBack();a.attr({opacity:1})}};a.postPlotCallback=function(){};d.canvasTop+=d.marginTop-l;d.effCanvasHeight=p=d.canvasHeight-(d.marginTop+d.marginBottom)+(l+x);d.effCanvasWidth=l=d.width-(d.marginLeft+d.marginRight);v=g.drawingRadius=l/m;g.x=v+d.canvasLeft;m=g.slicingDistance;x=m/2;v=Math.atan(l/2/p);g.unitHeight=S=p/g.sumValue;g.lastRadius=0;g.globalMinXShift=Math.floor(B/Math.cos(v));v=g.alignmentType={};v["default"]=1;v.alternate=2;I=new e(q(p/B));e=0;for(p=
y;e<p;e++)n=r[e],u=n.y*S,E+=n.y*S,u=E-u+u/2,u=q(u/B),I.push(n,u);E=I.getDistributedResult();r.length=0;if(void 0===E.matrix[1])[].push.apply(r,E.matrix[0]);else for(B=E.matrix[0],q=E.matrix[1],p=Math.max(B.length,q.length),e=0;e<p;e++)u=B[e],S=q[e],r.push(u?u:S);switch(E.suggestion){case v["default"]:k.call(a,r,!1);break;case v.alternate:g.labelAlignment=v.alternate,g.drawingRadius=v=l/3,d.canvasLeft=d.canvasWidth/2-v,g.x=d.canvasLeft+v,k.call(a,r,!0)}if(d=g.noOfGap)g.perGapDistance=C(1.5*x,m/d),
g.distanceAvailed=x;w.trackTooltip(!0);e=r.length;G||(G=a.graphics.plotItems=[]);g.alreadyPlotted&&(a.postPlotCallback=function(){t||(t=!0,a.animateFunction(w)())});for(;e--;)A.push(a.drawIndividualPlot(r[e],e));!g.alreadyPlotted&&a.animateElements(A,"graphic",[],{pre:{opacity:Mb},post:{opacity:100}},a.animateFunction(w));G.splice(y,G.length-y);g.connectorEndSwitchHistoryY={};for(e=r.length;e--;)f.push(r[e]);b.labelDrawID.push(ua.addJob(a.drawAllLabels,a,[],h.priorityList.label));b.trackerDrawID.push(ua.addJob(a.drawAllTrackers,
a,[],h.priorityList.tracker));g.alreadyPlotted=!0}},calculatePositionCoordinate:function(a,c){var b=this.conf,d=b.is2d,e=b.x,f=this.graphics.plotItems||[],h=this.chart,k=h.config,l=k.canvasTop,x=b.unitHeight,r=b.labelDistance,p=b.showLabelsAtCenter,n=.3*k.style.fontSize,S=b.yScale,w=b.blankSpace,v=b.lastRadius,m=h.linkedItems.smartLabel,y,u,E,B=a.length-1,q=!1,C=0,I,G,A=b.lineHeight,t=0;y={flag:!1,point:void 0,sLabel:void 0,setAll:function(a,b,c){this.flag=a;this.point=b;this.sLabel=c}};var z={point:void 0,
sLabel:void 0,set:function(a,b){return function(c,d){var e,g;c.dontPlot||(this.point&&this.sLabel?(e=a(this.point,this.sLabel),g=a(c,d),b(e,g)&&(this.point=c,this.sLabel=d)):(this.point=c,this.sLabel=d))}}},F={},D={},L={},M={},O=h.config.width-2,K=b.slicingGapPosition={};ba.extend(F,y);ba.extend(D,y);F.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX-(e.oriTextWidth-e.width),d=b.labelX-(c.oriTextWidth-c.width),a>d&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=
c)};D.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX+e.oriTextWidth,d=b.labelX+c.oriTextWidth,a<d&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=c)};ba.extend(L,z);ba.extend(M,z);L.set=function(){return z.set.apply(L,[function(a){return a.labelX},function(a,b){return a>b?!0:!1}])}();M.set=function(){return z.set.apply(M,[function(a,b){return a.labelX+b.oriTextWidth},function(a,b){return a<b?!0:!1}])}();b.noOfGap=0;m.useEllipsesOnOverflow(k.useEllipsesWhenOverflow);
k=0;for(y=a.length;k<y;k++)if(u=a[k])u.x=k,f[k]&&(u.isSliced=f[k].sliced||!!u.isSliced||!!b.isSliced),c&&(q=!q),u.isSliced&&((E=u.x)&&!K[E]&&(K[E]=!0,b.noOfGap+=1),E<B&&(K[E+1]=!0,b.noOfGap+=1)),m.setStyle(u.style),u.oriText=u.displayValue,I=I=m.getSmartText(u.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),t+=u.y,G=b.drawingRadius*t/b.sumValue,E=x*u.y,u.shapeArgs={x:e,y:l,R1:v,R2:G,h:E,r3dFactor:S,gStr:"point",is2D:d,use3DLighting:!!b.use3DLighting,renderer:h.components.paper},p?
(u.labelAline=H,u.labelX=e,u.labelY=(d?l:l+S*v)+E/2+n):(u.labelAline=Ya,u.alignmentSwitch=q,u.distributionFactor=u.distributionFactor||0,q?(u.labelX=e-(r+(G+v)/2+w+I.width),u.labelX-=u.distributionFactor*b.globalMinXShift,L.set(u,I)):(u.labelX=e+r+(G+v)/2+w,u.labelX+=u.distributionFactor*b.globalMinXShift,M.set(u,I)),C=u.distributionFactor*A,u.labelY=l+n+E/2+C),c&&(q&&0>u.labelX?(v=u.labelX+I.width,v=m.getSmartText(u.displayValue,v,Number.POSITIVE_INFINITY,!0),u.labelX=2,u.isLabelTruncated=!0,u.displayValue=
v.text,u.virtualWidth=v.maxWidth,F.setAll(!0,u,v)):!q&&u.labelX+I.width>O&&(v=m.getSmartText(u.displayValue,O-u.labelX,Number.POSITIVE_INFINITY,!0),u.isLabelTruncated=!0,u.displayValue=v.text,u.virtualWidth=v.maxWidth,D.setAll(!0,u,v)),u.pWidth=u.virtualWidth||I.width,C=u.distributionFactor*A,u.labelY=l+n+E/2+C),l+=E,u.plotX=e,u.plotY=l-E/2,v=G,u.virtualWidth=u.virtualWidth||I.width;this.findBestPosition.call(this,a,{lTrimmedInfo:F,rTrimmedInfo:D,lLargestLabel:L,rLargestLabel:M})},getPointInContext:function(){function a(a){this.displayValue=
a.displayValue;this.displayValueArgs=a.displayValueArgs;this.style=a.style;this.appliedStyle=a.appliedStyle;this.categoryLabel=a.categoryLabel;this.toolText=a.toolText;this.legendCosmetics=a.legendCosmetics;this.showInLegend=a.showInLegend;this.y=a.y;this.legendColor=a.legendColor;this.shadow=a.shadow;this.smartTextObj=a.smartTextObj;this.color=a.color;this.alpha=a.alpha;this.name=a.name;this.legendItemId=a.legendItemId;this.rawColor=a.rawColor;this.rawAlpha=a.rawAlpha;this.borderColor=a.borderColor;
this.borderWidth=a.borderWidth;this.link=a.link;this.isSliced=a.isSliced;this.doNotSlice=a.doNotSlice;this.hoverEffects=a.hoverEffects;this.rolloverProperties=a.rolloverProperties}var c=this;a.upperRadiusFactor=0;a.prototype.getModifiedCurrentValue=function(a){return a+this.y/2};a.prototype.getRatioK=function(a){var d=c.conf;return a?a/d.sumValue:1};a.prototype.getLowestRadiusFactor=function(){return 1};return a},drawIndividualPlot:function(a,c){var b=this.conf,d=this.graphics.plotItems,e=a.y,f=a.displayValue,
h=b.isSliced,k=this.chart,l=this.components.data,x=k.graphics.trackerGroup,r,p=k.components.paper,m=!!a.link,S=b.distanceAvailed;r=a.labelAline;var w=a.appliedStyle,v=a.style,q=k.components.legend,k=k.get(xa,fa).duration,y=this.labelDrawingConfig,v=w&&w.color||v&&v.color||this._chartLevelAttr.color,h=h?1:a.isSliced,v={text:f,ishot:!0,direction:n,cursor:m?"pointer":n,x:0,y:0,fill:v,"text-anchor":Ta[r]};if(null!==e&&void 0!==e&&a.shapeArgs)return(r=d[c])?(a.plot=r,a.shapeArgs.graphics=r.graphic,a.shapeArgs.animationDuration=
k,r.graphic=this.pyramidFunnelShape(a.shapeArgs).attr({fill:a.color,"stroke-width":a.borderWidth,stroke:a.borderColor}),r.graphic.show()):(a.shapeArgs.graphics=r,a.shapeArgs.animationDuration=k,a.plot=r=d[c]={graphic:this.pyramidFunnelShape(a.shapeArgs).attr({fill:a.color,"stroke-width":a.borderWidth,stroke:a.borderColor}),trackerObj:p.path(x)}),y[c]=d={args:v,css:w,point:a},b.showTooltip?r.trackerObj.tooltip(a.toolText):r.trackerObj.tooltip(!1),r.value=e,r.displayValue=f,r.sliced=!!h,r.cursor=m?
"pointer":n,r.x=a.x,r.index=c,q.configureItems(l[c].legendItemId,{legendClickFN:this.legendClickHandler({datasetStore:this,plotItem:r})}),e=f={},a.hoverEffects&&(e={color:a.rawColor,opacity:a.rawAlpha,"stroke-width":a.borderWidth,stroke:a.borderColor},f=a.rolloverProperties,f={color:f.color,opacity:f.alpha,"stroke-width":f.borderWidth,stroke:f.borderColor}),l={datasetStore:this,plotItem:r},r.trackerObj.unclick(this.slice),!a.doNotSlice&&r.trackerObj.click(this.slice,l),r.trackerObj.mouseup(this.plotMouseUp,
r),r.trackerObj.hover(this.rolloverResponseSetter(r,f),this.rolloutResponseSetter(r,e)),d.context=l,d.actions={click:this.slice,hover:[this.rolloverResponseSetter(r,f),this.rolloutResponseSetter(r,e)]},r.dy=0,b.noOfGap&&(S&&(r._startTranslateY=e="t0,"+S,r.dy=r.distanceAvailed=S,r.graphic.attr({transform:e}),d.transform=e),b.slicingGapPosition[a.x]&&(b.distanceAvailed-=b.perGapDistance)),r.point=a,r;y[c]={args:v,css:w,point:a}},getTooltipMacroStub:function(a){var c=this.conf,b=this.chart.components.numberFormatter,
d=this.__base__,e;e=c.percentOfPrevious?a.pValue:b.percentValue(a.dataValue/a.prevValue*100);d=d.getTooltipMacroStub(a);d.percentValue=c.percentOfPrevious?b.percentValue(a.dataValue/a.highestValue*100):a.pValue;d.percentOfPrevValue=e;return d}},"FunnelPyramidBase"]);m("vled",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,
showTooltip:0,connectTickMarks:0,creditLabel:!1,isHorizontal:!1,isAxisOpposite:!0,hasLegend:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,hasCanvas:!1,isRealTime:!0,defaultDatasetType:"led",colorRange:!0,applicableDSList:{led:!0},_getData:function(){var a=this.components.dataset;if(a&&(a=a[0].components.data)&&a[0])return a=a[0].config,e(a.setValue,a.itemValue)},_createDatasets:function(){var a=this.components,c=this.jsonData,b=c.value,d=c.target,e=this.defaultDatasetType,f,h,c=[];a.dataset||
(a.dataset=[]);c.push({value:b,target:d});b={data:c};this.config.categories=c;c=a.dataset||(a.dataset=[]);e&&(h=FusionCharts.get("component",["dataset",e]))&&(d="datasetGroup_"+e,f=FusionCharts.register("component",["datasetGroup",e]),e=a[d],f&&!e&&(e=a[d]=new f,e.chart=this,e.init()),c[0]?(a=c[0].JSONData,a=a.data.length,e=b.data.length,a>e&&c[0].removeData(e-1,a-e,!1),c[0].JSONData=b,c[0].configure()):(a=new h,c.push(a),a.chart=this,e&&e.addDataSet(a,0,0),a.init(b)))},_createAxes:function(){var a=
this.components,c=FusionCharts.register("component",["axis","gauge"]);a.scale=a=new c;a.chart=this;a.init()}},m.axisgaugebase);m("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:!1,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,standaloneInit:!0,hasCanvas:!0,singleseries:!0,isHorizontal:!1,isAxisOpposite:!1,isAxisReverse:!1,defaultDatasetType:"bullet",applicableDSList:{bullet:!0},defaultPaletteOptions:{paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7",
"F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A",
"A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]},_createAxes:function(){var a=this.components,c=FusionCharts.register("component",["axis","gauge"]);a.scale=a=new c;a.chart=this;a.init()},_feedAxesRawData:function(){var a=this.components,c=a.colorManager,b=this.jsonData.chart,
d=h.chartPaletteStr.chart2D,g=e(b.ticksbelowgraph,1),g=e(b.ticksonright,b.axisontop,void 0!==b.axisonleft?!e(b.axisonleft):void 0,!g,this.isAxisOpposite),c={outCanfontFamily:f(b.outcnvbasefont,b.basefont,"Verdana,sans"),outCanfontSize:ib(b.outcnvbasefontsize,b.basefontsize,10),outCancolor:f(b.outcnvbasefontcolor,b.basefontcolor,c.getColor(d.baseFontColor)).replace(/^#?([a-f0-9]+)/ig,"#$1"),useEllipsesWhenOverflow:b.useellipseswhenoverflow,divLineColor:f(b.vdivlinecolor,c.getColor(d.divLineColor)),
divLineAlpha:f(b.vdivlinealpha,c.getColor("divLineAlpha")),divLineThickness:e(b.vdivlinethickness,1),divLineIsDashed:!!e(b.vdivlinedashed,b.vdivlineisdashed,0),divLineDashLen:e(b.vdivlinedashlen,4),divLineDashGap:e(b.vdivlinedashgap,2),showAlternateGridColor:e(b.showalternatevgridcolor,0),alternateGridColor:f(b.alternatevgridcolor,c.getColor("altVGridColor")),alternateGridAlpha:f(b.alternatevgridalpha,c.getColor("altVGridAlpha")),numDivLines:b.numvdivlines,labelFont:b.labelfont,labelFontSize:b.labelfontsize,
labelFontColor:b.labelfontcolor,labelFontAlpha:b.labelalpha,labelFontBold:b.labelfontbold,labelFontItalic:b.labelfontitalic,axisName:b.xaxisname,axisMinValue:b.lowerlimit,axisMaxValue:b.upperlimit,setAdaptiveMin:b.setadaptivexmin,adjustDiv:b.adjustvdiv,labelDisplay:b.labeldisplay,showLabels:b.showlabels,rotateLabels:b.rotatelabels,slantLabel:e(b.slantlabels,b.slantlabel),labelStep:e(b.labelstep,b.xaxisvaluesstep),showAxisValues:e(b.showxaxisvalues,b.showxaxisvalue),showDivLineValues:e(b.showvdivlinevalues,
b.showvdivlinevalues),showZeroPlane:b.showvzeroplane,zeroPlaneColor:b.vzeroplanecolor,zeroPlaneThickness:b.vzeroplanethickness,zeroPlaneAlpha:b.vzeroplanealpha,showZeroPlaneValue:b.showvzeroplanevalue,trendlineColor:b.trendlinecolor,trendlineToolText:b.trendlinetooltext,trendlineThickness:b.trendlinethickness,trendlineAlpha:b.trendlinealpha,showTrendlinesOnTop:b.showtrendlinesontop,showAxisLine:e(b.showxaxisline,b.showaxislines,b.drawAxisLines,0),axisLineThickness:e(b.xaxislinethickness,b.axislinethickness,
1),axisLineAlpha:e(b.xaxislinealpha,b.axislinealpha,100),axisLineColor:f(b.xaxislinecolor,b.axislinecolor,"#000000"),majorTMNumber:b.majortmnumber,majorTMColor:b.majortmcolor,majorTMAlpha:b.majortmalpha,majorTMHeight:b.majortmheight,tickValueStep:b.tickvaluestep,showTickMarks:b.showtickmarks,connectTickMarks:b.connecttickmarks,showTickValues:b.showtickvalues,majorTMThickness:b.majortmthickness,upperlimit:a.numberFormatter.getCleanValue(b.upperlimit),lowerlimit:a.numberFormatter.getCleanValue(b.lowerlimit),
reverseScale:b.reversescale,showLimits:e(b.showlimits,b.showtickmarks),adjustTM:b.adjusttm,minorTMNumber:e(b.minortmnumber,0),minorTMColor:b.minortmcolor,minorTMAlpha:b.minortmalpha,minorTMHeight:e(b.minortmheight,b.minortmwidth),minorTMThickness:b.minortmthickness,tickMarkDistance:e(b.tickmarkdistance,b.tickmarkgap),tickValueDistance:e(b.tickvaluedistance,b.displayvaluedistance),placeTicksInside:b.placeticksinside,placeValuesInside:b.placevaluesinside,upperLimitDisplay:b.upperlimitdisplay,lowerLimitDisplay:b.lowerlimitdisplay},
a=a.scale;a.chart=this;a.setCommonConfigArr(c,!this.isHorizontal,!1,g);a.configure()},_drawCanvas:function(){}},m.vled);m("hled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,isHorizontal:!0,isAxisOpposite:!1,creditLabel:!1},m.vled);m("hlineargauge",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Horizontal Linear Gauge",
creditLabel:!1,defaultDatasetType:"hlineargauge",standaloneInit:!0,isHorizontal:!0,isAxisOpposite:!1,hasLegend:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,minorTMNumber:4,isRealTime:!0,colorRange:!0,applicableDSList:{hlineargauge:!0},rtParserModify:!0,_drawCanvas:function(){var a=this.components,c=this.config,b=this.graphics.datasetGroup,d=c.canvasWidth,g=c.canvasHeight,J=c.canvasTop,h=c.canvasLeft,k=a.scale,l=k.config.axisRange.min,x=k.config.axisRange.max,r=this.jsonData,k=r.chart,p=r.trendpoints&&
r.trendpoints.point,r=e(k.showgaugeborder,1),n=Fa(k.colorrangefillmix,k.gaugefillmix,"{light-10},{dark-20},{light-50},{light-85}"),S=Fa(k.colorrangefillratio,k.gaugefillratio,k.gaugefillratio,"0,8,84,8"),w=f(k.colorrangebordercolor,k.gaugebordercolor,"{dark-20}"),v=e(k.colorrangeborderalpha,k.gaugeborderalpha,100),m=r?e(k.colorrangeborderthickness,k.gaugeborderthickness,1):0,y=a.colorRange&&a.colorRange.getColorRangeArr(l,x),u=e(k.showshadow,1),E,B,q,C,I=a.paper,G=a.colorManager,t,H,Ka,k=this.get(xa,
fa),D=k.duration,ia=k.dummyObj,L=k.animObj,M=k.animType,O={top:1,bottom:3},K=k=0,r=0,a=a.canvas.graphics;c.gaugeStartX=c.canvasLeft;c.gaugeEndX=c.canvasLeft+d;c.gaugeStartY=c.canvasTop;c.gaugeEndY=c.canvasTop+g;c.gaugeCenterX=c.canvasLeft+d/2;c.gaugeCenterY=c.canvasTop+g/2;b.transform(["T",h,J]);(J=a.linear)||(a.linear=J=I.group("colorrange",b),J.trackTooltip(!0),a.outerRect=I.rect(b));a.outerRect.attr({x:0,y:0,width:d,height:g,stroke:"none",r:0});E=function(a,b){return{x:a*d/(x-l),y:0,width:(b-a)*
d/(x-l),height:g}};a.colorRangeElems||(a.colorRangeElems=[]);b=0;for(h=y&&y.length;b<h;b+=1)q=y[b],C=E(q.minvalue-l,q.maxvalue-l),q.x=C.x,q.y=C.y,q.width=C.width,q.height=C.height,B=q.code,B=A(la(f(q.bordercolor,B),w),e(q.borderalpha,v)),t=G.parseColorMix(q.code,n),H=G.parseAlphaList(q.alpha,t.length),Ka=e(q.borderAlpha,v),q=H.split(F),q=qa.apply(Math,q),q=qa(m&&Ka||0,q),Ka={x:C.x,y:C.y,width:C.width,height:C.height,r:0,"stroke-width":m},(C=a.colorRangeElems[b])||(C=a.colorRangeElems[b]=I.rect(J),
C.attr(Ka)),C.attr({stroke:B,fill:Z({FCcolor:{color:t.toString(),ratio:S,alpha:H,angle:270}})}),C.animateWith(ia,L,Ka,D,M),C.shadow({apply:u,opacity:q/100}),C.show();for(;a.colorRangeElems[b];)a.colorRangeElems[b].shadow(!1),a.colorRangeElems[b].hide(),b++;if(p)for(c=c.trendPointConfig,a.trendObjElems||(a.trendObjElems=[]),a.trendZoneElems||(a.trendZoneElems=[]),a.marker||(a.marker=[]),b=0,h=c.length;b<h;b+=1)p=c[b],C=E(p.startValue-l,p.endValue-l),p.isTrendZone?((n=a.trendZoneElems[k])||(n=a.trendZoneElems[k]=
I.rect({height:0<C.height?C.height:0},J)),n.attr({fill:Z({FCcolor:{color:p.color,alpha:p.alpha}})}),n.animateWith(ia,L,{x:C.x,y:C.y,width:0<C.width?C.width:0,height:0<C.height?C.height:0,r:0,"stroke-width":0},D,M).tooltip(p.tooltext),n.show(),k++):((n=a.trendObjElems[K])||(n=a.trendObjElems[K]=I.path(J)),n.attr({stroke:A(p.color,p.alpha),"stroke-dasharray":p.dashStyle,"stroke-width":p.thickness}),n.animateWith(ia,L,{path:["M",C.x,C.y,"L",C.x,C.y+C.height]},D,M).tooltip(p.tooltext),n.show(),K++),p.useMarker&&
(p.showOnTop?(S=La,n=0):(S=z,n=g),w=90*O[S],(S=a.marker[r])||(a.marker[r]=S=I.polypath(J)),S.attr({fill:p.markerColor,stroke:p.markerBorderColor}),S.animateWith(ia,L,{polypath:[3,C.x,n,p.markerRadius,w,0],"stroke-width":1},D,M).shadow({apply:u}).tooltip(p.tooltext),S.show(),r++);if(u=a.trendObjElems)for(;u[K];)u[K].hide(),K++;if(u=a.trendZoneElems)for(;u[k];)u[k].hide(),k++;if(S=a.marker)for(;S[r];)S[r].hide(),S[r].shadow(!1),r++},_configueTrendPoints:function(){var a=this.jsonData,c=this.config,
b=c.style,d=a.trendpoints&&a.trendpoints.point,g,J=this.components,W=J.scale.config,k=W.axisRange,l=k.max,x=k.min,W=W.scaleFactor||1,r=J.colorManager,p,m,S,w=c.trendPointConfig=[],a=a.chart,v=d.length;b.trendStyle={fontFamily:b.outCanfontFamily,color:b.outCancolor,fontSize:b.outCanfontSize};for(g=0;g<v;g++)b=d[g],p=e(b.startvalue,b.value),m=e(b.endvalue,p),S=p!==m,p<=l&&p>=x&&m<=l&&m>=x&&w.push({startValue:p,endValue:m,tooltext:q(Na(b.markertooltext)),displayValue:q(Na(b.displayvalue),S?n:J.numberFormatter.scale(p)),
showOnTop:e(b.showontop,a.ticksbelowgauge,1),color:f(b.color,r.getColor("trendLightColor")),textColor:b.color,alpha:e(b.alpha,99),thickness:e(b.thickness,1),dashStyle:Number(b.dashed)?fb(b.dashlen||2,b.dashgap||2,b.thickness||1):n,useMarker:e(b.usemarker,0),markerColor:A(f(b.markercolor,b.color,r.getColor("trendLightColor")),100),markerBorderColor:A(f(b.markerbordercolor,b.bordercolor,r.getColor("trendDarkColor")),100),markerRadius:e(e(b.markerradius)*W,5),markerToolText:pa(b.markertooltext),trendValueDistance:e(e(b.trendvaluedistance)*
W,k.tickInterval),isTrendZone:S});h.stableSort&&h.stableSort(c.trendPointConfig,function(a,b){return a.startValue-b.startValue})},_createDatasets:function(){var a=this.components,c=this.jsonData.pointers,b;b=this.defaultDatasetType;var d,a=a.dataset||(a.dataset=[]);b&&(b=FusionCharts.get("component",["dataset",b]))&&(a[0]?(b=a[0].pointerArr&&a[0].pointerArr.pointer&&a[0].pointerArr.pointer.length,d=c&&c.pointer&&c.pointer.length||0,b>d&&a[0].removeData(b-d),a[0].pointerArr=c,a[0].configure()):(b=
new b,a.push(b),b.chart=this,b.init(c)))},_getData:function(a){var c=this.components.dataset;if(c)return(c=c[0].components.data)&&c[--a]?(a=c[a].config,e(a.setValue,a.itemValue)):null},_setData:function(a,c){var b="value=",d;if(void 0!==a&&void 0!==c){for(d=1;d<Number(a);d++)b+=F;c.toString&&(b+=c.toString());b&&this.feedData(b)}},_getDataForId:function(a){var c=this.components.dataset[0].idMap;return c&&c[a]&&c[a].config.itemValue||null},_setDataForId:function(a,c){var b=this.components.dataset[0].idMap;
return b&&b[a]&&this._setData(b[a].index+1,c)}},m.axisgaugebase);FusionCharts.register("component",["dataset","hlineargauge",{pIndex:2,customConfigFn:"_createDatasets",init:function(a){this.pointerArr=a;this.idMap={};this.configure()},configure:function(){var a=this.chart,c=a.jsonData,b=c.chart,d=a.components,g=d.numberFormatter,d=d.colorManager,J=this.config||(this.config={}),h=this.components||(this.components={}),k=(c=c.pointers&&c.pointers.pointer)&&c.length||1,l,x,r,p,m,S,w,v,t,y,u,a=a.config.style,
E,B,Xa,C,I,G,H,D,Ka,K,ia,L,M,O;J.valuePadding=e(b.valuepadding,2);J.tooltipSepChar=f(b.tooltipsepchar,F);y=e(b.ticksbelowgauge,b.ticksbelowgraph,1);J.axisPosition=y?3:1;J.pointerOnOpp=p=Number(!e(b.pointerontop,y,1));J.valueabovepointer=y=e(b.valueabovepointer,!p,1);J.valueInsideGauge=y===p?1:0;J.showPointerShadow=e(b.showpointershadow,b.showshadow,1);J.showTooltip=e(b.showtooltip,1);J.textDirection="1"===b.hasrtltext?"rtl":n;J.showGaugeLabels=e(b.showgaugelabels,1);J.colorRangeStyle={fontFamily:a.inCanfontFamily,
fontSize:a.inCanfontSize,lineHeight:a.inCanLineHeight,color:a.inCancolor.replace(/^#?/,"#")};J.showValue=e(b.showvalue,1);J.editMode=e(b.editmode,0);J.pointerSides=a=e(b.pointersides,3);J.pointerBorderThickness=O=e(b.pointerborderthickness);J.showHoverEffect=y=e(b.showhovereffect,b.plothovereffect);J.upperLimit=e(b.upperlimit);J.lowerLimit=e(b.lowerlimit);J.startAngle=90*{top:1,right:0,left:2,bottom:3}[p?z:La];v=h.data||(h.data=[]);for(p=0;p<k;p++)x=v[p]||(h.data[p]={}),x=x.config||(x.config={}),
l=c&&c[p]||{},x.itemValue=r=g.getCleanValue(l.value),x.formatedVal=S=g.dataLabels(r),x.setDisplayValue=w=q(Na(l.displayvalue)),x.setToolText=m=q(Na(l.tooltext)),x.id=f(l.id,"pointer_"+p),x.showHoverEffect=r=e(l.showhovereffect,y),x.showBorder=B=e(l.showborder,b.showplotborder,1),x.borderWidth=D=B?e(l.borderthickness,O):0,(x.showValue=t=e(l.showvalue,J.showValue))?void 0!==w?(x.displayValue=w,x.isLabelString=!0):x.displayValue=q(S,n):x.displayValue=n,x.sides=w=e(l.sides,a),3>w&&(x.sides=3),x.radius=
w=e(l.radius,b.pointerradius,10),void 0!==m?(x.toolText=gb(m,[1,2],{formattedValue:S},l,b),x.isTooltextString=!0):x.toolText=null===S?!1:S,x.tempToolText=x.toolText,x.bgAlpha=t=e(l.alpha,l.bgalpha,b.pointerbgalpha,100),x.bgColor=u=f(l.color,l.bgcolor,b.pointerbgcolor,b.pointercolor,d.getColor("pointerBgColor")),x.fillColor=M=A(u,t),x.showBorder=e(l.showborder,b.showplotborder,1),x.borderAlpha=S=e(l.borderalpha,b.pointerborderalpha,100),x.borderColor=m=f(l.bordercolor,b.pointerbordercolor,d.getColor("pointerBorderColor")),
x.pointerBorderColor=E=A(m,S),x.dataLink=q(l.link),x.editMode=e(l.editmode,J.editMode),0!==r&&(r||l.bghovercolor||b.pointerbghovercolor||b.plotfillhovercolor||l.bghoveralpha||b.pointerbghoveralpha||b.plotfillhoveralpha||0===l.bghoveralpha||0===b.pointerbghoveralpha||l.showborderonhover||b.showborderonhover||0===l.showborderonhover||0===b.showborderonhover||l.borderhoverthickness||b.pointerborderhoverthickness||0===l.borderhoverthickness||0===b.pointerborderhoverthickness||l.borderhovercolor||b.pointerborderhovercolor||
l.borderhoveralpha||b.pointerborderhoveralpha||0===l.borderhoveralpha||0===b.pointerborderhoveralpha||l.hoverradius||b.pointerhoverradius||0===l.hoverradius||0===b.pointerhoverradius)&&(r=!0,C=f(l.bghovercolor,b.pointerbghovercolor,b.plotfillhovercolor,"{dark-10}"),Xa=e(l.bghoveralpha,b.pointerbghoveralpha,b.plotfillhoveralpha),Ka=e(l.showborderonhover,b.showborderonhover),void 0===Ka&&(Ka=l.borderhoverthickness||0===l.borderhoverthickness||l.borderhovercolor||l.borderhoveralpha||0===l.borderhoveralpha?
1:B),I=f(l.borderhovercolor,b.pointerborderhovercolor,"{dark-10}"),B=e(l.borderhoveralpha,b.pointerborderhoveralpha),G=Ka?e(l.borderhoverthickness,b.pointerborderhoverthickness,D||1):0,H=e(l.hoverradius,b.pointerhoverradius,w+2),l=!!e(l.showhoveranimation,b.showhoveranimation,1),x.hoverAttr=Ka={},x.outAttr=K={},D!==G&&(Ka["stroke-width"]=G,K["stroke-width"]=D),K.fill=M,C=(D=/\{/.test(C))?d.parseColorMix(u,C)[0]:C,Ka.fill=A(C,e(Xa,t)),G&&(K.stroke=E,D=/\{/.test(I),Ka.stroke=A(D?d.parseColorMix(m,I)[0]:
I,e(B,S))),H&&(l?(ia={r:H},L={r:w}):(Ka.r=H,K.r=w))),x.rolloverProperties={enabled:r,hoverAttr:Ka,hoverAnimAttr:ia,outAttr:K,outAnimAttr:L}},_manageSpace:function(a){var c=this.chart,b=this.components,d=c.config,g=this.config,f=c.linkedItems.smartLabel,h=d.canvasWidth,k,l=d.dataLabelStyle,x=d.style.trendStyle,r=c.jsonData,p=r.trendpoints&&r.trendpoints.point,m=e(parseInt(l.lineHeight,10),12),r=g.valuePadding,S=g.valueInsideGauge,w,v=w=0,q=0,y=0,u=0,E=0,B=0,A=c.components.scale.config.spaceTaken,C=
0,I=this.pointerArr&&this.pointerArr.pointer&&this.pointerArr.pointer.length,G=g.pointerOnOpp,b=b.data;p&&c._configueTrendPoints();f.useEllipsesOnOverflow(d.useEllipsesWhenOverflow);for(f.setStyle(l);C<I;C+=1)c=b[C].config,w=r+c.radius*(3>=c.sides?.5:c.sides%2?1.1-1/c.sides:1),y=Math.max(y,w),c.showValue&&c.displayValue!==n&&(c.isLabelString?(k=f.getSmartText(c.displayValue,h,a-y),c.displayValue=k.text,k.tooltext&&(c.originalText=k.tooltext)):k=f.getOriSize(c.displayValue),c.displayValue===n&&(k=
{height:m})),w=k&&0<k.height&&!S?k.height+w:w,w>a&&(w=a),G?(3===g.axisPosition&&(E=Math.max(A.bottom,E),w=Math.max(A.bottom,w)),v=Math.max(v,w)):(1===g.axisPosition&&(B=Math.max(A.top,B),w=Math.max(A.top,w)),q=Math.max(w,q)),g.align=ob;g.currentValuePadding=y;f.setStyle(x);if(p){d=d.trendPointConfig;C=0;for(I=d.length;C<I;C+=1)(h=d[C])&&h.displayValue!==n&&(x=r+.5*h.markerRadius,u=Math.max(x,u),k=f.getOriSize(h.displayValue),0<k.height&&(w=k.height+x),w>a&&(w=a),h.showOnTop?(1===g.axisPosition&&(B=
Math.max(A.top,B),w=Math.max(A.top,w)),q=Math.max(q,w)):(3===g.axisPosition&&(E=Math.max(A.bottom,E),w=Math.max(A.bottom,w)),v=Math.max(w,v)));g.currentTrendPadding=u}return{top:q-B,bottom:v-E}},draw:function(a,c){var b=this,d=b.idMap,g=b.chart,f=g.components,h=g.config,k=g.graphics,l=k.datalabelsGroup,x=k.tempGroup,r=f.paper,p=f.scale,m=b.pointerArr&&b.pointerArr.pointer,f=h.canvasWidth,h=h.canvasHeight,S=b.config,h=S.pointerOnOpp?h:0,w=S.showPointerShadow,v=S.showTooltip,q=p.config.axisRange.min,
y=p.config.axisRange.max,u=(y-q)/f,m=m&&m.length||1,E,B,A=b.components.data,C=g.get(xa,fa),I=C.animObj,G=C.dummyObj,t=C.animType,C=(a||C).duration,z={pageX:0,pageY:0},H=function(a){!1!==this.editMode&&(E=g._getDataJSON(),this.dragStartX=a)},F=function(){var a=this.config,b,c=g.chartInstance;if(!1!==this.config.editMode){(b=c&&c.jsVars)&&(b._rtLastUpdatedData=g._getDataJSON());ba.raiseEvent("RealTimeUpdateComplete",{data:"&value="+a.updatedValStr,updateObject:{values:[a.updatedValStr]},prevData:E.values,
source:"editMode",url:null},c);try{ra.FC_ChartUpdated&&ra.FC_ChartUpdated(c.id)}catch(d){setTimeout(function(){throw d;},1)}S.showTooltip?L.tooltip(a.toolText):L.tooltip(n)}},D=function(a,c,d,g,k){a=$a&&($a&&k.sourceEvent&&k.sourceEvent.touches&&k.sourceEvent.touches[0]||k)||z;g=p.getLimit();c=g.min;g=g.max;var f=e(this.itemValue,c),l=f-(this.dragStartX-d)*u,J=0,h=[],r=[];if(!1!==this.editMode){this.drag=!0;for(l<c?l=c:l>g&&(l=g);J<this.index;J+=1)h.push(n),r.push(n);h.push({value:l});r.push(l);f!==
l&&b.updateData({data:h},{duration:0})&&(this.updatedValStr=r.join("|"),this.dragStartX=d||k.pageX||a.pageX)}},L,M,O,K,Y,P,X,N,Q=b.pool;x||(x=k.tempGroup=r.group("tempGroup",l).trackTooltip(!0));P=function(a){var b=this.data("eventArgs").index,b=A[b].config;!0===b.drag?b.drag=!1:wa.call(this,g,a)};X=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.hoverAttr),b.hoverAnimAttr&&this.animate(b.hoverAnimAttr,100,"easeIn"));wa.call(this,g,a,"DataPlotRollOver")};for(N=function(a){var b=
this.data("rolloverProperties");b.enabled&&(this.attr(b.outAttr),b.outAnimAttr&&this.animate(b.outAnimAttr,100,"easeIn"));wa.call(this,g,a,"DataPlotRollOut")};m--;)k=A[m].config,M=A[m].graphics||(A[m].graphics={}),K=k.rolloverProperties||{},B=S.startAngle,d[k.id]={index:m,config:k},B+=.2,l=w?{opacity:Math.max(k.bgAlpha,k.borderAlpha)/100}:!1,O=k.dataLink,Y={index:m,link:O,value:k.itemValue,displayValue:k.displayValue,toolText:k.toolText},(L=M.pointer)||(Q&&Q.pointer[0]?(L=M.pointer=Q.pointer[0],Q.pointer.splice(0,
1)):L=M.pointer=r.polypath(x).click(P).hover(X,N),L.attr({polypath:[k.sides,0,h||0,k.radius,B,0,x]}),L.show(),L.drag(D,H,F,k,k,A[m])),c||(L.attr({fill:k.fillColor,stroke:k.pointerBorderColor,ishot:!0,"stroke-width":k.borderWidth}).shadow(!!l,l&&l.opacity).data("eventArgs",Y).data("rolloverProperties",K),O||k.editMode?L.css({cursor:"pointer",_cursor:"hand"}):L.css({cursor:n,_cursor:n}),k._startAngle=B,k.editMode?(k.index=m,k.editMode=!0):k.editMode=!1,L.attr({ishot:!0})),v?L.tooltip(k.toolText,null,
null,!0):L.tooltip(n),L.animateWith(G,I,{polypath:[k.sides,f*(e(k.itemValue,q)-q)/(y-q),h||0,k.radius,B,0],r:k.radius},C,t);c?b.drawPointerValues(a):b._drawWidgetLabel(a);b.removeDataArr&&b.remove()},removeData:function(a){var c=this.components.data;this.removeDataArr||(this.removeDataArr=[]);this.removeDataArr=this.removeDataArr.concat(c.splice(0,a))},remove:function(){var a=this.removeDataArr,c=a.length,b,d,e,f,h=this.pool||(this.pool={pointer:[],pointerValue:[]});for(f=0;f<c;f++)b=a[f].graphics,
e=b.pointer,d=b.pointerValue,h.pointer[f]=b.pointer,h.pointerValue[f]=b.pointerValue,d.hide(),e.hide(),e.undrag(),e.shadow(!1);delete this.removeDataArr},_drawWidgetLabel:function(a){var c=this.chart,b=c.config,d=c.components,g=d.numberFormatter,J=d.scale,h=d.paper,k=c.graphics.datalabelsGroup,l=J.config.axisRange.min,x=J.config.axisRange.max,r=this.config,J=r.textDirection,p=d.colorRange&&d.colorRange.getColorRangeArr(l,x),d=r.colorRangeStyle||{},m=r.showvalue,S,w=c.jsonData.trendpoints&&c.jsonData.trendpoints.point,
v=b.trendPointConfig,q=b.canvasWidth,y=b.canvasHeight,u=b.marginRight,E=r.pointerOnOpp;S=r.valueInsideGauge;var B=r.showGaugeLabels,t=b.dataLabelStyle,C=c.get(xa,fa),I=C.animObj,G=C.dummyObj,z=C.animType,F=C.duration,D,K,ia,L,M,O,N,Y;N=!1;var c=c.linkedItems.smartLabel,P,X,Z=e(parseInt(t.fontHeight,10),parseInt(t.lineHeight,10),12),Q=r.currentValuePadding+.5*Z,C=r.currentTrendPadding+.5*Z,ga,r=r.currentTrendPadding;ia={fontFamily:t.fontFamily,fontSize:t.fontSize,lineHeight:t.lineHeight,fontWeight:t.fontWeight,
fontStyle:t.fontStyle};var ca=this.pointerArr&&this.pointerArr.pointer,ea,t=this.components,R=t.data,da=t.dataLabels||(t.dataLabels=[]),T=t.trendLabels||(t.trendLabels=[]);k.transform(["T",b.canvasLeft,b.canvasTop]);Q=S===E?Q-Z/4:Q+Z/4;c.useEllipsesOnOverflow(b.useEllipsesWhenOverflow);c.setStyle(ia);X=c.getOriSize("W...").width;d.fontWeight="normal";ia=this.getPointerLabelXY=function(a,b,c,d,e){b=c?b?y-d-Q:y+Q:b?Q:-(Q+d);ga=(a-l)*q/(x-l);ga+e>q+u&&(ga=q-e+u);return{x:ga,y:b,align:H}};L=function(a,
b){return{x:(a-l+(b-a)/2)*q/(x-l),y:y/2,width:(b-a)*q/(x-l),height:y}};if(ca&&ca.length)for(b=ca.length;b--;)if(ea=R[b].config,0!==m&&ea.displayValue!==n&&(P=c.getOriSize(ea.displayValue),ea.setWidth&&(P=c.getSmartText(ea.displayValue,ea.setWidth,P.height,!0)),M=this.getPointerLabelXY(ea.itemValue,S,E,P.height/2,P.width/2),ea.isLabelString)){N=!1;for(Y=1;!N;){O=ca[b+Y];if(!O)break;O.isLabelString?N=!0:Y+=1}O&&(N=c.getOriSize(O.displayValue),D=ia(O.y,S,E,N.height/2),Y=D.x-N.width/2-(M.x+P.width/2),
D=D.x-M.x,0>Y&&(K=P.width+Y,K>D&&(ea.setWidth=K=D),K>X?(M=ea.setWidth&&ea.setWidth<=K?c.getSmartText(ea.displayValue,ea.setWidth,P.height,!0):c.getSmartText(ea.displayValue,K,P.height,!0),ea.displayValue=M.text,M.tooltext&&(ea.originalText=M.tooltext)):(M=c.getSmartText(ea.displayValue,X,P.height,!0),ea.displayValue=M.text,M.tooltext&&(ea.originalText=M.tooltext),Y=2*Y+X-4),ea.setWidth=null,K=N.width+Y-4,O.setWidth=K>D?D:K>X?K:X));ea.setWidth&&(M=c.getSmartText(ea.displayValue,ea.setWidth,P.height,
!0),ea.displayValue=M.text,M.tooltext&&(ea.originalText=M.tooltext),ea.setWidth=null)}this.drawPointerValues(a);c.setStyle(d);if(p&&B)for(b=0,a=p.length;b<a;b+=1)m=da[b]||(t.dataLabels[b]={}),m=m.graphics||(m.graphics={}),S=p[b],E=f(S.label,S.name),M=L(S.minvalue,S.maxvalue),P=M.width-4>X&&M.height-4>Z?c.getSmartText(E,M.width-4,M.height-4):c.getSmartText(E,M.width,M.height),E={"text-anchor":H,"vertical-align":H,x:M.x,y:M.y,direction:J,fill:d.color,text:P.text},(S=m.value)?(S.show(),S.animateWith(G,
I,E,F,z).css(d).tooltip(P.tooltext)):S=m.value=h.text(E,d,k);else b=0;for(;m=da&&da[b++];)m.graphics.value.hide();if(w)for(b=0,a=v.length;b<a;b+=1){p=T[b]||(t.trendLabels[b]={});m=p.graphics||(p.graphics={});p=v[b];p.displayValue=f(p.displayValue,g.dataLabels(p.startValue));c.setStyle(p.style);Z=c.getOriSize("Wg").height;P=c.getOriSize(p.displayValue);M=ia(p.startValue,0,!p.showOnTop);p.setWidth&&(P=c.getSmartText(p.displayValue,p.setWidth,P.height,!0));N=!1;for(Y=1;!N;){O=w[b+Y];if(!O)break;O.showOnTop===
p.showOnTop?N=!0:Y+=1}O&&(N=c.getOriSize(O.displayValue),D=ia(O.startValue,0,!O.showOnTop),Y=D.x-N.width/2-(M.x+P.width/2),0>Y&&(D=D.x-M.x,K=P.width+Y,K>D&&(p.setWidth=K=D),K>X?(P=p.setWidth&&p.setWidth<=K?c.getSmartText(p.displayValue,p.setWidth,P.height,!0):c.getSmartText(p.displayValue,P.width+Y-4,P.height,!0),p.displayValue=P.text,P.tooltext&&(p.originalText=P.tooltext)):(P=c.getSmartText(p.displayValue,X,P.height,!0),p.displayValue=P.text,P.tooltext&&(p.originalText=P.tooltext),Y=2*Y+X-4),p.setWidth=
null,K=N.width+Y-4,O.setWidth=K>D?D:K>X?K:X));p.setWidth&&(P=c.getSmartText(p.displayValue,p.setWidth,P.height,!0),p.displayValue=P.text,P.tooltext&&(p.originalText=P.tooltext),p.setWidth=null);G=p.showOnTop?-(r+P.height/2):y+C;I=p.isTrendZone?L(p.startValue,p.endValue).x:M.x;m.value||(m.value=h.text(k));m.value.attr({x:I,y:G,text:p.displayValue,"text-anchor":Ta[M.align],fill:A(p.textColor||d.color),"font-weight":"normal",direction:J,title:p.originalText||n});m.value.show()}else b=0;for(;p=T&&T[b++];)p.graphics.value.hide()},
drawPointerValues:function(a){var c=this.chart,b=c.graphics.datalabelsGroup,d=c.components.paper,e=this.components.data,f=this.config,h=f.pointerOnOpp,k=f.valueInsideGauge,f=f.textDirection,l,x=c.linkedItems.smartLabel,r=this.pointerArr&&this.pointerArr.pointer,p=c.config.dataLabelStyle,r=r&&r.length,m,S=c.get(xa,fa),w=S.animObj,v=S.dummyObj,q=S.animType;a=(a||S).duration;var y=c.config,c=y.marginLeft,S={fontFamily:p.fontFamily,fontSize:p.fontSize,lineHeight:p.lineHeight,fontWeight:p.fontWeight,fontStyle:p.fontStyle},
u,E,B=this.pool,A;for(x.useEllipsesOnOverflow(y.useEllipsesWhenOverflow);r--;)A=!1,y=e[r].graphics,m=e[r].config,u=m.displayValue,l=m.showValue,0!==l&&u!==n?(E=x.getOriSize(u),l=E.width/2,E=this.getPointerLabelXY(m.itemValue,k,h,E.height/2,l),u={"text-anchor":Ta[E.align],title:m.originalText||n,text:u,fill:p.color,direction:f,"text-bound":[p.backgroundColor,p.borderColor,p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash]},(m=y.pointerValue)||(B&&B.pointerValue[0]?(m=y.pointerValue=B.pointerValue[0],
B.pointerValue.splice(0,1)):(u.x=0,u.y=E.y,A=!0,m=y.pointerValue=d.text(u,S,b))),A||(m.attr(u).css(S),m.show()),l>c+E.x&&(E.x=l-c),m.animateWith(v,w,{x:E.x,y:E.y},a,q)):y.pointerValue&&y.pointerValue.hide()},getDataLimits:function(){for(var a=this.config,c=this.chart.jsonData,b=this.pointerArr&&this.pointerArr.pointer||c.dials&&c.dials.dial,c=(c=c.colorrange)&&c.color,d=b&&b.length,e,f,h=a.upperLimit,k=a.lowerLimit,l,x=-Infinity,r=Infinity,a=0;a<d;a++)l=b[a].value,l!==n&&(f=x=qa(x,Number(b[a].value)),
e=r=ma(r,Number(b[a].value)));d=c&&c.length;for(a=0;a<d;a++)b=Number(c[a].maxvalue),l=Number(c[a].minvalue),h&&b>h&&(b=h),k&&l<k&&(l=k),x=qa(x,b),r=ma(r,l);return{forceMin:e!==r,forceMax:f!==x,max:x,min:r}},updateData:function(a,c){if(a===this.lastUpdatedObj)return!1;var b=this.chart,d=b.components.numberFormatter,e=this.components.data,f,h,k=this.components.data,k=k&&k.length||0,l,x,r=null,p=[],m,S,w;a=a.data;S=c||b.get(xa,fa);if(k){for(;k--;)if(l={},w={},x=e[k].config,h=a[k])m=h.value,f=h.tooltext,
b=h.label,h=h.showlabel,void 0!==m&&m!==n?(l.value=w.value=m,r=w.displayvalue=w.tooltext=d.dataLabels(w.value),w.hasNewData=!0):w.value=x.formatedVal,b&&(w.displayvalue=b,w.hasNewData=!0),"0"==h&&(w.displayvalue=n,w.hasNewData=!0),f&&(f=q(Na(f)),w.hasNewData=!0),w.hasNewData&&(p[k]=w,ka(x,{itemValue:w.value,displayValue:x.displayValue||"1"==h?w.displayvalue:n,toolText:void 0!==f?gb(f,[1,2],{formattedValue:r},l):x.setToolText?x.tempToolText:r}));p.length&&(this.lastUpdatedObj=a,this.draw(S,!0));return!!p.length}}}]);
FusionCharts.register("component",["dataset","bullet",{init:function(a){var c=this.chart,b=c.components;if(!a)return!1;this.JSONData=a;this.yAxis=b.scale;this.chartGraphics=c.chartGraphics;this.components={};this.graphics={};this.visible=1===e(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1);this.configure();!1!==c.hasLegend&&this._addLegend()},configure:function(){var a=this.chart,c=this.config,b=this.JSONData,d=a.jsonData.chart,g=a.components.colorManager,J,n=c.plotColor=g.getColor(ha),
k=e(b.dashed,d.plotborderdashed);e(d.useplotgradientcolor,1);var l,x,r,p=h.getDashStyle,m=this.components.data,S=a.isBar,w=a.is3D,v=a.isStacked;c.targetCapStyle=l=f(d.targetcapstyle,Qa).toLowerCase();"butt"!==l&&l!==Qa&&"square"!==l&&"inherit"!==l&&(c.targetCapStyle=Qa);c.upperLimit=e(d.upperlimit);c.lowerLimit=e(d.lowerlimit);c.initAnimation=!0;J=c.showplotborder=e(d.showplotborder,0);c.plotDashLen=l=e(d.plotborderdashlen,5);c.plotDashGap=x=e(d.plotborderdashgap,4);c.plotfillAngle=e(360-d.plotfillangle,
S?180:90);c.plotFillAlpha=r=f(b.alpha,d.plotfillalpha,Da);c.plotColor=f(d.plotfillcolor,n);c.isRoundEdges=n=e(d.useroundedges,0);c.plotRadius=e(d.useRoundEdges,c.isRoundEdges?1:0);c.plotFillRatio=f(b.ratio,d.plotfillratio);c.plotgradientcolor=h.getDefinedColor(d.plotgradientcolor,g.getColor("plotGradientColor"));c.showPlotBorderOnHover=e(d.showplotborderonhover,0);c.plotBorderAlpha=f(d.plotborderalpha,r,Da);c.plotBorderColor=f(d.plotbordercolor,w?Aa:g.getColor("plotBorderColor"));c.plotBorderThickness=
J=J?e(d.plotborderthickness,0):0;c.plotBorderDashStyle=k?p(l,x,J):"none";c.showValue=e(b.showvalue,d.showvalue,1);c.valuePadding=e(d.valuepadding,2);c.showShadow=n||w?e(d.showshadow,1):e(d.showshadow,g.getColor("showShadow"));c.showHoverEffect=e(d.plothovereffect,d.showhovereffect,0);c.showTooltip=e(d.showtooltip,1);c.stack100Percent=a=e(a.stack100percent,d.stack100percent,0);c.definedGroupPadding=qa(e(d.plotspacepercent),0);c.plotSpacePercent=qa(e(d.plotspacepercent,20)%100,0);c.maxColWidth=e(S?
d.maxbarheight:d.maxcolwidth,50);c.showPercentValues=e(d.showpercentvalues,v&&a?1:0);c.showPercentInToolTip=e(d.showpercentintooltip,v&&a?1:0);c.plotPaddingPercent=e(d.plotpaddingpercent);c.rotateValues=e(d.rotatevalues)?270:0;c.placeValuesInside=e(d.placevaluesinside,0);c.use3DLighting=e(d.use3dlighting,1);m||(this.components.data=[]);c.plotAsDot=m=e(d.plotasdot,0);c.plotFillPercent=e(d.plotfillpercent,m?25:40);c.targetFillPercent=e(d.targetfillpercent,60);c.targetThickness=e(d.targetthickness,3);
m=c.targetalpha=e(d.targetalpha,100);c.targetColor=A(f(d.targetcolor,g.getColor(ha)),m);this._setConfigure()},_setConfigure:function(a){var c=this.chart,b=this.config,d=this.JSONData,g=a||d.data,J=g&&g.length,W=c.config.categories,W=W&&W.length,J=a&&a.data.length||ma(W,J),k=c.jsonData.chart,W=c.components.colorManager,l=b.showplotborder,x=b.showPlotBorderOnHover,r=b.plotColor,p=h.parseUnsafeString,m=p(f(k.tooltipsepchar,Va)),S=e(k.seriesnameintooltip,1),w=h.parseTooltext,v,t,y,u,E,B,z=b.plotBorderThickness,
C=b.isRoundEdges,I=b.showHoverEffect,G=b.plotFillAngle,H,D=b.plotBorderAlpha,F,K=b.plotBorderDashStyle,ia,L,M,O,R,Y,P,X,da,Q,ga,ca,ea=h.getDashStyle,fa=this.components.data,T=c.isBar,ba=c.is3D,aa=-Infinity,U=Infinity,ja=c.components.numberFormatter,db=function(a){b.showTooltip?null===v?a=!1:void 0!==a?(u=[1,2,3,4,5,6,7,26,27],t={formattedValue:v,targetValue:M.target,targetDataValue:M.toolTipValueTarget},a=w(a,u,t,ia,k,d)):(S&&(y=pa(d&&d.seriesname)),a=y?y+m:n,a+=M.label?M.label+m:n):a=!1;return a};
fa||(fa=this.components.data=[]);for(c=0;c<J;c++)ia=a?a&&a.data[c]:g[c],M=(r=fa[c])&&r.config,r||(r=fa[c]={}),r.config||(M=fa[c].config={}),M.showValue=e(ia.showvalue,b.showValues),M.valuePadding=e(k.valuepadding,2),M.setValue=L=ja.getCleanValue(ia.value),M.target=r=ja.getCleanValue(ia.target),M.setLink=f(ia.link),M.toolTipValue=F=ja.dataLabels(L),M.toolTipValueTarget=ja.dataLabels(r),M.setDisplayValue=O=p(ia.displayvalue),M.displayValue=f(ia.label,O,F),F=e(ia.dashed),O=e(ia.dashlen,void 0),R=B=e(ia.dashgap,
B),aa=qa(aa,L,r),U=ma(U,L,r),M.plotBorderDashStyle=F=1===F?ea(O,R,z):0===F?"none":K,r=f(ia.color,b.plotColor),H=f(ia.alpha,b.plotFillAlpha),0>L&&!C&&(E=G,G=T?180-G:360-G),M.colorArr=L=h.graphics.getColumnColor(r,H,void 0,G,C,b.plotBorderColor,D.toString(),T?1:0,ba?!0:!1),0!==I&&(O=f(ia.hovercolor,d.hovercolor,k.plotfillhovercolor,k.columnhovercolor,r),R=f(ia.hoveralpha,d.hoveralpha,k.plotfillhoveralpha,k.columnhoveralpha,H),Y=f(ia.hovergradientcolor,d.hovergradientcolor,k.plothovergradientcolor,b.plotgradientcolor),
!Y&&(Y=n),Y=f(ia.hoverratio,d.hoverratio,k.plothoverratio,void 0),P=e(360-ia.hoverangle,360-d.hoverangle,360-k.plothoverangle,G),X=f(ia.borderhovercolor,d.borderhovercolor,k.plotborderhovercolor,k.plotfillhovercolor,b.plotBorderColor),da=f(ia.borderhoveralpha,d.borderhoveralpha,k.plotborderhoveralpha,D,H),H=e(ia.borderhoverthickness,d.borderhoverthickness,k.plotborderhoverthickness,z),Q=e(ia.borderhoverdashed,d.borderhoverdashed,k.plotborderhoverdashed),ga=e(ia.borderhoverdashgap,d.borderhoverdashgap,
k.plotborderhoverdashgap,void 0),ca=e(ia.borderhoverdashlen,d.borderhoverdashlen,k.plotborderhoverdashlen,B),Q=Q?ea(ca,ga,H):F,1==I&&O===r&&(O=N(O,90)),O=h.graphics.getColumnColor(O,R,Y,P,C,X,da.toString(),T?1:0,!1),M.setPlotRolloutAttr={fill:ba?[Z(L[0]),!b.use3DLighting]:Z(L[0]),stroke:l&&Z(L[1]),"stroke-width":z,"stroke-dasharray":F},M.setPlotRolloverAttr={fill:ba?[Z(O[0]),!b.use3DLighting]:Z(O[0]),stroke:Z(O[1]),"stroke-width":x?H||1:H,"stroke-dasharray":Q}),0!==I&&(I||k.targethovercolor||k.targethoveralpha||
0===k.targethoveralpha||k.targethoverthickness||0===k.targethoverthickness)&&(I=!0,F={},L={},Y=e(k.targethoverthickness,b.targetThickness+2),b.targetThickness!==Y&&(F["stroke-width"]=Y,L["stroke-width"]=b.targetThickness),O=f(k.targethovercolor,"{dark-10}"),R=e(k.targethoveralpha,b.targetalpha),Y&&(L.stroke=b.targetColor,Y=/\{/.test(O),F.stroke=A(Y?W.parseColorMix(f(k.targetcolor,r),O)[0]:O,R)),M.tagetHoverAttr=F,M.targetOutAttr=L),v=M.toolTipValue,r=q(p(f(ia.tooltext,d.plottooltext,k.plottooltext))),
M.toolText=db(r),M.setTooltext=M.toolText,E&&(G=E),r=q(p(f(ia.tooltexttarget,d.targettooltext,k.targettooltext))),M.toolTextTarget=db(r);b.maxValue=aa;b.minValue=U},_manageSpace:function(a){var c=this.config,b=this.components.data,d=this.chart,g=d.components.caption.config,f=d.config,d=d.linkedItems.smartLabel,h=f.dataLabelStyle,k=e(parseInt(h.lineHeight,10),12),l=c.valuePadding,x=0,r=0,b=(b=b[r])&&b.config;d.useEllipsesOnOverflow(f.useEllipsesWhenOverflow);for(d.setStyle(h);1>r;r+=1)c.showValue&&
(f=d.getOriSize(b.toolTipValue),b.toolTipValue===n&&(f={height:k}),0<f.height&&(x=f.height+l),x>a&&(x=a));g.widgetValueHeight=x;c.heightUsed=x;return{top:0,bottom:x}},_manageSpaceHorizontal:function(a){var c=this.config,b=this.components.data,d=this.chart,g=d.config,d=d.linkedItems.smartLabel,f=g.dataLabelStyle,h=e(parseInt(f.lineHeight,10),12),k=c.valuePadding,l=0,x=0,b=(b=b[x])&&b.config;d.useEllipsesOnOverflow(g.useEllipsesWhenOverflow);for(d.setStyle(f);1>x;x+=1)b&&b.displayValue!==n&&void 0!==
b.displayValue&&c.showValue&&(g=d.getOriSize(b.displayValue),b.displayValue===n&&(g={height:h}),0<g.height&&(l=g.width+k+2),l>a&&(l=a));c.widthUsed=l;return{top:0,right:l}},updateData:function(a,c,b){var d=this.config,e=d.maxValue,f=d.prevMin,h=this.chart,k=this.groupManager||this,l=h.components.scale;this._setConfigure(a,c);this.setMaxMin();if(d.maxValue!==e||d.minValue!==f)this.maxminFlag=!0;b&&(h._setAxisLimits(),l.draw(),k.draw())},setMaxMin:function(){var a=this.components.data,c=this.config,
b,d,e=a.length,f=-Infinity,h=Infinity;for(b=0;b<e;b++)a[b]&&(d=a[b].config,f=qa(f,d.setValue,d.target),h=ma(h,d.setValue,d.target));c.maxValue=f;c.minValue=h},draw:function(){var a=this.chart,c=a.components,b=a.jsonData.chart,d=a.config,g=c.paper,J=c.canvas,n=J.graphics,k=J.config,J=n.canvasElement,l=d.canvasLeft,x=d.canvasRight,r=d.canvasTop,p=d.canvasBottom,m=d.canvasWidth,S=d.canvasHeight,w=a.graphics.datasetGroup,v,q=c.scale,y=q.getLimit().min,q=q.getLimit().max,u=a.isHorizontal,E=a.get(xa,fa),
B=E.animType,t=E.animObj,C=E.dummyObj,E=E.duration,I,G,z=a.components.colorManager,H,D,K,N,L,M,O,R;I=u?270:180;k.colorRangeFillMix=G=h.getFirstDefinedValue(b.colorrangefillmix,b.gaugefillmix,a.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");k.colorRangeFillRatio=a=h.getFirstDefinedValue(b.colorrangefillratio,b.gaugefillratio,a.colorRangeFillRatio,b.gaugefillratio,"0,10,80,10");k.colorRangeGetter=c=c.colorRange;k.colorArray=c=c&&c.getColorRangeArr(y,q);H=f(b.colorrangebordercolor,b.gaugebordercolor,
"{dark-20}");D=e(b.colorrangeborderalpha,b.gaugeborderalpha,100);K=e(b.showshadow,1);N=e(b.showgaugeborder,b.showcolorrangeborder,0);k.colorRangeBorderThickness=b=N?e(b.colorrangeborderthickness,b.gaugeborderthickness,2):0;k=c&&c.length;if(J)for(n=J.colorRangeElems.length;n>k;--n)J.colorRangeElems[n-1].hide(),J.colorRangeElems[n-1].shadow({opacity:0});else n.canvasElement=J={},J.colorRangeElems=[];for(n=0;n<k;n+=1)N=c[n],L=N.minvalue-y,M=N.maxvalue-y,L=u?u?{x:l+L*m/(q-y),y:r,width:(M-L)*m/(q-y),height:S}:
void 0:{x:l,y:r+(S-M*S/(q-y)),width:m,height:(M-L)*S/(q-y)},N.x=L.x,N.y=L.y,N.width=L.width,N.height=L.height,M=N.code,M=A(la(f(N.bordercolor,M),H),e(N.borderalpha,D)),O=z.parseColorMix(N.code,G),R=z.parseAlphaList(N.alpha,O.length),v=e(N.borderAlpha,D),N=R.split(F),N=qa.apply(Math,N),N=qa(b&&v||0,N),v={x:L.x,y:L.y,width:L.width,height:L.height,r:0,"stroke-width":b,stroke:M,fill:Z({FCcolor:{color:O.toString(),ratio:a,alpha:R,angle:I}})},J.colorRangeElems[n]?(J.colorRangeElems[n].show(),v={"stroke-width":b,
stroke:M,fill:Z({FCcolor:{color:O.toString(),ratio:a,alpha:R,angle:I}})},J.colorRangeElems[n].animateWith(C,t,{x:L.x,y:L.y,width:L.width,height:L.height,r:0},E,B),J.colorRangeElems[n].attr(v)):J.colorRangeElems[n]=g.rect(v,w),J.colorRangeElems[n].shadow({apply:K,opacity:N/100});d.gaugeStartX=l;d.gaugeEndX=x;d.gaugeStartY=r;d.gaugeEndY=p;d.gaugeCenterX=l+.5*m;d.gaugeCenterY=r+.5*S;d.gaugeRadius=.5*m;this.drawPlot()},drawPlot:function(){var a=this,c=a.JSONData,b=a.chart.jsonData.chart,d=a.config,e=
a.chart.config.categories,J=c.data,m=e&&e.length,k=J&&J.length,l,x,e=a.visible,r=a.chart,p=r.getJobList(),q=r.config,S=q.canvasLeft,w=q.canvasRight,v=q.canvasTop,A=q.canvasBottom,y=q.canvasHeight,u=q.canvasWidth,E=r.components.paper,B=r.components.scale,t=r.graphics.datasetGroup,C,I,G,F=r.graphics,D=h.parseUnsafeString,K=h.getValidValue,N=h.Raphael,ia=d.showTooltip,L=r.get(xa,fa),M=L.animType,O=L.animObj,R=L.dummyObj,L=L.duration,Y,P,X,da=a.components.data,Q,ga,ca,ea=B.max,T=B.min,ea=B.yBasePos=B.getAxisPosition(0>=
ea&&0>T?ea:0<ea&&0<=T?T:0),ba=T=0,aa=d.showShadow,V=d.plotBorderThickness,U=d.plotRadius,ja=a.graphics.container,db=a.graphics.trackerContainer,ka=a.graphics.targetContainer;ca=a.graphics.trackerTargetContainer;var qa=a.graphics.dataLabelContainer,na=a.graphics.shadowContainer,la=a.graphics.shadowTargetContainer;G=F.trackerGroup;var oa,eb,pa=!0,ra=!1;X=F.datalabelsGroup;var F=r.config.dataLabelStyle,sa=d.heightUsed,va=d.lowerLimit,ha,Aa=d.showHoverEffect,ya=function(a){wa.call(this,r,a)},Da=function(a){return function(b){0!==
this.data(ta)&&a.attr(this.data("setRolloverAttr"));wa.call(this,r,b,"DataPlotRollOver")}},za=function(a){return function(b){0!==this.data(ta)&&a.attr(this.data("setRolloutAttr"));wa.call(this,r,b,"DataPlotRollOut")}},Ca=function(){!1!==a.visible||!1!==a._conatinerHidden&&void 0!==a._conatinerHidden||(ja.hide(),db.hide(),na.hide(),qa&&qa.hide(),a._conatinerHidden=!0)};ja||(ja=a.graphics.container=E.group("bar",t),e||ja.hide());qa||(qa=a.graphics.dataLabelContainer=E.group("datalabel",X));ka||(ka=
a.graphics.targetContainer=E.group("target",t).trackTooltip(!0),e||ka.hide());db||(db=a.graphics.trackerContainer=E.group("bar-hot",G),e||db.hide());ca||(ca=a.graphics.trackerTargetContainer=E.group("target-hot",G),e||ca.hide());na||(na=a.graphics.shadowContainer=E.group("shadow",t).toBack(),e||na.hide());la||(la=a.graphics.shadowTargetContainer=E.group("shadow",t).toBack(),e||la.hide());ma(m,k);for(m=0;1>m;m++)if(l=J[m],ca=(k=da[m])&&k.config,ha=k.trackerConfig={},Q=ca.setValue,0>Q&&(ra=!0),ga=ca.setLink,
oa=ca.colorArr,la=!1,k.graphics||(da[m].graphics={}),t=ca.displayValue,K(D(f(l.tooltext,c.plottooltext,b.plottooltext))),r.isHorizontal){P=d.plotFillPercent/100*y;I=Ba(v+A)/2-P/2;d.plotAsDot?(C=B.getAxisPosition(Q)-P/2,G=P):(X=va&&va<=Q&&0<=B.config.axisRange.min?va:0,C=ra?B.getAxisPosition(Q):B.getAxisPosition(X),G=ra?B.getAxisPosition(0)-B.getAxisPosition(Q):B.getAxisPosition(Q)-B.getAxisPosition(X));G=N.crispBound(C,I,G,P,V);C=G.x;I=G.y;Y=G.width;P=G.height;X=ca.toolText===n?ca.toolTipValue:ca.toolText;
eb=ca.plotBorderDashStyle;ha.eventArgs={link:ga,value:Q,displayValue:t,toolText:X?X:""};L||(ba=Y);x={x:C,y:I,width:ba||1,height:P,r:U,ishot:!0,fill:Z(oa[0]),stroke:Z(oa[1]),"stroke-width":V,"stroke-dasharray":eb,"stroke-linejoin":mb,visibility:e};if(null!==Q){if(k.graphics.element?(k.graphics.element.show(),x={x:C,y:I,width:Y,height:P||1,r:U},Q=k.graphics.element,Q.animateWith(R,O,x,L,M,pa&&Ca),Q.attr({ishot:!0,fill:Z(oa[0]),stroke:Z(oa[1]),"stroke-width":V,"stroke-dasharray":eb,"stroke-linejoin":mb,
visibility:e}),ca.elemCreated=!1):(Q=k.graphics.element=E.rect(x,ja),Q.animateWith(R,O,{width:Y||1},L,M),L&&(pa=!1),ca.elemCreated=!0),Q.shadow({opacity:aa},na).data("BBox",G),ga||ia)P<Sa&&(I-=(Sa-P)/2,P=Sa),ha.attr={x:C,y:I,width:Y,height:P,r:U,cursor:ga?"pointer":n,stroke:Ia,"stroke-width":V,fill:Ia,ishot:!0,visibility:e}}else k.graphics.element&&k.graphics.element.hide(),k.graphics.hotElement&&k.graphics.hotElement.hide();ca.target?(K(D(f(l.tooltext,c.targettooltext,b.targettooltext))),X=ca.toolTextTarget===
n?ca.toolTipValueTarget:ca.toolTextTarget,P=d.targetFillPercent/100*y,l=C=B.getAxisPosition(ca.target),I=(v+A)/2-P/2,P=I+P,l=["M",l,I,"L",C,P],x={stroke:d.targetColor,"stroke-width":d.targetThickness,"stroke-linecap":d.targetCapStyle,ishot:!0,"shape-rendering":Ha[!1]},(Q=k.graphics.targetElement)?(k.graphics.targetElement.show(),x={path:l,stroke:d.targetColor,"stroke-width":d.targetThickness,"stroke-linecap":d.targetCapStyle,ishot:!0,"shape-rendering":Ha[!1]},Q.animateWith(R,O,x,L,M)):(Q=k.graphics.targetElement=
E.path(l,ka).attr(x),la=!0),la&&Q.click(ya).hover(Da(Q),za(Q)),Q.shadow({opacity:aa},na).data("BBox",G).data("eventArgs",void 0).data("groupId",void 0).data(ta,Aa).data("setRolloverAttr",ca.tagetHoverAttr).data("setRolloutAttr",ca.targetOutAttr),ia?Q.tooltip(X):Q.tooltip(!1)):k.graphics.targetElement&&k.graphics.targetElement.hide();la=parseInt(F.lineHeight,10);I=.5*(v+y);t!==n&&void 0!==t&&d.showValue?(x={text:t,"text-anchor":Ya,x:w+d.valuePadding+2,y:I,"vertical-align":z,fill:F.color,direction:ca.textDirection,
"text-bound":[F.backgroundColor,F.borderColor,F.borderThickness,F.borderPadding,F.borderRadius,F.borderDash]},k.graphics.label?(k.graphics.label.show(),k.graphics.label.animateWith(R,O,{x:w+d.valuePadding+2,y:I},L,M),k.graphics.label.attr({text:t,"text-anchor":Ya,"vertical-align":z,fill:F.color,direction:ca.textDirection,"text-bound":[F.backgroundColor,F.borderColor,F.borderThickness,F.borderPadding,F.borderRadius,F.borderDash]})):k.graphics.label=E.text(x,qa),t=k.graphics.label.getBBox(),0>t.x+q.marginLeft&&
(t=t.width-q.marginLeft,q.width<t&&(t=q.width-q.marginLeft),x={x:t/2},k.graphics.label.animateWith(R,O,x,L,M))):k.graphics.label&&k.graphics.label.hide()&&k.graphics.label.attr({"text-bound":[]})}else{G=d.plotFillPercent/100*u;C=Ba(S+w)/2-G/2;d.plotAsDot?(I=B.getAxisPosition(Q)-G/2,P=G):(X=va&&va<=Q&&0<=B.config.axisRange.min?va:0,ea=B.getAxisPosition(X),I=ra?B.getAxisPosition(0):B.getAxisPosition(Q),P=ra?B.getAxisPosition(Q)-B.getAxisPosition(0):B.getAxisPosition(va&&va<=Q&&0<=B.config.axisRange.min?
va:0)-I);G=N.crispBound(C,I,G,P,V);C=G.x;I=G.y;Y=G.width;P=G.height;X=ca.toolText===n?ca.toolTipValue:ca.toolText;eb=ca.plotBorderDashStyle;ha.eventArgs={link:ga,value:Q,displayValue:t,toolText:X};L||(ea=I,T=P);x={x:C,y:ea,width:Y,height:T||1,r:U,ishot:!0,fill:Z(oa[0]),stroke:Z(oa[1]),"stroke-width":V,"stroke-dasharray":eb,"stroke-linejoin":mb,visibility:e};k._xPos=C;k._yPos=I+P;k._height=P;k._width=Y;if(null!==Q){if(k.graphics.element?(k.graphics.element.show(),x={x:C,y:I,width:Y,height:P||1,r:U},
Q=k.graphics.element,Q.animateWith(R,O,x,L,M,pa&&Ca),Q.attr({ishot:!0,fill:Z(oa[0]),stroke:Z(oa[1]),"stroke-width":V,"stroke-dasharray":eb,"stroke-linejoin":mb,visibility:e}),ca.elemCreated=!1):(Q=k.graphics.element=E.rect(x,ja),Q.animateWith(R,O,{y:I,height:P||1},L,M),L&&(pa=!1),ca.elemCreated=!0),Q.shadow({opacity:aa},na).data("BBox",G),ga||ia)P<Sa&&(I-=(Sa-P)/2,P=Sa),ha.attr={x:C,y:I,width:Y,height:P,r:U,cursor:ga?"pointer":n,stroke:Ia,"stroke-width":V,fill:Ia,ishot:!0,visibility:e}}else k.graphics.element&&
k.graphics.element.hide(),k.graphics.hotElement&&k.graphics.hotElement.hide();ca.target?(K(D(f(l.tooltext,c.targettooltext,b.targettooltext))),X=ca.toolTextTarget===n?ca.toolTipValueTarget:ca.toolTextTarget,P=d.targetFillPercent/100*u,l=(S+w)/2-P/2,C=l+P,I=P=B.getAxisPosition(ca.target),l=["M",l,I,"L",C,P],x={stroke:d.targetColor,"stroke-width":d.targetThickness,"stroke-linecap":d.targetCapStyle,ishot:!0,"shape-rendering":Ha[!1]},(Q=k.graphics.targetElement)?(k.graphics.targetElement.show(),x={path:l,
stroke:d.targetColor,"stroke-width":d.targetThickness,"stroke-linecap":d.targetCapStyle,ishot:!0,"shape-rendering":Ha[!1]},Q.animateWith(R,O,x,L,M)):(Q=k.graphics.targetElement=E.path(l,ka).attr(x),la=!0),la&&Q.click(ya).hover(Da(Q),za(Q)),Q.shadow({opacity:aa},na).data("BBox",G).data("eventArgs",void 0).data("groupId",void 0).data(ta,Aa).data("setRolloverAttr",ca.tagetHoverAttr).data("setRolloutAttr",ca.targetOutAttr),ia?Q.tooltip(X):Q.tooltip(!1)):k.graphics.targetElement&&k.graphics.targetElement.hide();
la=parseInt(F.lineHeight,10);I=la>sa?q.height-q.marginBottom-sa+la/2:q.height-q.marginBottom-la/2;I-=q.borderWidth;I-=(r._manageActionBarSpace&&r._manageActionBarSpace(.225*ca.availableHeight)||{}).bottom;t!==n&&void 0!==t&&d.showValue?(x={text:t,"text-anchor":H,x:u/2+S,y:I,"vertical-align":H,fill:F.color,direction:ca.textDirection,"text-bound":[F.backgroundColor,F.borderColor,F.borderThickness,F.borderPadding,F.borderRadius,F.borderDash]},k.graphics.label?(k.graphics.label.show(),k.graphics.label.animateWith(R,
O,{x:u/2+S,y:I},L,M),k.graphics.label.attr({text:t,"text-anchor":H,"vertical-align":H,fill:F.color,direction:ca.textDirection,"text-bound":[F.backgroundColor,F.borderColor,F.borderThickness,F.borderPadding,F.borderRadius,F.borderDash]})):k.graphics.label=E.text(x,qa),t=k.graphics.label.getBBox(),0>t.x+q.marginLeft&&(t=t.width-q.marginLeft,q.width<t&&(t=q.width-q.marginLeft),x={x:t/2},k.graphics.label.animateWith(R,O,x,L,M))):k.graphics.label&&k.graphics.label.hide()&&k.graphics.label.attr({"text-bound":[]})}p.trackerDrawID.push(ua.addJob(a.drawTracker,
a,[],h.priorityList.tracker))},drawTracker:function(){var a=this.chart,c=this.components,b=c.pool,d=a.config.plothovereffect,e=a.components.paper,f=this.graphics.trackerContainer,h,k,l,x,r,p,n=function(b){wa.call(this,a,b)},m=function(b){return function(c){var d=this.getData();0!==d.showHoverEffect&&!0!==d.draged&&(b.attr(this.getData().setRolloverAttr),wa.call(this,a,c,"DataPlotRollOver"))}},q=function(b){return function(c){var d=this.getData();0!==d.showHoverEffect&&!0!==d.draged&&(b.attr(this.getData().setRolloutAttr),
wa.call(this,a,c,"DataPlotRollOut"))}};h=(k=c.data[0])&&k.config;c=k.trackerConfig;l=k.graphics.element;r=k.graphics.hotElement;if(p=c.attr)(r=k.graphics.hotElement)?r.attr(p):b&&b.hotElement[0]?(r=k.graphics.hotElement=b.hotElement[0],b.hotElement.splice(0,1)):(r=k.graphics.hotElement=e.rect(p,f),x=!0);(r||l).data("eventArgs",c.eventArgs).data(ta,d).data("setRolloverAttr",h.setPlotRolloverAttr||{}).data("setRolloutAttr",h.setPlotRolloutAttr||{}).tooltip(c.eventArgs&&c.eventArgs.toolText);(x||h.elemCreated)&&
(r||l).click(n).hover(m(l),q(l))},addData:function(){},removeData:function(){},getDataLimits:function(){for(var a=this.config,c=this.pointerArr&&this.pointerArr.pointer,b=this.chart.jsonData.colorrange,b=b&&b.color,c=c&&c.length,d=a.upperLimit,e=a.lowerLimit,f,h,k=a.maxValue,l=a.minValue,c=b&&b.length,a=0;a<c;a++)f=Number(b[a].maxvalue),h=Number(b[a].minvalue),d&&f>d&&(f=d),e&&h<e&&(h=e),k=qa(k,f),l=ma(l,h);return{forceMin:!0,forceMax:!0,max:k,min:l}}},"hlineargauge"]);FusionCharts.register("component",
["dataset","led",{init:function(a){var c=this.chart,b=c.components;if(!a)return!1;this.JSONData=a;this.yAxis=b.scale;this.chartGraphics=c.chartGraphics;this.components={};this.graphics={};this.visible=1===e(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1);this.configure()},draw:function(){var a=this.chart,c=this.config,b=a.components,d=a.jsonData.chart,g=a.config,J=a.graphics,n=b.paper,k=b.canvas,l=k.graphics,x=k.config,r=a.get(xa,fa),k=r.animType,p=r.animObj,m=r.dummyObj,r=r.duration,
q=l.canvasBorderElement,w=l.canvasElement,v=l.canvasElementPath,t=l.canvasHotElement,y=g.canvasLeft,u=g.canvasRight,E=g.canvasTop,B=g.canvasBottom,z=g.canvasWidth,C=g.canvasHeight,J=J.datasetGroup,I=b.scale,G=I.getLimit().min,H=I.getLimit().max,D=e(a.jsonData.chart.reverseaxis,a.isAxisReverse),K=a.isHorizontal,T=function(a,b){if(D&&!K)return{x:y,y:E+a*C/(H-G),width:z,height:(b-a)*C/(H-G)};if(D||K){if(D&&K)return{x:y+(z-b*z/(H-G)),y:E,width:(b-a)*z/(H-G),height:C};if(!D&&K)return{x:y+a*z/(H-G),y:E,
width:(b-a)*z/(H-G),height:C}}else return{x:y,y:E+(C-b*C/(H-G)),width:z,height:(b-a)*C/(H-G)}},ia,L,M,O=a.components.colorManager,ba,Y,P,X,aa,Q,ga,ca,ea,V,na,ka,oa,U,ja,db,ra,ma,pa,va,sa,eb,ha;X=a.components.numberFormatter;var Ba,ua,Aa,Fa=c.showHoverEffect,Ga=function(b){wa.call(this,a,b)},Ha=function(a){var b=0,c,d,e;return function(){e=this;if(0!==e.data(ta))for(b=0,c=a.length;b<c;b+=1)d=a[b],d.attr(e.data("setRolloverAttr")[b])}},Ja=function(a){var b=0,c,d,e;return function(){e=this;if(0!==e.data(ta))for(b=
0,c=a.length;b<c;b+=1)d=a[b],d.attr(e.data("setRolloutAttr")[b])}},za=[],Ca=[],Ea=this.graphics.trackerContainer,I=a.graphics.trackerGroup,Ma=0,sb,tb,La=!1;Ea||(Ea=this.graphics.trackerContainer=n.group("led-hot",I));Y=e(d.showgaugeborder,1);I=f(d.gaugebordercolor,a.gaugeBorderColor,"333333");Y=Y?e(d.gaugeborderthickness,a.gaugeBorderThickness,2):0;ba=f(d.gaugeborderalpha,Da);x.gaugeFillColor=db=f(d.gaugefillcolor,d.ledbgcolor,R);ka=e(d.usesamefillcolor,0);oa=e(d.usesamefillbgcolor,ka);c.ledGap=U=
e(d.ledgap,2);c.ledSize=ja=e(d.ledsize,2);e(d.showhovereffect,0);x.colorRangeFillMix=ia=h.getFirstDefinedValue(d.colorrangefillmix,d.gaugefillmix,a.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");x.colorRangeFillRatio=L=h.getFirstDefinedValue(d.colorrangefillratio,d.gaugefillratio,a.colorRangeFillRatio,d.gaugefillratio,"0,10,80,10");x.colorRangeGetter=ba=b.colorRange;x.colorArray=M=ba&&ba.getColorRangeArr(G,H);I=f(I,R).replace(Oa,Ra);ba=e(d.colorrangeborderalpha,d.gaugeborderalpha,
100);b=e(d.showshadow,1);Y=e(d.showgaugeborder,1);x.colorRangeBorderThickness=Y=Y?e(d.colorrangeborderthickness,d.gaugeborderthickness,2):0;x=U+ja||1;ra=(K?z:C)-ja;P=H-G;ma=Y/2;pa=y-ma;va=E-ma;sa=y+z+ma;ma=E+C+ma;eb=parseInt(ra/x,10)+1;c.sizeGapSum=x=ja+ra%x/eb+U;c.perLEDValueLength=ra=P/eb;c=y;ja=E;d=f(d.clickurl);w||(l.canvasElement=w={},w.colorRangeElems=[]);ua=X.getCleanValue(a.jsonData.value);if(ka||oa)for(X=0,aa=M.length;X<aa;X+=1)if(ua>=M[X].minvalue&&ua<=M[X].maxvalue){ha=M[X].code||O.getPlotColor(X);
Aa=X;break}M&&0<M.length&&(Ba=M[0].code||O.getPlotColor(0));sb=D?u:y;tb=D?E:B;X=0;for(aa=M&&M.length;X<aa;X+=1)P=M[X],Q=T(P.minvalue-G,P.maxvalue-G),ga=ya((P.maxvalue-G)/ra),ca=ga-Ma,Ma=ga,ga=ca*x,K||D?!K&&D?(Q.height=ga-U,Q.y=tb,tb+=ga):K&&!D?(Q.width=ga-U,Q.x=sb,sb+=ga):K&&D&&(Q.width=ga-U,Q.x=sb-Q.width,sb-=ga):(Q.height=ga-U,Q.y=tb-Q.height,tb-=ga),P.x=Q.x,P.y=Q.y,P.width=Q.width,P.height=Q.height,ga=ka?ha:oa&&X>Aa?Ba:Ba=P.code||O.getPlotColor(X),ca=A(la(f(P.bordercolor,ga),I),e(P.borderalpha,
ba)),ea=O.parseColorMix(P.code,ia),V=O.parseAlphaList(P.alpha,ea.length),ea=e(P.borderAlpha,ba),na=V.split(F),na=qa.apply(Math,na),na=qa(Y&&ea||0,na),ea={x:Q.x,y:Q.y,width:0>Q.width?0:Q.width,height:0>Q.height?0:Q.height,r:0,"stroke-width":0,stroke:ca,fill:Z({FCcolor:{color:ga,ratio:L,alpha:V,angle:180}})},w.colorRangeElems[X]?(w.colorRangeElems[X].show(),w.colorRangeElems[X].animateWith(m,p,{x:Q.x,y:Q.y,width:0>Q.width?0:Q.width,height:0>Q.height?0:Q.height,r:0},r,k),w.colorRangeElems[X].attr({"stroke-width":0,
stroke:ca,fill:Z({FCcolor:{color:ga,ratio:L,alpha:V,angle:180}})})):w.colorRangeElems[X]=n.rect(ea,J).toBack(),w.colorRangeElems[X].shadow({apply:b,opacity:na/100}),za.push({"stroke-width":0,fill:Z({FCcolor:{color:N(f(ga,R),80)+F+da(f(ga,R),80),alpha:e(P.alpha,100),angle:K?90:0}})}),Ca.push({"stroke-width":0,fill:Z({FCcolor:{color:f(ga,R),alpha:e(P.alpha,100)}})});if(M&&0===M.length)for(X=0,aa=w.colorRangeElems.length;X<aa;X++)w.colorRangeElems[X].hide();ha={link:d,value:ua};ea={x:y,y:E,width:z,height:C,
"stroke-width":0,fill:Ia,ishot:!0};t?t.attr(ea):(t=l.canvasHotElement=n.rect(ea,Ea),La=!0);t.data("eventArgs",ha).data(ta,Fa).data("setRolloverAttr",za).data("setRolloutAttr",Ca);La&&(d&&t.click(Ga),t.hover(Ha(w.colorRangeElems),Ja(w.colorRangeElems)));K?c+=x-U/2:ja+=x-U/2;ha=[];ea={path:["M",pa,va,"L",sa,va,sa,ma,pa,ma,"Z"],stroke:A(I,ba),"stroke-width":Y,"stroke-linecap":"butt"};q?(q.animateWith(m,p,{path:["M",pa,va,"L",sa,va,sa,ma,pa,ma,"Z"]},r,k),q.attr({stroke:A(I,ba),"stroke-width":Y})):l.canvasBorderElement=
n.path(ea,J).shadow({apply:b}).toBack();for(X=1;X<eb;X+=1)K?(ha.push("M",c,ja,"L",c,ja+C),c+=x):(ha.push("M",c,ja,"L",c+z,ja),ja+=x);ea={path:ha,stroke:A(db,100),"stroke-width":U,"stroke-linecap":"butt"};v?(v.animateWith(m,p,{path:ha},r,k),v.attr({stroke:A(db,100),"stroke-width":U})):l.canvasElementPath=n.path(ea,J);g.gaugeStartX=y;g.gaugeEndX=u;g.gaugeStartY=E;g.gaugeEndY=B;g.gaugeCenterX=y+.5*z;g.gaugeCenterY=E+.5*C;g.gaugeRadius=.5*z;this.drawShade()},drawShade:function(){var a=this.config,c=this.components.data,
b=this.chart,d=b.config,g=d.canvasLeft,f=d.canvasTop,h=d.canvasHeight,k=d.canvasWidth,l=b.components.paper,x=b.graphics.datasetGroup,r=this.graphics.container,p,m=b.components.numberFormatter,q=e(this.chart.jsonData.chart.reverseaxis,b.isaxisreverse),w=b.isHorizontal,v=b.get(xa,fa),t=v.animType,y=v.animObj,u=v.dummyObj,v=v.duration,c=c[0],E=c.graphics,B=c&&c.config,z=this.graphics.dataLabelContainer,C=b.graphics.datalabelsGroup,I=b.config.dataLabelStyle,E=a.heightUsed,G=a.initAnimation,F;F=b.components.scale.getLimit().min;
p=b.components.canvas.config.gaugeFillColor;r||(r=this.graphics.container=l.group("shade",x));z||(z=this.graphics.dataLabelContainer=l.group("datalabel",C));m=m.getCleanValue(B.setValue);c.graphics||(c.graphics={});x=c.graphics.element;m=ya((m-F)/a.perLEDValueLength)*a.sizeGapSum-a.ledGap;F=Math.ceil(h-m);C=Math.ceil(k-m);q&&!w?(q={x:g,y:v&&G?f:f+m,width:k,height:v&&G?h:F,r:0,"stroke-width":0,fill:A(p,50)},x?(x.animateWith(u,y,{x:g,y:f+m,width:k,height:F,r:0},v,t),x.attr({"stroke-width":0,fill:A(p,
50)})):(x=c.graphics.element=l.rect(q,r),x.animateWith(u,y,{y:f+m,height:F},v,t))):q||w?!q&&w?(q={x:v&&G?g:g+m,y:f,width:v&&G?k:C,height:h,r:0,"stroke-width":0,fill:A(p,50)},x?(x.animateWith(u,y,{x:g+m,y:f,width:C,height:h,r:0},v,t),x.attr({"stroke-width":0,fill:A(p,50)})):(x=c.graphics.element=l.rect(q,r),x.animateWith(u,y,{x:g+m,width:C},v,t))):q&&w&&(q={x:g,y:f,width:v&&G?k:C,height:h,r:0,"stroke-width":0,fill:A(p,50)},x?(x.animateWith(u,y,{x:g,y:f,width:C,height:h,r:0},v,t),x.attr({"stroke-width":0,
fill:A(p,50)})):(x=c.graphics.element=l.rect(q,r),x.animateWith(u,y,{width:C},v,t))):(q={x:g,y:f,width:k,height:v&&G?h:F,r:0,"stroke-width":0,fill:A(p,50)},x?(x.animateWith(u,y,{x:g,y:f,width:k,height:F,r:0},v,t),x.attr({"stroke-width":0,fill:A(p,50)})):(x=c.graphics.element=l.rect(q,r),x.animateWith(u,y,{height:F},v,t)));f=B.setTooltext===n||void 0===B.setTooltext?B.toolTipValue:B.setTooltext;a.showTooltip?b.components.canvas.graphics.canvasHotElement.tooltip(f):b.components.canvas.graphics.canvasHotElement.tooltip(!1);
f=parseInt(I.lineHeight,10);f=f>E?d.height-d.marginBottom-E+f/2:d.height-d.marginBottom-f/2;f-=d.borderWidth;f-=(b._manageActionBarSpace&&b._manageActionBarSpace(.225*B.availableHeight)||{}).bottom;E=c.graphics;B.displayValue!==n&&void 0!==B.displayValue&&a.showValue?(q={text:B.displayValue,"text-anchor":H,x:k/2+g,y:f,"vertical-align":H,fill:I.color,direction:B.textDirection,"text-bound":[I.backgroundColor,I.borderColor,I.borderThickness,I.borderPadding,I.borderRadius,I.borderDash]},E.label?(E.label.animateWith(u,
y,{x:k/2+g,y:f},v,t),E.label.attr({text:B.displayValue,"text-anchor":H,"vertical-align":H,fill:I.color,direction:B.textDirection,"text-bound":[I.backgroundColor,I.borderColor,I.borderThickness,I.borderPadding,I.borderRadius,I.borderDash]})):E.label=l.text(q,z),a=E.label.getBBox(),0>a.x+d.marginLeft&&(a=a.width-d.marginLeft,d.width<a&&(a=d.width-d.marginLeft),q={x:a/2},E.label.animateWith(u,y,q,v,t))):E.label&&(E.label=E.label.remove())}},"bullet"]);m("hbullet",{friendlyName:"Horizontal Bullet Gauge",
creditLabel:!1,defaultSeriesType:"hbullet",gaugeType:1,standaloneInit:!0,defaultCaptionPadding:5,rendererId:"hbullet",isHorizontal:!0,isAxisOpposite:!0,rtManageSpace:!0,_RTmanageSpace:function(){var a=this.config,c=this.components,b=c.scale,c=c.dataset[0]._manageSpaceHorizontal(.7*a.oriCanvasWidth);this._allocateSpace({right:c.right-a.labelSpace.right});b.setAxisDimention({axisLength:a.canvasWidth});a.labelSpace=c},_spaceManager:function(){var a,c=this.config,b=this.components,d=b.dataset[0],g=b.scale,
f=this.jsonData.chart,h=e(f.showborder,this.is3D?0:1),k,l=c.minChartWidth,n=c.minChartHeight,f=c.borderWidth=h?e(f.borderthickness,1):0;c.canvasWidth-2*f<l&&(k=(c.canvasWidth-l)/2);c.canvasHeight-2*f<n&&(a=(c.canvasHeight-n)/2);this._allocateSpace({top:a||f,bottom:a||f,left:k||f,right:k||f});a=.7*c.canvasWidth;this._allocateSpace(g.placeAxis(c.availableHeight));this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*c.availableHeight)||{});c.oriCanvasWidth=c.canvasWidth;c.labelSpace=
d._manageSpaceHorizontal(a);d._manageSpace&&this._allocateSpace(c.labelSpace);this._manageChartMenuBar(.225*c.canvasHeight);c.oriCanvasWidth-=qa(b.subCaption.config.width||0,b.caption.config.width||0)},_manageCaptionSpacing:function(){var a=this.config,c=this.components,b=c.caption,d=c.subCaption,c=b.config,g=d.config,b=b.components,d=d.components,h=this.jsonData.chart,m=this.linkedItems.smartLabel,k=Na(h.caption),l=Na(h.subcaption),h=e(h.captionpadding,2),x=a.height,r=0,p=0,q=0,t=.7*a.width,w={},
v,A;3<.7*x&&(c.captionPadding=g.captionPadding=h,k!==n&&(A=c.style,r=c.captionLineHeight=jb(parseFloat(f(A.fontHeight,A.lineHeight),10),12)),l!==n&&(v=g.style,p=jb(parseInt(f(v.lineHeight,v.fontHeight),10),12)),0<r||0<p)&&(m.useEllipsesOnOverflow(a.useEllipsesWhenOverflow),m.setStyle(A),a=m.getSmartText(k,t,x),0<a.width&&(a.width+=2,q=a.height),m.setStyle(v),v=m.getSmartText(l,t,x-q),0<v.width&&(v.width+=2),c.captionSubCaptionGap=a.height+0+.2*p,b.text=a.text,c.height=a.height,c.width=a.width,c.tooltext&&
(b.originalText=a.tooltext),d.text=v.text,g.height=v.height,g.width=v.width,g.tooltext&&(b.originalText=v.tooltext),v=Math.max(a.width,v.width),0<v&&(v+=h),c.maxCaptionWidth=g.maxCaptionWidth=v,c.isOnLeft?w.left=v:w.right=v);c.align=c.isOnLeft?g.align=nb:g.align=Ya;return w},_manageCaptionPosition:function(){var a=this.config,c=this.components,b=c.caption.config,c=c.subCaption.config,d=b.captionPosition,e=qa(b.width,c.width),f=a.borderWidth||0,h=b.captionSubCaptionGap;switch(d){case H:b.y=.5*(a.canvasTop+
a.canvasHeight);break;case La:b.y=a.canvasBottom-(b.height+c.height);break;default:b.y=a.canvasTop}c.y=b.y+h;b.x=b.isOnLeft?c.x=a.marginLeft+e+f:c.x=a.width-a.marginRight-e-f},_fetchCaptionPos:function(){return this.components.caption.config.align===nb?0:-1}},m.vbullet);m("thermometer",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Horizontal Linear Gauge",creditLabel:!1,defaultDatasetType:"thermometer",defaultPaletteOptions:D(ka({},h.defaultGaugePaletteOptions),{gaugeBorderColor:["545454","60634E",
"415D6F","845001","68001B"],gaugeFillColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),standaloneInit:!0,isHorizontal:!1,isAxisOpposite:!0,hasLegend:!1,hasCanvas:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,isRealTime:!0,applicableDSList:{thermometer:!0},_getData:function(){var a=this.components.dataset;if(a&&a[0])return a[0].config.value},_parseSpecialConfig:function(){var a=this.config,c=this.jsonData.chart,b=this.components,
d=b.numberFormatter,b=b.colorManager;a.use3DLighting=e(c.use3dlighting,1);a.thmOriginX=e(c.thmoriginx,c.gaugeoriginx);a.thmOriginY=e(c.thmoriginy,c.gaugeoriginy);a.thmBulbRadius=e(d.getCleanValue(c.thmbulbradius,!0));a.thmHeight=e(d.getCleanValue(e(c.thmheight,c.gaugeheight),!0));a.origW=e(c.origw);a.origH=e(c.origh);a.xDefined=va(a.thmOriginX);a.yDefined=va(a.thmOriginY);a.rDefined=va(a.thmBulbRadius);a.hDefined=va(a.thmHeight);a.gaugeFillColor=f(c.gaugefillcolor,c.thmfillcolor,b.getColor(ub));a.gaugeFillAlpha=
e(c.gaugefillalpha,c.thmfillalpha,Da);a.showGaugeBorder=e(c.showgaugeborder,1);d=a.showGaugeBorder?e(c.gaugeborderalpha,40):0;a.gaugeBorderColor=A(f(c.gaugebordercolor,b.getColor(rb)),d);a.gaugeBorderThickness=e(c.gaugeborderthickness,1);a.gaugeContainerColor=f(c.thmglasscolor,da(a.gaugeFillColor,30))},_createDatasets:function(){var a=this.components,c;c=this.defaultDatasetType;var b={data:[{value:this.jsonData.value}]},a=a.dataset||(a.dataset=[]);c&&(c=FusionCharts.get("component",["dataset",c]))&&
(a[0]?(a[0].setValue(b&&b.data&&b.data[0]),a[0].configure()):(c=new c,a.push(c),c.chart=this,c.init(b)))}},m.axisgaugebase);m("cylinder",{defaultDatasetType:"cylinder",applicableDSList:{cylinder:!0},defaultPaletteOptions:D(ka({},h.defaultGaugePaletteOptions),{gaugeBorderColor:["545454","60634E","415D6F","845001","68001B"],gaugeFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),glasscolor:Aa,_parseSpecialConfig:function(){var a=this.config,
c=this.jsonData.chart,b=this.components,d=b.numberFormatter,b=b.colorManager;a.use3DLighting=e(c.use3dlighting,1);a.gaugeOriginX=e(c.thmoriginx,c.cyloriginx,c.gaugeoriginx);a.gaugeOriginY=e(c.thmoriginy,c.cyloriginy,c.gaugeoriginy);a.gaugeRadius=e(d.getCleanValue(e(c.thmbulbradius,c.cylradius,c.gaugeradius),!0));a.gaugeHeight=e(d.getCleanValue(e(c.thmheight,c.cylheight,c.gaugeheight),!0));a.origW=e(c.origw);a.origH=e(c.origh);a.xDefined=va(a.gaugeOriginX);a.yDefined=va(a.gaugeOriginY);a.rDefined=
va(a.gaugeRadius);a.hDefined=va(a.gaugeHeight);a.gaugeFillColor=f(c.gaugefillcolor,c.cylfillcolor,b.getColor(ub));a.gaugeFillAlpha=e(c.gaugefillalpha,c.cylfillalpha,Da);a.gaugeYScale=e(c.cylyscale,c.gaugeyscale,30);if(50<a.gaugeYScale||0>a.gaugeYScale)a.gaugeYScale=30;a.gaugeYScale/=100;a.showGaugeBorder=e(c.showgaugeborder,1);d=a.showGaugeBorder?e(c.gaugeborderalpha,40):0;a.gaugeBorderColor=A(f(c.gaugebordercolor,b.getColor(rb)),d);a.gaugeBorderThickness=e(c.gaugeborderthickness,1);a.gaugeContainerColor=
f(c.cylglasscolor,da(a.gaugeFillColor,30))}},m.thermometer);FusionCharts.register("component",["dataset","thermometer",{init:function(a){this.configure();this.setValue(a&&a.data&&a.data[0])},setValue:function(a,c){var b=this.config,d=this.chart,e=d.jsonData.chart,d=d.components.numberFormatter,h=a.value;b.value=h=d.getCleanValue(h);null!==h?(d=b.formattedValue=d.dataLabels(b.value),b.displayValue=b.showValue?a.label||q(d,n):n,b.toolText=b.showTooltip?void 0!==e.plottooltext?gb(f(a.tooltext,e.plottooltext),
[1,2],{formattedValue:d},{},e):f(a.tooltext,null===d?n:d):n):(b.displayValue=n,b.toolText=n,b.formattedValue=null);c&&this.draw()},configure:function(){var a=this.chart,c=a.jsonData,b=c.chart,d=this.config||(this.config={}),g=a.components.colorManager,h=a.config,n,k=e(b.showhovereffect),l;d.showValue=e(b.showvalue,b.showvalues,1);d.showTooltip=e(b.showtooltip,1);d.valuePadding=e(b.valuepadding,2);d.tooltipSepChar=f(b.tooltipsepchar,F);d.pointerOnOpp=e(b.pointerontop,0);d.axisPosition=e(b.ticksbelowgauge,
b.ticksbelowgraph,this.ticksbelowgauge,1)?3:1;d.valueAbovePointer=e(b.valueabovepointer,1);d.labelStyle=h.dataLabelStyle;l=d.gaugeFillColor=f(b.gaugefillcolor,b.thmfillcolor,b.cylfillcolor,g.getColor(ub));h=d.gaugeFillAlpha=e(b.gaugefillalpha,b.cylfillalpha,b.thmfillalpha,Da);d.showGaugeBorder=e(b.showgaugeborder,1);n=d.showGaugeBorder?e(b.gaugeborderalpha,40):0;d.gaugeBorderColor=A(f(b.gaugebordercolor,g.getColor(rb)),n);d.gaugeBorderThickness=e(b.gaugeborderthickness,1);d.gaugeContainerColor=f(b.thmglasscolor,
b.cylglasscolor,a.glasscolor,da(l,30));0!==k&&(k||b.plotfillhovercolor||b.plotfillhoveralpha||0===b.plotfillhoveralpha)&&(d.showHoverEffect=!0,k=f(b.plotfillhovercolor,b.cylfillhovercolor,b.thmfillhovercolor,"{dark-10}"),d.plotFillHoverAlpha=e(b.plotfillhoveralpha,b.cylfillhoveralpha,b.thmfillhoveralpha,h),d.plotFillHoverColor=/\{/.test(k)?g.parseColorMix(l,k)[0]:k);this.setValue(c);a._parseSpecialConfig&&a._parseSpecialConfig()},_getLabelSpace:function(){var a=this.config,c=this.chart,b=c.get("linkedItems",
"smartLabel");b.useEllipsesOnOverflow(c.config.useEllipsesWhenOverflow);b.setStyle(a.labelStyle);c=b.getOriSize(a.displayValue!==n?a.displayValue:"dummy");return c.height?c.height+a.valuePadding:0},_manageSpace:function(){var a=this.chart.config,c=a.canvasWidth,b=a.canvasHeight,d=a.canvasLeft,g=a.canvasRight,f=a.canvasTop,h=a.xDefined,k=a.yDefined,l=a.rDefined,n=a.hDefined,r=a.thmOriginX,p=a.thmOriginY,m=a.thmBulbRadius,q=a.thmHeight,w=ab(a.origW,a.origH,a.width,a.height),v=0,t=0,y=0,u=0,E;E=this._getLabelSpace();
b-=E;t+=E;m=l?m*w:Math.min(c/2,.13*e(q,b));a.effectiveR=m;l=.643*m;a=2*l;v+=l;f+=l;b-=l;h?d=r*w-l-d:(d=(g-d)/2-l,d+a>c&&(d=c-a));u+=c-d-a;k&&(p*=w);n?(q*=w,k?v+=p-q-f:p=f+q):k||(q=Math.max(b-1.766*m,3*m),p=f+q);return{top:v,bottom:t+(f+b-p),left:y+d,right:u}},draw:function(){var a=this.config,c=this.chart,b=c.graphics.datalabelsGroup,d=c.get("graphics","trackerGroup"),g=this.graphics||(this.graphics={}),f=c.get("components","scale"),h=c.get("graphics","datasetGroup"),k=c.get(xa),l=c.get("components",
"paper"),n=k.canvasLeft,r=k.canvasTop,p=k.canvasHeight,m=k.effectiveR||10,q=.643*m,w=k.use3DLighting,v=n+q,t=r-q,y=t+q,u=y+p,E=u+.766*m,B=e(a.value,f.getLimit().min),D=f.getPixel(B),f=.33*q,B=t+f,C=.9*q,I=q-f,G=m+C-q,K=v-q,R=v+q,Ka=v-I,I=v+I,T=v-C,ia=v+C,L=parseInt(v-.6*q,10),q=v+q/2,M=E-Math.abs(Math.sqrt(G*G-C*C)),O=g.container,ba=g.fluid,Y=g.topLightGlow,P=g.topLight,X=g.label,aa=g.dataLabelContainer,X=g.canvasBorderElement,C=g.bulbBorderLight,Q=g.bulbTopLight,ga=g.bulbCenterLight,ca=g.trackerContainer,
ea=g.cylLeftLight,V=g.cylRightLight,na=g.cylLeftLight1,la=g.cylRightLight1,ca=g.hotElement,ka=N(a.gaugeFillColor,w?70:80),U=a.gaugeFillAlpha,ja=a.gaugeContainerColor,ma=N(ja,80),ja=da(ja,80),qa=a.gaugeBorderThickness,oa=a.gaugeBorderColor,ra=a.showHoverEffect,pa=a.plotFillHoverAlpha,va=a.plotFillHoverColor,ha=c.get(xa,fa),sa=ha.animType,Ba=ha.animObj,ua=ha.dummyObj,Aa=ha.duration,ta=ha&&ha.duration,ya=k.canvasRight,Da=k.canvasBottom,Fa=k.canvasWidth,za=c.config.dataLabelStyle,ha=function(){c._animCallBack&&
c._animCallBack()},Ca=function(a,b,c,d){"attr"===b?a.attr(c):a.animateWith(ua,Ba,c,Aa,sa,d);return a},Ea,Ma=a.fluidAttr;Ma||(Ma=a.fluidAttr={});ra&&(Ma.hover={fill:A(N(va,w?70:80),pa)});Ma.out={fill:A(ka,U)};U=["M",Ka,t,"A",f,f,0,0,0,K,B,"L",K,u,"A",m,m,0,1,0,R,u,"L",R,B,"A",f,f,0,0,0,I,t,"Z"];k.gaugeStartX=n;k.gaugeEndX=ya;k.gaugeStartY=r;k.gaugeEndY=Da;k.gaugeCenterX=n+.5*Fa;k.gaugeCenterY=r+.5*p;k.gaugeRadius=.5*Fa;k={value:a.value,displayValue:a.displayValue,toolText:a.toolText};O?ta?(b=d="animate",
Ea=ha):b=d="attr":(O=g.container=l.group("thermometer",h),X=g.canvasBorderElement=l.path(O),ba=g.fluid=l.path(O).attr({"stroke-width":0}),P=g.topLight=l.path(O).attr({"stroke-width":1}),Y=g.topLightGlow=l.path(O).attr({"stroke-width":0}),C=g.bulbBorderLight=l.path(O).attr({"stroke-width":0,stroke:"#00FF00"}),Q=g.bulbTopLight=l.path(O).attr({"stroke-width":0}),ga=g.bulbCenterLight=l.path(O).attr({"stroke-width":0}),ea=g.cylLeftLight=l.path(O).attr({"stroke-width":0}),V=g.cylRightLight=l.path(O).attr({"stroke-width":0}),
na=g.cylLeftLight1=l.path(O).attr({"stroke-width":0}),la=g.cylRightLight1=l.path(O).attr({"stroke-width":0}),ca=g.trackerContainer=l.group("col-hot",d),ca=g.hotElement=l.path({stroke:Ia,fill:Ia,ishot:!0},ca).click(function(a){wa.call(this,c,a)}).hover(function(b){a.showHoverEffect&&g.fluid&&g.fluid.attr(Ma.hover);wa.call(this,c,b,"DataPlotRollOver")},function(b){a.showHoverEffect&&g.fluid&&g.fluid.attr(Ma.out);wa.call(this,c,b,"DataPlotRollOut")}),aa=g.dataLabelContainer=l.group("datalabel",b),ta?
(d="animate",Ea=ha,ba.attr({path:["M",T,M,"A",G,G,0,1,0,ia,M,"L",ia,M,T,M,"Z"]})):d="attr",b="attr");Ca(ba,d,{path:["M",T,M,"A",G,G,0,1,0,ia,M,"L",ia,D,T,D,"Z"]},Ea).attr(Ma.out);Ca(X,b,{path:U}).attr({"stroke-width":qa,stroke:oa});Ca(P,b,{path:["M",T,y,"L",ia,y]}).attr({stroke:A(ka,40)});Ca(ca,b,{path:U}).tooltip(a.toolText);ca.data("eventArgs",k);a.showValue?(X=g.label)?Ca(X.show(),b,{x:v,y:E+m+(a.valuePadding||0),fill:za.color,"text-bound":[za.backgroundColor,za.borderColor,za.borderThickness,
za.borderPadding,za.borderRadius,za.borderDash]}).attr({text:a.displayValue}):(X=g.label=l.text({text:a.displayValue,x:v,y:E+m+(a.valuePadding||0),"text-anchor":H,"vertical-align":z,fill:za.color,"text-bound":[za.backgroundColor,za.borderColor,za.borderThickness,za.borderPadding,za.borderRadius,za.borderDash]},aa),X.show()):(X=g.label)&&X.hide();w?(Ca(Y.show(),b,{path:["M",T,y,"L",ia,y,ia,B,T,B,"Z"]}).attr({fill:Z({FCcolor:{color:ka+F+ka,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})}),
l=["M",K,u,"A",m,m,0,0,1,R,u,"A",m,m,0,0,0,K,u,"A",m,m,0,1,0,R,u,"Z"],Ca(C.show(),b,{path:l}).attr({fill:Z({FCcolor:{cx:.5,cy:.5,r:"50%",color:ma+F+ja,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),Ca(Q.show(),b,{path:l}).attr({fill:Z({FCcolor:{cx:.3,cy:.1,r:"100%",color:ja+F+ma,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),Ca(ga.show(),b,{path:l}).attr({fill:Z({FCcolor:{cx:.25,cy:.7,r:"100%",color:ja+F+ma,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),Ca(ea.show(),b,{path:["M",v,t,"L",Ka,
t,"A",f,f,0,0,0,K,B,"L",K,u,v,u,"Z"]}).attr({fill:Z({FCcolor:{color:ja+F+ma,alpha:"50,0",ratio:"0,80",angle:0}})}),Ca(V.show(),b,{path:["M",K,t,"L",I,t,"A",f,f,0,0,1,R,B,"L",R,u,K,u,"Z"]}).attr({fill:Z({FCcolor:{color:ja+F+ma+F+ma,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),Ca(na.show(),b,{path:["M",L,B,"L",K,B,K,u,L,u,"Z"]}).attr({fill:Z({FCcolor:{color:ja+F+ma,alpha:"60,0",ratio:"0,100",angle:180}})}),Ca(la.show(),b,{path:["M",L-.01,B,"L",q,B,q,u,L-.01,u,"Z"]}).attr({fill:Z({FCcolor:{color:ja+
F+ma,alpha:"60,0",ratio:"0,100",angle:0}})})):(Y.hide(),C.hide(),Q.hide(),ga.hide(),ea.hide(),V.hide(),na.hide(),la.hide());Ea||ha()},getDataLimits:function(){var a=this.config,c,b;b=c=a.value;a.maxValue=b;a.minValue=c;return{forceMin:!0,forceMax:!0,max:b,min:c}},updateData:function(a,c,b){c=this.config;var d=c.maxValue,e=c.prevMin,f=c.value,h=this.chart,k=this.groupManager||this,l=h.components.scale;this.setValue(a.data[0]);c.maxValue=f;c.minValue=f;if(c.maxValue!==d||c.minValue!==e)this.maxminFlag=
!0;b&&(h._setAxisLimits(),l.draw(),k.draw())},addData:function(){},removeData:function(){}}]);FusionCharts.register("component",["dataset","cylinder",{_manageSpace:function(){var a=this.chart.config,c=a.canvasWidth,b=a.canvasHeight,d=a.canvasLeft,e=a.canvasTop,f=a.canvasRight,h=a.xDefined,k=a.yDefined,l=a.rDefined,n=a.hDefined,r=a.gaugeOriginX,p=a.gaugeOriginY,m=a.gaugeRadius,q=a.gaugeHeight,w=a.gaugeYScale,v=ab(a.origW,a.origH,a.width,a.height),t=0,y=0,u=0,E=0,B;B=this._getLabelSpace();b-=B;y+=B;
m=l?m*v:qa(ma(c,1.2*b)/2,5);a.effectiveR=m;a=2*m;w*=m;t+=w;e+=w;b-=2*w;h?d=r*v-m-d:(d=(f-d)/2-m,d+a>c&&(d=c-a));E+=c-d-a;k&&(p*=v);n?(q*=v,k?t+=p-q-e:p=e+q):k||(p=e+b);y=y+w+(e+b-p);return{top:t,bottom:y+8,left:u+d,right:E}},draw:function(){var a=this.config,c=this.chart,b=this.graphics||(this.graphics={}),d=c.graphics,g=d.datalabelsGroup,f=d.trackerGroup,h=d.datasetGroup,d=b.fluidTop,k=b.fluid,l=b.cylinterTop,n=b.frontLight1,r=b.frontLight,p=b.front,m=b.back,q=b.btnBorderLight,w=b.btnBorder1,v=b.btnBorder,
t=b.label,y=b.dataLabelContainer,t=b.trackerContainer,t=b.hotElement,u=c.components,E=u.scale,B=c.config,u=u.paper,K=B.canvasLeft,C=B.canvasTop,I=B.canvasHeight,G=B.effectiveR||40,D=e(a.value,E.getLimit().min),R=E.getPixel(D),E=K+G,D=c.config.dataLabelStyle,T=a.gaugeFillColor,ba=N(T,70),ia=da(T,70),L=N(ba,90),M=B.gaugeFillAlpha,O=a.gaugeContainerColor,T=N(O,80),aa=N(O,90),Y=da(O,80),P=b.container,O=G*B.gaugeYScale,X=G-1.5,V=C+I,Q=E-G,ga=E+G,ca=Q+1.5,ea=ga-1.5,na=Q-2,ma=ga+2,ka=G+2,la=O+2,U=V+4,ja=
U+.001,ha=.85*G,oa=E-ha,ra=E+ha,ha=Math.sqrt((1-ha*ha/(G*G))*O*O),pa=C+ha,va=V+ha,ha=C-1,sa=B.use3DLighting,Ba=a.showHoverEffect,ua=a.plotFillHoverAlpha,Aa=a.plotFillHoverColor,ta=c.get(xa,fa),ya=ta.animType,Da=ta.animObj,Fa=ta.dummyObj,Ga=ta.duration,Ha=ta&&ta.duration,ta=function(){c._animCallBack&&c._animCallBack()},za=function(a,b,c,d){"attr"===b?a.attr(c):a.animateWith(Fa,Da,c,Ga,ya,d);return a},Ca,Ea=a.fluidAttr,Ma=B.canvasRight,La=B.canvasBottom,Ja=B.canvasWidth,Na=A(T,50);B.gaugeStartX=K;
B.gaugeEndX=Ma;B.gaugeStartY=C;B.gaugeEndY=La;B.gaugeCenterX=K+.5*Ja;B.gaugeCenterY=C+.5*I;B.gaugeRadius=.5*Ja;Ea||(Ea=a.fluidAttr={});B={value:a.value,displayValue:a.displayValue,toolText:a.toolText};P?Ha?(g=f="animate",Ca=ta):g=f="attr":(P=b.container=u.group("thermometer",h),v=b.btnBorder=u.path(P).attr({"stroke-width":4}),w=b.btnBorder1=u.path(P).attr({"stroke-width":4}),q=b.btnBorderLight=u.path(P).attr({"stroke-width":0}),m=b.back=u.path(P).attr({"stroke-width":1}),k=b.fluid=u.path(P).attr({"stroke-width":0}),
d=b.fluidTop=u.path(P).attr({"stroke-width":2}),p=b.front=u.path(P).attr({"stroke-width":1}),r=b.frontLight=u.path(P).attr({"stroke-width":0}),n=b.frontLight1=u.path(P).attr({"stroke-width":0}),l=b.cylinterTop=u.path(P).attr({"stroke-width":2}),t=b.trackerContainer=u.group("col-hot",f),t=b.hotElement=u.path({stroke:Ia,fill:Ia,ishot:!0},t).click(function(a){wa.call(this,c,a)}).hover(function(d){a.showHoverEffect&&(b.fluid&&b.fluid.attr(Ea.bodyHover),b.fluidTop&&b.fluidTop.attr(Ea.topHover));wa.call(this,
c,d,"DataPlotRollOver")},function(d){a.showHoverEffect&&(b.fluid&&b.fluid.attr(Ea.bodyOut),b.fluidTop&&b.fluidTop.attr(Ea.topOut));wa.call(this,c,d,"DataPlotRollOut")}),y=b.dataLabelContainer=u.group("datalabel",g),Ha?(f="animate",Ca=ta,k.attr({path:["M",Q,V,"A",G,qa(O,1),0,0,0,ga,V,"L",ga,V,"A",G,qa(O,1),0,0,1,Q,V,"Z"]}),d.attr({path:["M",ca,V,"A",X,O,0,0,0,ea,V,"L",ea,V,"A",X,O,0,0,0,ca,V,"Z"]})):f="attr",g="attr");sa?(h=Y+F+T+F+Y+F+T+F+aa+F+aa+F+T+F+Y,K=Z({FCcolor:{cx:.5,cy:0,r:"100%",color:ia+
F+ba,alpha:M+F+M,ratio:"0,100",radialGradient:!0}}),aa=Z({FCcolor:{cx:.5,cy:.7,r:"100%",color:ia+F+ba,alpha:M+F+M,ratio:"0,100",radialGradient:!0}}),L=A(ia,M),ia=Y+F+T+F+Y+F+Y+F+T+F+Y+F+T+F+Y,r.show().attr({fill:Z({FCcolor:{color:ia,alpha:"40,0",ratio:"0,100",angle:0}})}),za(r,g,{path:["M",Q,V,"A",G,O,1,0,0,oa,va,"L",oa,pa,"A",G,O,0,0,1,Q,C,"Z"]}),n.show().attr({fill:Z({FCcolor:{color:ia,alpha:"40,0",ratio:"0,100",angle:180}})}),za(n,g,{path:["M",ra,va,"A",G,O,0,0,0,ga,V,"L",ga,C,"A",G,O,1,0,0,ra,
pa,"Z"]})):(h=Y+F+T+F+T+F+T+F+T+F+T+F+T+F+Y,aa=K=A(ba,M),L=A(L),ia=T+F+T+F+T+F+T+F+T+F+T+F+T+F+T,r.hide(),n.hide());Ea.bodyOut={fill:K};Ea.topOut={stroke:L,fill:aa};Ba&&(n=N(Aa,70),r=da(Aa,70),oa=N(n,90),sa?(Ea.bodyHover={fill:Z({FCcolor:{cx:.5,cy:0,r:"100%",color:r+F+n,alpha:ua+F+ua,ratio:"0,100",radialGradient:!0}})},Ea.topHover={stroke:A(r,ua),fill:Z({FCcolor:{cx:.5,cy:.7,r:"100%",color:r+F+n,alpha:ua+F+ua,ratio:"0,100",radialGradient:!0}})}):(Ea.bodyHover={fill:A(n,ua)},Ea.topHover={stroke:A(oa),
fill:A(n,ua)}));k.attr(Ea.bodyOut);d.attr(Ea.topOut);za(k,f,{path:["M",Q,V,"A",G,qa(O,1),0,0,0,ga,V,"L",ga,R,"A",G,qa(O,1),0,0,1,Q,R,"Z"]},Ca);za(d,f,{path:["M",ca,R,"A",X,O,0,0,0,ea,R,"L",ea,R,"A",X,O,0,0,0,ca,R,"Z"]});v.attr({stroke:A(T,80)});za(v,g,{path:["M",na,U,"A",ka,la,0,0,0,ma,U,"L",ma,ja,"A",ka,la,0,0,0,na,ja,"Z"]});w.attr({stroke:Na});za(w,g,{path:["M",Q,U,"A",G,O,0,0,0,ga,U,"L",ga,ja,"A",G,O,0,0,0,Q,ja,"Z"]});q.attr({fill:Z({FCcolor:{color:Y+F+T+F+Y+F+Y+F+T+F+ba+F+T+F+Y,alpha:"50,50,50,50,50,70,50,50",
ratio:"0,15,0,12,0,15,43,15",angle:0}})});za(q,g,{path:["M",Q,V,"A",G,O,0,0,0,ga,V,"A",G,O,0,0,0,Q,V,"Z"]});m.attr({stroke:Na,fill:Z({FCcolor:{color:h,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})});za(m,g,{path:["M",Q,V,"A",G,O,0,0,0,ga,V,"L",ga,C,"A",G,O,0,0,0,Q,C,"Z"]});p.attr({stroke:Na,fill:Z({FCcolor:{color:ia,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",angle:0}})});za(p,g,{path:["M",Q,V,"A",G,O,0,0,0,ga,V,"L",ga,C,"A",G,O,0,0,1,Q,C,"Z"]});l.attr({stroke:A(T,
40)});za(l,g,{path:["M",Q,ha,"A",G,O,0,0,0,ga,ha,"L",ga,ha,"A",G,O,0,0,0,Q,ha,"Z"]});za(t,g,{path:["M",Q,V,Q,U+4,"A",G,O,0,0,0,ga,U+4,"L",ga,V,ga,C,"A",G,O,0,0,0,Q,C,"Z"]}).tooltip(a.toolText);t.data("eventArgs",B);a.showValue?(t=b.label)?(t.show().attr({text:a.displayValue}),za(t,g,{x:E,y:V+O+(a.valuePadding||0)+8,fill:D.color,"text-bound":[D.backgroundColor,D.borderColor,D.borderThickness,D.borderPadding,D.borderRadius,D.borderDash]})):(t=b.label=u.text({text:a.displayValue,x:E,y:V+O+(a.valuePadding||
0)+8,"text-anchor":H,"vertical-align":z,fill:D.color,"text-bound":[D.backgroundColor,D.borderColor,D.borderThickness,D.borderPadding,D.borderRadius,D.borderDash]},y),t.show()):(t=b.label)&&t.hide();Ca||ta()}},"thermometer"]);m("angulargauge",{friendlyName:"Angular Gauge",creditLabel:!1,defaultDatasetType:"angulargauge",standaloneInit:!0,isHorizontal:!0,isAxisOpposite:!1,isRealTime:!0,hasLegend:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,colorRange:!0,defaultPaletteOptions:D(ka({},h.defaultGaugePaletteOptions),
{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),rtParserModify:!0,applicableDSList:{angulargauge:!0},_spaceManager:function(){var a,c,b=this.config,d=this.components,
g=d.dataset[0],d=d.scale,f=g.chart.jsonData.chart,g=g.config,h=g.scaleFactor,k=0,l=0,m=g.pivotRadius,r=b.dataLabels.style.fontSize,k=b.dataLabels.style.lineHeight,p=b.displayValueCount,m=b.borderWidth,t=b.minChartWidth,A=b.minChartHeight;a=0;var w;b.canvasWidth-2*m<t&&(c=(b.canvasWidth-t)/2);b.canvasHeight-2*m<A&&(w=(b.canvasHeight-A)/2);this._allocateSpace({top:w||m,bottom:w||m,left:c||m,right:c||m});b.scaleFactor=b.autoScale?h=this._getScaleFactor(g.origW,g.origH,b.width,b.height):h=1;r=r.replace(/px/i,
n);k=k.replace(/px/i,n);w=/^\d+\%$/.test(g.gaugeinnerradius)?parseInt(g.gaugeinnerradius,10)/100:.7;a=m=e(q(f.pivotradius)*h,5);g.pivotRadius=a;m=Math.max(m,g.rearExtension*h);g.compositPivotRadius=m;k=p*k+2+a;g.valueBelowPivot||(l=k,k=0);g.gaugeOuterRadius=e(Math.abs(q(f.gaugeouterradius)*h));g.gaugeInnerRadius=e(Math.abs(q(f.gaugeinnerradius)*h),g.gaugeOuterRadius*w);a=.7*b.canvasWidth;c=.7*b.canvasHeight;a=d.placeAxis(ma(a,c));a=qa(a.left,a.right,a.top,a.bottom);c=.7*b.canvasHeight;this._manageChartMenuBar(c);
f=this._angularGaugeSpaceManager(g.gaugeStartAngle,g.gaugeEndAngle,b.canvasWidth,b.canvasHeight,g.gaugeOuterRadius,e(q(f.gaugeoriginx)*h-b.canvasLeft),e(q(f.gaugeoriginy)*h-b.canvasTop),Math.max(m,r),k,l);f.radius=e(f.radius,f.maxRadius);g.gaugeOriginX=f.centerX+b.canvasLeft;g.gaugeOriginY=f.centerY+b.canvasTop;g.gaugeOuterRadius||(g.gaugeOuterRadius=f.radius,g.gaugeOuterRadius-=a);void 0===g.gaugeInnerRadius&&(g.gaugeInnerRadius=g.gaugeOuterRadius*w);d.setAxisConfig({centerX:g.gaugeOriginX,centerY:g.gaugeOriginY,
radius:f.radius||g.gaugeOuterRadius,gaugeOuterRadius:g.gaugeOuterRadius,gaugeInnerRadius:g.gaugeInnerRadius,scaleFactor:h});f=d.getLimit();d.getPixel(f.min);d.getPixel(f.max);b.gaugeStartX=b.canvasLeft;b.gaugeStartY=b.canvasTop;b.gaugeEndX=b.canvasRight;b.gaugeEndY=b.canvasBottom;b.gaugeCenterX=g.gaugeOriginX;b.gaugeCenterY=g.gaugeOriginY;b.gaugeStartAngle=g.gaugeStartAngle/cb;b.gaugeEndAngle=g.gaugeEndAngle/cb},_createAxes:function(){var a=this.components,c=FusionCharts.register("component",["axis",
"polarGauge"]);a.scale=a=new c;a.chart=this;a.init()},_feedAxesRawData:function(){var a=this.components,c=a.colorManager,b=this.jsonData,d=b.chart,g=h.chartPaletteStr.chart2D,n=e(d.axisontop,d.axisonleft,void 0!==d.ticksbelowgauge?!d.ticksbelowgauge:void 0,this.isAxisOpposite),m=e(d.reverseaxis,this.isAxisReverse),c={outCanfontFamily:f(d.outcnvbasefont,d.basefont,"Verdana,sans"),outCanfontSize:ib(d.outcnvbasefontsize,d.basefontsize,10),outCancolor:f(d.outcnvbasefontcolor,d.basefontcolor,c.getColor(g.baseFontColor)).replace(/^#?([a-f0-9]+)/ig,
"#$1"),useEllipsesWhenOverflow:d.useellipseswhenoverflow,divLineColor:f(d.vdivlinecolor,c.getColor(g.divLineColor)),divLineAlpha:f(d.vdivlinealpha,c.getColor("divLineAlpha")),divLineThickness:e(d.vdivlinethickness,1),divLineIsDashed:!!e(d.vdivlinedashed,d.vdivlineisdashed,0),divLineDashLen:e(d.vdivlinedashlen,4),divLineDashGap:e(d.vdivlinedashgap,2),showAlternateGridColor:e(d.showalternatevgridcolor,0),alternateGridColor:f(d.alternatevgridcolor,c.getColor("altVGridColor")),alternateGridAlpha:f(d.alternatevgridalpha,
c.getColor("altVGridAlpha")),numDivLines:d.numvdivlines,labelFont:d.labelfont,labelFontSize:d.labelfontsize,labelFontColor:d.labelfontcolor,labelFontAlpha:d.labelalpha,labelFontBold:d.labelfontbold,labelFontItalic:d.labelfontitalic,axisName:d.xaxisname,axisMinValue:d.lowerlimit,axisMaxValue:d.upperlimit,setAdaptiveMin:d.setadaptivemin,adjustDiv:d.adjustvdiv,labelDisplay:d.labeldisplay,showLabels:d.showlabels,rotateLabels:d.rotatelabels,slantLabel:e(d.slantlabels,d.slantlabel),labelStep:e(d.labelstep,
d.xaxisvaluesstep),showAxisValues:e(d.showxaxisvalues,d.showxaxisvalue),showDivLineValues:e(d.showvdivlinevalues,d.showvdivlinevalues),showZeroPlane:d.showvzeroplane,zeroPlaneColor:d.vzeroplanecolor,zeroPlaneThickness:d.vzeroplanethickness,zeroPlaneAlpha:d.vzeroplanealpha,showZeroPlaneValue:d.showvzeroplanevalue,trendlineColor:d.trendlinecolor,trendlineToolText:d.trendlinetooltext,trendlineThickness:d.trendlinethickness,trendlineAlpha:d.trendlinealpha,showTrendlinesOnTop:d.showtrendlinesontop,showAxisLine:e(d.showxaxisline,
d.showaxislines,d.drawAxisLines,0),axisLineThickness:e(d.xaxislinethickness,d.axislinethickness,1),axisLineAlpha:e(d.xaxislinealpha,d.axislinealpha,100),axisLineColor:f(d.xaxislinecolor,d.axislinecolor,"#000000"),majorTMNumber:d.majortmnumber,majorTMColor:d.majortmcolor,majorTMAlpha:d.majortmalpha,majorTMHeight:d.majortmheight,tickValueStep:d.tickvaluestep,showTickMarks:d.showtickmarks,connectTickMarks:d.connecttickmarks,showTickValues:d.showtickvalues,majorTMThickness:d.majortmthickness,upperlimit:a.numberFormatter.getCleanValue(d.upperlimit),
lowerlimit:a.numberFormatter.getCleanValue(d.lowerlimit),reverseScale:d.reversescale,showLimits:d.showlimits,adjustTM:d.adjusttm,minorTMNumber:d.minortmnumber,minorTMColor:d.minortmcolor,minorTMAlpha:d.minortmalpha,minorTMHeight:e(d.minortmheight,d.minortmwidth),minorTMThickness:d.minortmthickness,tickMarkDistance:e(d.tickmarkdistance,d.tickmarkgap),tickValueDistance:e(d.tickvaluedistance,d.displayvaluedistance),placeTicksInside:d.placeticksinside,placeValuesInside:d.placevaluesinside,upperLimitDisplay:d.upperlimitdisplay,
lowerLimitDisplay:d.lowerlimitdisplay,ticksBelowGauge:d.ticksbelowgauge,ticksBelowGraph:d.ticksbelowgraph,trendValueDistance:d.trendvaluedistance};c.trendPoints=b.trendpoints;a=a.scale;a.setCommonConfigArr(c,!this.isHorizontal,m,n);a.configure()},_drawCanvas:function(){var a=this.components,c=a.dataset[0],b=c.config,c=c.graphics||(c.graphics={}),d=a.scale,g=a.colorManager,h=d.config.axisRange,n=a.colorRange,k=this.graphics.datasetGroup,l=this.graphics.datalabelsGroup,a=a.paper,m=b.gaugeOuterRadius,
r=b.gaugeInnerRadius,p=b.gaugeFillRatio,q=b.gaugeBorderColor,t=b.gaugeBorderThickness,w=b.gaugeBorderAlpha,v=b.gaugeFillMix,z=b.gaugeOriginX,y=b.gaugeOriginY,u=b.gaugeStartAngle,E=b.showShadow,B=h.min,h=h.max,D=n?n.getColorRangeArr(B,h):[],C=this.get(xa,fa),n=C.duration,B=C.dummyObj,I=C.animObj,C=C.animType,G=0,K=D.length,H,N,R,T,L,M,O=0;c.band=c.band||[];c.bandGroup||(c.bandGroup=a.group("bandGroup",k));for(c.pointGroup?c.pointGroup.animateWith(B,I,{transform:"t"+z+F+y},n,C):c.pointGroup=a.group("pointers",
l).translate(z,y);G<K;G+=1)H=D[G],k=d.getAngle(Math.min(H.maxvalue,h)),R=g.parseColorMix(H.code,v),T=g.parseAlphaList(H.alpha,R.length),L=g.parseRatioList(r/m*100+p,R.length),M=H.bordercolor,N=e(H.borderAlpha,w),M=M&&-1==M.indexOf("{")?A(M,N):g.parseColorMix(H.code,f(M,q))[0],M=A(M,N),H=T.split(F),H=qa.apply(Math,H),H=E?qa(t&&N||0,H):0,N=k,u>k&&(u+=k,k=u-k,u-=k),c.band[G]?c.band[G].animateWith(B,I,{ringpath:[z,y,m,r,u,k]},n,C):c.band[G]=a.ringpath(z,y,m,r,u,k,c.bandGroup),c.band[G].attr({fill:Z({FCcolor:{cx:z,
cy:y,r:m,gradientUnits:"userSpaceOnUse",color:R.join(),alpha:T,ratio:L,radialGradient:!0}}),"stroke-width":t,stroke:M}).shadow({apply:E,opacity:H/100}),u=N,O+=1;G=O;for(K=c.band.length;G<K;G+=1)c.band[G].attr({ringpath:[0,0,0,0,0]});d=b.isRadialGradient?{color:b.pivotFillColor,alpha:b.pivotFillAlpha,ratio:b.pivotFillRatio,radialGradient:!0,angle:b.pivotFillAngle,cx:.5,cy:.5,r:"50%"}:{color:b.pivotFillColor,alpha:b.pivotFillAlpha,ratio:b.pivotFillRatio,radialGradient:!1,angle:b.pivotFillAngle};c.pivot?
c.pivot.animateWith(B,I,{cx:z,cy:y,r:b.pivotRadius},n,C):(c.pivot=a.circle(l),c.pivot.attr({cx:z,cy:y,r:b.pivotRadius}));c.pivot.attr({fill:Z({FCcolor:d}),"stroke-width":b.pivotBorderThickness,stroke:b.pivotBorderColor}).shadow({apply:E})},_createDatasets:function(){var a=this.components,c=this.jsonData,b=c.pointers||c.dials,d;d=this.defaultDatasetType;b||(c.dials=b={dial:[{value:0}]});a=a.dataset||(a.dataset=[]);d&&(d=FusionCharts.get("component",["dataset",d]))&&(a[0]?(d=a[0].components.data&&a[0].components.data.length,
b=b.dial&&b.dial.length||0,d>b&&a[0].removeData(d-b),a[0].configure()):(d=new d,a.push(d),d.chart=this,d.init(b)))},_setCategories:function(){},_angularGaugeSpaceManager:function(a,c,b,d,e,f,h,k,l,n){var r=va(e),p=va(f),m=va(h),q=2*Math.PI,w=Math.PI,v=Math.PI/2,t=w+v,y;e={radius:e,centerX:f,centerY:h};var u,E,B,A,C=!1,z,G=a%q;0>G&&(G+=q);(k=k||0)&&k<b/2&&k<d/2&&(C=!0);l>d/2&&(l=d/2);n>d/2&&(n=d/2);E=Math.cos(a);A=Math.sin(a);B=Math.cos(c);z=Math.sin(c);u=Math.min(E,B,0);B=Math.max(E,B,0);E=Math.min(A,
z,0);A=Math.max(A,z,0);if(!r||!p||!m){c-=a;a=G+c;if(a>q||0>a)B=1;if(0<c){if(G<v&&a>v||a>q+v)A=1;if(G<w&&a>w||a>q+w)u=-1;if(G<t&&a>t||a>q+t)E=-1}else{if(G>v&&a<v||a<-t)A=1;if(G>w&&a<w||a<-w)u=-1;if(G>t&&a<t||a<-v)E=-1}p?r||(q=b-f,y=u?Math.min(q/B,-f/u):q/B):(p=b/(B-u),f=-p*u,y=p,C&&(b-f<k?(f=b-k,q=b-f,y=u?Math.min(q/B,-f/u):q/B):f<k&&(f=k,q=b-f,y=u?Math.min(q/B,-f/u):q/B)),e.centerX=f);m?r||(q=d-h,y=Math.min(y,E?Math.min(q/A,-h/E):q/A)):(p=d/(A-E),h=-p*E,C&&(d-h<k?(h=d-k,q=d-h,y=Math.min(y,E?Math.min(q/
A,-h/E):q/A)):h<k&&(h=k,q=d-h,y=Math.min(y,E?Math.min(q/A,-h/E):q/A))),d-h<l?(h=d-l,q=d-h,y=Math.min(y,E?Math.min(q/A,-h/E):q/A)):h<n&&(h=n,q=d-h,y=Math.min(y,E?Math.min(q/A,-h/E):q/A)),y=Math.min(y,p),e.centerY=h);e.maxRadius=y;0>=e.maxRadius&&(e.maxRadius=Math.min(b/2,d/2))}return e},_getScaleFactor:function(a,c,b,d){c=e(c,d);a=e(a,b);return c&&a?a/b==c/d?b/a:Math.min(b/a,d/c):1},_setData:m.hlineargauge,_getData:m.hlineargauge,_getDataForId:m.hlineargauge,_setDataForId:m.hlineargauge},m.axisgaugebase);
FusionCharts.register("component",["dataset","angulargauge",{type:"angulargauge",pIndex:2,customConfigFn:"_createDatasets",init:function(){this.components=this.components||{};this.idMap={};this.configure()},configure:function(){var a=this.chart,c=a.config,b=a.jsonData,d=b.chart,g=b.pointers||b.dials,m=g.pointer||g.dial,t=this.components.data||(this.components.data=[]),b=a.components,k=b.scale,b=b.colorManager,l=this.config||(this.config={}),x=e(d.gaugescaleangle,180),r=e(d.gaugestartangle),p=e(d.gaugeendangle),
z=va(r),D=oa?.001:.01,w=va(p),v,H,y,u;y=c.displayValueCount=0;for(u=m.length;y<u;y+=1)t[y]=t[y]||(t[y]={}),t[y].basewidth=m[y].basewidth,t[y].color=m[y].color,t[y].alpha=m[y].alpha,t[y].bgcolor=m[y].bgcolor,t[y].borderalpha=m[y].borderalpha,t[y].bordercolor=m[y].bordercolor,t[y].borderthickness=m[y].borderthickness,t[y].editmode=m[y].editmode,t[y].id=f(m[y].id,"dial"+y),t[y].link=m[y].link,t[y].radius=m[y].radius,t[y].rearextension=m[y].rearextension,t[y].showvalue=m[y].showvalue,t[y].tooltext=m[y].tooltext,
t[y].topwidth=m[y].topwidth,t[y].value=m[y].value,t[y].valuex=m[y].valuex,t[y].valuey=m[y].valuey,t[y].baseradius=m[y].baseradius,t[y].displayvalue=m[y].displayvalue,v=l.showValue=e(d.showvalue,d.showrealtimevalue,0),v=e(t[y].showvalue,v),H=e(q(t[y].valuey)),v&&!va(H)&&(c.displayValueCount+=1);if(360<x||-360>x)x=0<x?360:-360;if(360<p||-360>p)p%=360;if(360<r||-360>r)r%=360;if(z&&w){if(x=r-p,360<x||-360>x)x%=360,p=r-x}else if(z){if(p=r-x,360<p||-360>p)p%=360,r+=0<p?-360:360}else if(w){if(r=p+x,360<
r||-360>r)r%=360,p+=0<r?-360:360}else 360===x?(r=180,p=-180):-360===x?p=r=-180:(r=90+x/2,p=r-x);360===Math.abs(x)&&(x+=0<x?-D:D,p=r-x);p=360-p;r=360-r;if(360<r||360<p)r-=360,p-=360;l.gaugeStartAngle=r*=cb;l.gaugeEndAngle=p*cb;l.gaugeScaleAngle=x=-x*cb;l.upperLimit=e(d.upperlimit);l.lowerLimit=e(d.lowerlimit);k.setAxisConfig({startAngle:r,totalAngle:-x});m=e(d.scaleonresize,1);l.origW=e(d.origw,m?a.origRenderWidth:c.width);l.origH=e(d.origh,m?a.origRenderHeight:c.height);c.showtooltip=e(d.showtooltip,
1);c.autoScale=e(d.autoscale,1);l.rearExtension=e(g.rearextension,0);l.gaugeinnerradius=d.gaugeinnerradius;l.valueBelowPivot=e(d.valuebelowpivot,0);l.showShadow=e(d.showshadow,1);g=e(d.showgaugeborder,1);l.gaugeFillMix=h.getFirstDefinedValue(d.colorrangefillmix,d.gaugefillmix,a.colorRangeFillMix,"{light-10},{light-70},{dark-10}");l.gaugeFillRatio=h.getFirstDefinedValue(d.colorrangefillratio,d.gaugefillratio,a.colorRangeFillRatio,d.gaugefillratio);void 0===l.gaugeFillRatio?l.gaugeFillRatio=",6":l.gaugeFillRatio!==
n&&(l.gaugeFillRatio=F+l.gaugeFillRatio);l.gaugeBorderColor=f(d.gaugebordercolor,"{dark-20}");l.gaugeBorderThickness=g?e(d.gaugeborderthickness,1):0;l.gaugeBorderAlpha=e(d.gaugeborderalpha,100);a=b.parseColorMix(f(d.pivotfillcolor,d.pivotcolor,d.pivotbgcolor,b.getColor("pivotColor")),f(d.pivotfillmix,"{light-10},{light-30},{dark-20}"));l.pivotFillAlpha=b.parseAlphaList(f(d.pivotfillalpha,Da),a.length);l.pivotFillRatio=b.parseRatioList(f(d.pivotfillratio,vb),a.length);l.pivotFillColor=a.join();l.pivotFillAngle=
e(d.pivotfillangle,0);l.isRadialGradient="radial"==f(d.pivotfilltype,"radial").toLowerCase();l.showPivotBorder=e(d.showpivotborder,0);l.pivotBorderThickness=e(d.pivotborderthickness,1);l.pivotBorderColor=A(f(d.pivotbordercolor,b.getColor("pivotBorderColor")),1==l.showPivotBorder?f(d.pivotborderalpha,Da):vb);c.dataLabels=c.dataLabels||{};a=(a=pa(d.valuebordercolor,n))?A(a,e(d.valueborderalpha,d.valuealpha,100)):n;c=c.dataLabels.style={fontFamily:f(d.valuefont,c.style.inCanfontFamily),fontSize:f(d.valuefontsize,
parseInt(c.style.inCanfontSize,10))+"px",color:A(f(d.valuefontcolor,c.style.inCancolor),e(d.valuefontalpha,d.valuealpha,100)),fontWeight:e(d.valuefontbold)?"bold":"normal",fontStyle:e(d.valuefontitalic)?"italic":"normal",border:a||d.valuebgcolor?e(d.valueborderthickness,1)+"px solid":void 0,borderColor:a,borderThickness:e(d.valueborderthickness,1),borderPadding:e(d.valueborderpadding,2),borderRadius:e(d.valueborderradius,0),backgroundColor:d.valuebgcolor?A(d.valuebgcolor,e(d.valuebgalpha,d.valuealpha,
100)):n,borderDash:e(d.valueborderdashed,0)?fb(e(d.valueborderdashlen,4),e(d.valueborderdashgap,2),e(d.valueborderthickness,1)):n};hb(c)},draw:function(a){var c=this,b=c.chart,d=c.idMap,g=b.config,h=b.jsonData.chart,m=c.components.data,k=c.config,l=c.graphics,x=b.components,r=x.numberFormatter,p=x.paper,t=x.colorManager,z=Number(k.gaugeOriginX),w=Number(k.gaugeOriginY),v=k.gaugeStartAngle,F=k.gaugeEndAngle,y=k.showShadow,u=g.showtooltip,E=x.scale.config.axisRange,B=E.min,D=E.max,C=l.pointGroup,I=
l.dataLabelGroup,G=D-B,H=F-v,K=G/H,N,R=e(h.showhovereffect),T=c.showValue=e(h.showvalue,h.showrealtimevalue,0),L=0,M=g.dataLabels.style,O={fontFamily:M.fontFamily,fontSize:M.fontSize,lineHeight:M.lineHeight,fontWeight:M.fontWeight,fontStyle:M.fontStyle},V=g.scaleFactor,Y=e(parseInt(M.lineHeight,10),12),P=k.valueBelowPivot,X=b.get(xa,fa),da=X.duration,Q=X.dummyObj,ga=X.animObj,ca=X.animType,ea=0,aa=0,ha,ma,ka,U,ja,la,oa,qa,pa,sa,ua,ta=m&&m.length,Aa,ya,Da,Fa={pageX:0,pageY:0},Ha=Wa(v,F),Ga,Ja=function(a,
c){var d=m[this.pos],e=d.config||{};if(d.editMode){z=Number(k.gaugeOriginX);w=Number(k.gaugeOriginY);Ga=na(b.linkedItems.container);var f;f=[z,w];f=Za(c-f[1]-Ga.top,a-f[0]-Ga.left);g.rotationStartAngle=f;e.dragStartY=d.value;Da=b._getDataJSON()}},La=function(){var a=m[this.pos],c=b.chartInstance,d;if(a.editMode){(d=c&&c.jsVars)&&(d._rtLastUpdatedData=b._getDataJSON());ba.raiseEvent("RealTimeUpdateComplete",{data:"&value="+a.updatedValStr,updateObject:{values:[a.updatedValStr]},prevData:Da.values,
source:"editMode",url:null},c);try{ra.FC_ChartUpdated&&ra.FC_ChartUpdated(c.id)}catch(e){setTimeout(function(){throw e;},1)}}},za=function(a,b,d,e,f){a=m[this.pos];b=$a&&($a&&f.sourceEvent&&f.sourceEvent.touches&&f.sourceEvent.touches[0]||f)||Fa;var h,l;if(a.editMode){g.fromDrag=!0;z=Number(k.gaugeOriginX);w=Number(k.gaugeOriginY);B=E.min;D=E.max;v=k.gaugeStartAngle;F=k.gaugeEndAngle;G=D-B;H=F-v;K=G/H;h=[z,w];d=Za(e-h[1]-Ga.top,d-h[0]-Ga.left);d=g.rotationStartAngle-d;e=0>d?Jb+d:d-Jb;d=a.config.dragStartY-
d*K;e=a.config.dragStartY-e*K;(d<B||d>D)&&e>=B&&e<=D&&(d=e);d<B?d=Ba(e-D)<Ba(d-B)?D:B:d>D&&(d=Ba(d-D)<Ba(e-B)?D:B);a.config.updatedValStr=d+n;a.config.updatedVal=d;e=[];h=0;for(l=a.config.index;h<l;h+=1)e.push(n);e.push({value:d,animation:{duration:0,transposeAnimDuration:0,initAnimDuration:0}});a.config.y!==d&&c.updateData({data:e})&&(a.updatedValStr=e.join("|"),a.dragStartX=z||f.pageX||b.pageX)}},Ca,Ea,Ma,Ia,Oa,Qa,Ra,Ua,Va,Ta,Ya,bb,Sa,pb,ab,lb,hb,ib,fb,jb,kb,mb,nb,ob,qb,wb,zb,Fb,ub,rb,vb,xb,yb,
Db,Ab,Kb,Bb,Lb,Hb,Cb,Ib,Gb;Ab=k.pivotRadius;void 0===k.dataById&&(k.dataById={});a=a||X;I||(I=l.dataLabelGroup=p.group("datalabels").insertAfter(l.pointGroup));l.pointersPath||(l.pointersPath=[]);l.pointersTpath||(l.pointersTpath=[]);l.dataLabel||(l.dataLabel=[]);Ya=function(a){g.fromDrag?g.fromDrag=!1:wa.call(this,b,a)};ta||(ta=0);for(0!==R&&(R||h.dialborderhovercolor||h.dialborderhoveralpha||0===h.dialborderhoveralpha||h.dialborderhoverthickness||0===h.dialborderhoverthickness||h.dialbghovercolor||
h.plotfillhovercolor||h.dialbghoveralpha||h.plotfillhoveralpha||0===h.dialbghoveralpha)&&(R=1);L<ta;L+=1){U=m[L];U.config=U.config||{};Sa=U.config;U.config.index=L;d[U.id]={index:L,config:U.config};Gb=!1;void 0!==U.id&&(k.dataById[U.id]={index:L,point:U});pb=r.getCleanValue(U.value);pa=e(U.rearextension,0)*V;ab=r.dataLabels(pb);lb=q(U.displayvalue,ab,n);hb=e(U.showvalue,T);ib=e(q(U.valuey)*V);Kb=e(q(U.valuex)*V);f(U.tooltext,U.hovertext);Sa.itemValue=pb;Sa.formatedVal=ab;hb&&va(ib);fb=(fb=q(Na(f(U.tooltext,
U.hovertext))))?gb(fb,[1,2],{formattedValue:ab},U,h):lb;jb=f(U.color,U.bgcolor,t.getColor("dialColor"));kb=e(U.alpha,U.bgalpha,100);mb=Z({FCcolor:{color:jb,alpha:kb,angle:90}});nb=f(U.bordercolor,t.getColor("dialBorderColor"));ob=e(U.borderalpha,100);qb=A(nb,ob);wb=e(U.borderthickness,1);ja=e(U.radius)*V;la=e(e(U.basewidth*V,1.6*Ab));oa=e(U.topwidth,0)*V;qa=e(U.baseradius,0);N=e(U.editmode,h.editmode,0);Ca=f(U.link,n);Bb=fb;Sa.toolText=Bb;Lb=f(lb,n);lb=hb?f(lb,n):n;zb=e(U.showhovereffect,R);if(0!==
zb&&(zb||U.borderhovercolor||U.borderhoveralpha||0===U.borderhoveralpha||U.borderhoverthickness||0===U.borderhoverthickness||U.bghovercolor||U.bghoveralpha||0===U.bghoveralpha)){zb=!0;ka={};ma={};Fb=f(U.borderhovercolor,h.dialborderhovercolor,"{dark-10}");ub=e(U.borderhoveralpha,h.dialborderhoveralpha,ob);if(rb=e(U.borderhoverthickness,h.dialborderhoverthickness,wb))ka.stroke=qb,vb=/\{/.test(Fb),ma.stroke=A(vb?t.parseColorMix(nb,Fb)[0]:Fb,ub);rb!==wb&&(ma["stroke-width"]=rb,ka["stroke-width"]=wb);
xb=f(U.bghovercolor,h.dialbghovercolor,h.plotfillhovercolor,"{dark-10}");yb=e(U.bghoveralpha,h.dialbghoveralpha,h.plotfillhoveralpha,kb);ka.fill=mb;xb=(Db=/\{/.test(xb))?t.parseColorMix(jb,xb).join():xb;ha={FCcolor:{color:xb,alpha:yb,angle:90}};ma.fill=Z(ha)}Ma=U.rolloverProperties={enabled:zb,hasHoverSizeChange:void 0,hoverRadius:e(Oa*V),baseHoverWidth:e(Qa*V,1.6*Ab),topHoverWidth:e(Ua*V),rearHoverExtension:e(Ta*V),hoverFill:ha,hoverAttr:ma,outAttr:ka};ja=e(ja,(Number(k.gaugeOuterRadius)+Number(k.gaugeInnerRadius))/
2);sa=la/2;ua=oa/2;U.tooltipPos=[z,w];Ca=U.editMode?void 0:U.link;Ia=["M",ja,-ua,"L",ja,ua,-pa,sa,-pa,-sa,"Z"];Ma.hasHoverSizeChange&&(Ma.outAttr.path=Ia,Oa=e(Ma.hoverRadius,ja),Qa=Ma.baseHoverWidth,Ra=Qa/2,Ua=Ma.topHoverWidth,Va=Ua/2,Ta=Ma.rearHoverExtension,Ma.hoverAttr.path=["M",Oa,-Va,"L",Oa,Va,-Ta,Ra,-Ta,-Ra,"Z"]);Ea={link:U.link,value:pb,displayValue:Lb,toolText:Bb};l.pointersTpath[L]?oa?(l.pointersPath[L].animateWith(Q,ga,{path:Ia},da,ca),l.pointersTpath[L]._attr({trianglepath:[0,0,0,0,0,0,
0,0,0]})):(l.pointersTpath[L].animateWith(Q,ga,{trianglepath:[ja,ua,-pa,sa,-pa,-sa,0,qa,qa]},da,ca),l.pointersPath[L]._attr({path:"M00"})):(oa?(l.pointersPath[L]=p.path(Ia,C),l.pointersTpath[L]=p.trianglepath(0,0,0,0,0,0,0,0,0,C)):(l.pointersPath[L]=p.path(["M",0,0],C),l.pointersTpath[L]=p.trianglepath(ja,ua,-pa,sa,-pa,-sa,0,qa,qa,C)),Gb=!0);ya=oa?l.pointersPath[L]:l.pointersTpath[L];l.pointersPath[L]._attr||(l.pointersPath[L]._attr=l.pointersPath[L].attr,l.pointersPath[L].attr=Ha);l.pointersTpath[L]._attr||
(l.pointersTpath[L]._attr=l.pointersTpath[L].attr,l.pointersTpath[L].attr=Ha);ya._attr({fill:mb,stroke:qb,ishot:!0,"stroke-width":wb}).data("eventArgs",Ea);(la||oa||wb)&&ya.shadow({apply:y});ya._Attr={tooltipPos:U.tooltipPos,cx:z,cy:w,toolTipRadius:ja-pa,color:U.color};Gb&&(Aa=v/cb,ya.attr({angle:Aa}));U.index=L;U.editMode=N;ya.css({cursor:N||Ca?"pointer":"default",_cursor:N?"hand":"default"}).attr({ishot:!0});Gb&&(l.pointersPath[L].drag(za,Ja,La,{pos:L},{pos:L},{pos:L}).click(Ya),l.pointersTpath[L].drag(za,
Ja,La,{pos:L},{pos:L},{pos:L}).click(Ya));Sa.y=pb;pb>=B&&pb<=D&&(bb=(pb-B)/G*H,Aa=(v+bb)/cb,ya.attr({angle:Aa},null,a),u&&Bb!==n?(ya.tooltip(Bb),ya.trackTooltip(!0)):ya.trackTooltip(!1));aa+=1;va(lb)&&lb!==n&&(Hb=w+(P?Y/2+Ab+2:-(Y/2)-Ab-2),Cb=ib,Ib=e(Kb,z),va(Cb)||(Cb=P?Hb+Y*ea:Hb-Y*ea),l.dataLabel[L]?(l.dataLabel[L].attr({text:lb,title:U.originalText||n,fill:M.color,"text-bound":[M.backgroundColor,M.borderColor,M.borderThickness,M.borderPadding,M.borderRadius,M.borderDash]}).css(O).tooltip(U.originalText),
l.dataLabel[L].animateWith(Q,ga,{x:Ib,y:Cb},da,ca)):l.dataLabel[L]=p.text(I).attr({x:Ib,y:Cb,text:lb,direction:g.textDirection,fill:M.color,"text-bound":[M.backgroundColor,M.borderColor,M.borderThickness,M.borderPadding,M.borderRadius,M.borderDash]}).css(O).tooltip(U.originalText),ea+=1)}L=aa;for(ta=l.pointersPath.length;L<ta;L+=1)l.pointersPath[L].attr({path:["M",0,0]}),l.pointersTpath[L].attr({trianglepath:[0,0,0,0,0,0,0,0,0]});L=ea;for(ta=l.dataLabel.length;L<ta;L+=1)l.dataLabel[L].attr({text:n,
"text-bound":[]})},updateData:function(a){if(a===this.lastUpdatedObj)return!1;var c=this.chart,b=this.components.data,d,g,h=(g=this.components.data)&&g.length||0,m,k;a=a.data;if(h){for(;h--;)if(d=a[h])k=d.animation||c.get(xa,fa),m=d.value,g=d.tooltext,d=d.label,b[h].value=e(m,b[h].value,0),b[h].tooltext=f(g,b[h].value),b[h].displayvalue=d;this.lastUpdatedObj=a;this.draw(k);return!0}}},"hlineargauge"]);m("bulb",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Bulb Gauge",defaultSeriesType:"bulb",defaultPlotShadow:1,
standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isRealTime:!0,defaultDatasetType:"bulb",applicableDSList:{bulb:!0},creditLabel:!1,_createDatasets:function(){var a=this.components,c;c=this.defaultDatasetType;var b=[],d;b.push({value:this.jsonData.value});d={data:b};this.config.categories=b;a=a.dataset||(a.dataset=[]);c&&(c=FusionCharts.get("component",["dataset",c]))&&(a[0]?(c=a[0].JSONData,c=c.data.length,b=d.data.length,
c>b&&a[0].removeData(b-1,c-b,!1),a[0].JSONData=d,a[0].configure()):(c=new c,a.push(c),c.chart=this,c.init(d)))},_drawCanvas:function(){},_spaceManager:function(){var a,c=this.hasLegend;a=this.config;var b=this.components,d=b.legend,b=b.dataset[0],f=b.config,h=this.jsonData.chart,m=e(h.showborder,this.is3D?0:1),k,l,n=a.minChartWidth,r=a.minChartHeight,h=a.borderWidth=m?e(h.borderthickness,1):0;f.scaleFactor=a.autoscale?this._getScaleFactor(f.origW,f.origH,a.width,a.height):1;a.canvasWidth-2*h<n&&(l=
(a.canvasWidth-n)/2);a.canvasHeight-2*h<r&&(k=(a.canvasHeight-r)/2);this._allocateSpace({top:k||h,bottom:k||h,left:l||h,right:l||h});this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*a.availableHeight)||{});a=.7*a.canvasHeight;!1!==c&&this._allocateSpace(d._manageLegendPosition(a));this._manageChartMenuBar(a);b._manageSpace&&this._allocateSpace(b._manageSpace(a))},_getData:m.vled,_getScaleFactor:m.angulargauge},m.gaugebase,{placevaluesinside:0,hasgaugeoriginx:void 0,
gaugeoriginx:void 0,hasgaugeoriginy:void 0,gaugeoriginy:void 0,hasgaugeradius:void 0,gaugeradius:void 0,valuepadding:2,showgaugeborder:0,showhovereffect:void 0,autoscale:1});m("progressgauge",{friendlyName:"Progress Gauge",creditLabel:!1,defaultSeriesType:"progressgauge",singleseries:!0,gaugeType:1,standaloneInit:!0,defaultCaptionPadding:5,hasLegend:!0,defaultDatasetType:"progressgauge",applicableDSList:{progressgauge:!0},_createDatasets:function(){var a=this.components,c=a.legend,b=this.jsonData,
d=b.dataset,e=b.data||d&&d[0].data,f=this.defaultDatasetType,h,k,d=this._dataSegregator(e);this.config.categories=d.data;b=a.dataset||(a.dataset=[]);if(!e||0===e.length)this.setChartMessage();else if(f&&(k=FusionCharts.get("component",["dataset",f])))if(e="datasetGroup_"+f,h=FusionCharts.register("component",["datasetGroup",f]),f=a[e],h&&!f&&(f=a[e]=new h,f.chart=this,f.init()),b[0]){f=b[0].JSONData;a=b[0].components.data||[];e=f.data.length;k=d.data&&d.data.length||0;if(e>k){if(c)for(f=k;f<e;f++)a[f]&&
a[f].legendItemId&&c.removeItem(a[f].legendItemId);b[0].removeData(k,e-k,!1)}b[0].JSONData=d;b[0].configure()}else c=new k,b.push(c),c.chart=this,f&&f.addDataSet(c,0,0),c.index=0,c.init(d)},getDataSet:function(a){return this.components.dataset[a]}},m.bulb);FusionCharts.register("component",["dataset","bulb",{pIndex:2,customConfigFn:"_createDatasets",_manageSpace:function(a){var c=this.config,b=this.components.data,d=this.chart,f=d.config,h=d.linkedItems.smartLabel,m=f.dataLabelStyle,d=e(parseInt(m.lineHeight,
10),12),k=f.valuepadding,l=0,b=(b=b[0])&&b.config;h.useEllipsesOnOverflow(f.useEllipsesWhenOverflow);h.setStyle(m);b&&b.displayValue!==n&&!f.placevaluesinside&&c.showValue&&(f=h.getOriSize(b.displayValue),b.displayValue===n&&(f={height:d}),0<f.height&&(l=f.height+k),l>a&&(l=a));c.heightUsed=l;return{top:0,bottom:l}},configure:function(){var a=ka({},this.JSONData),c=this.chart,b=this.config,d=c.config,g=c.jsonData.chart;e(g.is3d,1);e(g.showtooltip,1);this.__setDefaultConfig();T(a,b,c.config,{data:!0});
e(g.is3d,1);b.origW=e(g.origw,d.autoscale?c.origRenderWidth:d.width||c.origRenderWidth);b.origH=e(g.origh,d.autoscale?c.origRenderHeight:d.height||c.origRenderHeight);e(g.showtooltip,1);b.setToolText=q(Na(f(g.plottooltext,void 0)));b.useColorNameAsValue=e(g.usecolornameasvalue,0);b.enableAnimation=a=e(g.animation,g.defaultanimation,1);b.animation=a?{duration:1E3*e(g.animationduration,1)}:!1;b.showValue=e(g.showvalue,1);this._setConfigure()},_setConfigure:function(a){var c=this.chart,b=this.config,
d=c.config,g=this.JSONData,m=a||g.data,n=m&&m.length,n=a&&a.data.length||n,k=c.jsonData.chart,l=c.components.colorManager,t=e(k.showtooltip,1),r=h.parseUnsafeString;r(f(k.tooltipsepchar,Va));var p=h.parseTooltext,z,D,w=d.showhovereffect,v=this.components.data,H,y,u,E=e(k.is3d,1),B,K=c.components.numberFormatter,C,I,G,R,T,V,ba,ia,L,M,O,aa,Y,P,X,fa=function(a,b,c){return c?{FCcolor:{cx:.4,cy:.4,r:"80%",color:da(a,65)+F+da(a,75)+F+N(a,65),alpha:b+F+b+F+b,ratio:"0,30,70",radialGradient:!0}}:A(a,b)},Q;
v||(v=this.components.data=[]);for(B=0;B<n;B++)H=a?a&&a.data[B]:m[B],y=(z=v[B])&&z.config,z||(z=v[B]={}),z.config||(y=v[B].config={}),y.setValue=z=K.getCleanValue(H.value)||0,z=K.dataLabels(z),u=q(r(H.displayvalue)),y.colorRangeGetter=C=c.components.colorRange,I=C.getColorObj(y.setValue),I=I.colorObj||I.prevObj||I.nextObj,G=e(k.gaugefillalpha,I.alpha,100),C=r(f(I.label,I.name)),D=f(I.bordercolor,k.gaugebordercolor,N(I.code,70)),R=e(I.borderalpha,k.gaugeborderalpha,"90")*G/100,D=(T=/\{/.test(D))?l.parseColorMix(f(I.bordercolor,
I.code),D)[0]:D,y.gaugeBorderColor=ba=A(D,R),y.gaugeBorderThickness=ia=d.showgaugeborder?e(k.gaugeborderthickness,1):0,y.fillColor=V=fa(I.code,G,E),0!==w&&(w||k.gaugefillhovercolor||k.plotfillhovercolor||k.gaugefillhoveralpha||k.plotfillhoveralpha||0===k.gaugefillhoveralpha||k.is3donhover||0===k.is3donhover||k.showgaugeborderonhover||0===k.showgaugeborderonhover||k.gaugeborderhovercolor||k.gaugeborderhoveralpha||0===k.gaugeborderhoveralpha||k.gaugeborderhoverthickness||0===k.gaugeborderhoverthickness)&&
(w=!0,L=f(k.gaugefillhovercolor,k.plotfillhovercolor,"{dark-10}"),M=e(k.gaugefillhoveralpha,k.plotfillhoveralpha),O=e(k.showgaugeborderonhover),void 0===O&&(O=k.gaugeborderhovercolor||k.gaugeborderhoveralpha||0===k.gaugeborderhoveralpha||k.gaugeborderhoverthickness||0===k.gaugeborderhoverthickness?1:d.showgaugeborder),aa=f(k.gaugeborderhovercolor,"{dark-10}"),Y=e(k.gaugeborderhoveralpha),P=O?e(k.gaugeborderhoverthickness,ia||1):0,X=!!e(k.is3donhover,E),e(k.showhoveranimation,1),O={},Q={},ia!==P&&
(O["stroke-width"]=P,Q["stroke-width"]=ia),Q.fill=Z(V),L=(V=/\{/.test(L))?l.parseColorMix(I.code,L)[0]:f(L,I.code),O.fill=Z(fa(L,e(M,G),X)),P&&(Q.stroke=ba,I=/\{/.test(aa),O.stroke=A(I?l.parseColorMix(T?L:D,aa)[0]:aa,e(Y,R)))),y.setTooltext=h.getValidValue(r(f(H.tooltext,g.plottooltext,k.plottooltext))),D=t?void 0!==y.setTooltext?p(y.setTooltext,[1,2],{formattedValue:z},H,k):b.useColorNameAsValue?C:null===z?!1:z:!1,H=void 0!==u?u:H.label||(b.useColorNameAsValue?C:z),y.toolText=D,y.displayValue=H,
y.rolloverProperties={enabled:w,hoverAttr:O,hoverAnimAttr:void 0,outAttr:Q}},init:function(a){var c=this.chart;if(!a)return!1;this.JSONData=a;this.chartGraphics=c.chartGraphics;this.components={};this.graphics={};this.visible=!0;this.configure()},updateData:function(a,c,b){this._setConfigure(a,c);b&&this.draw()},draw:function(){var a=this.components.data,c=this.chart,b=this.config,d=c.getJobList(),e=c.get(xa,fa),f=e.animType,m=e.animObj,k=e.dummyObj,e=e.duration,l=c.config,q=l.canvasLeft,r=l.canvasTop,
p=l.canvasHeight,t=l.canvasWidth,A=c.components.paper,w=c.graphics.datasetGroup,v=this.graphics.container,D=this.graphics.trackerContainer,y=c.graphics,u=y.trackerGroup,E,B=a[0],a=B&&B.config,F=l.gaugeoriginx;E=l.gaugeoriginy;var C=l.gaugeradius,I=l.hasgaugeoriginx,G=l.hasgaugeoriginy,K=l.hasgaugeradius,N=this.graphics.dataLabelContainer,c=c.config.dataLabelStyle,y=y.datalabelsGroup;v||(v=this.graphics.container=A.group("bulb",w));D||(this.graphics.trackerContainer=A.group("bulb-hot",u));N||(N=this.graphics.dataLabelContainer=
A.group("datalabel"));y&&y.appendChild(N);D=B.trackerConfig={};u=a.setValue;w=a.toolText;D.eventArgs={value:u,displayValue:a.displayValue,toolText:w?w:""};B.graphics||(B.graphics={});F=void 0!==I?F*b.scaleFactor:q+t/2;E=void 0!==G?E*b.scaleFactor:r+p/2;r=F;q=E;t=void 0!==K?C*b.scaleFactor:ma(t/2,p/2);l.gaugeStartX=F-t;l.gaugeEndX=F+t;l.gaugeStartY=E-t;l.gaugeEndY=E+t;l.gaugeCenterX=F;l.gaugeCenterY=E;l.gaugeRadius=t;p={cx:r,cy:q,r:.001,"stroke-linecap":Qa,stroke:Z(a.gaugeBorderColor),"stroke-width":a.gaugeBorderThickness,
fill:Z(a.fillColor),ishot:!0};(E=B.graphics.element)?(B.graphics.element.animateWith(k,m,{cx:r,cy:q,r:t},e,f),B.graphics.element.attr({"stroke-linecap":Qa,stroke:Z(a.gaugeBorderColor),"stroke-width":a.gaugeBorderThickness,fill:Z(a.fillColor),ishot:!0})):(E=B.graphics.element=A.circle(p,v),E.animateWith(k,m,{r:t},e,f));D.attr={cx:r,cy:q,r:t,cursor:a.setLink?"pointer":n,stroke:Ia,"stroke-width":a.plotBorderThickness,fill:Ia,ishot:!0,visibility:Ga};v=B.graphics;l.placevaluesinside?(l=q,B=H):(l=q+t+l.valuepadding,
B=z);a.setValue!==n&&b.showValue?(p={text:a.displayValue,"text-anchor":H,x:F,y:l,"vertical-align":B,fill:c.color,direction:a.textDirection,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]},v.label?(v.label.show(),v.label.animateWith(k,m,{x:F,y:l},e,f),v.label.attr({text:a.displayValue,"text-anchor":H,"vertical-align":B,fill:c.color,direction:a.textDirection,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,
c.borderDash]})):v.label=A.text(p,N),v.label.tooltip(w)):v.label&&v.label.hide()&&v.label.attr({"text-bound":[]});d.trackerDrawID.push(ua.addJob(this.drawTracker,this,[],h.priorityList.tracker))},drawTracker:function(){var a=this.chart,c=a.config.plothovereffect,b=a.components.paper,d=this.graphics.trackerContainer,e,f,h,k,l,m=function(b){wa.call(this,a,b)},n=function(b){return function(c){var d=this.getData();0!==d.showHoverEffect&&!0!==d.draged&&(b.attr(this.getData().setRolloverAttr),wa.call(this,
a,c,"DataPlotRollOver"))}},p=function(b){return function(c){var d=this.getData();0!==d.showHoverEffect&&!0!==d.draged&&(b.attr(this.getData().setRolloutAttr),wa.call(this,a,c,"DataPlotRollOut"))}};f=(h=this.components.data[0])&&h.config;e=h.trackerConfig;k=h.graphics.element;if(l=e.attr)h.graphics.hotElement?(h.graphics.hotElement.attr(l),b=!1):(d=h.graphics.hotElement=b.circle(l,d),b=!0),d=h.graphics.hotElement,(d||k).data("eventArgs",e.eventArgs).data(ta,c).data("setRolloverAttr",f.rolloverProperties.hoverAttr||
{}).data("setRolloutAttr",f.rolloverProperties.outAttr||{}).tooltip(e.eventArgs.toolText),(b||f.elemCreated)&&(d||k).click(m).hover(n(k),p(k))},addData:function(){},removeData:function(){}},void 0,{}]);FusionCharts.register("component",["dataset","progressgauge",{type:"doughnut2d",configure:function(){var a=this.chart,c=this.config,b=this.JSONData,d=a.config,g=a.jsonData.chart,m=a.components.colorManager,n,k=c.plotColor=m.getPlotColor(this.index||this.positionIndex),l=e(b.dashed,g.plotborderdashed);
e(g.useplotgradientcolor,1);var q,r,p,t=h.getDashStyle,A=a.isBar,w=a.is3D,v=a.isStacked,z={},z=z.dataObj||(z.dataObj={}),z=z.chart||(z.chart={});c.showLegend=e(g.showlegend,0);c.legendSymbolColor=c.plotColor;n=c.showplotborder=e(g.showplotborder,w?0:1);c.plotDashLen=q=e(g.plotborderdashlen,5);c.plotDashGap=r=e(g.plotborderdashgap,4);c.plotfillAngle=e(360-g.plotfillangle,A?180:90);c.plotFillAlpha=p=f(b.alpha,g.plotfillalpha,"70");c.plotColor=f(b.color,k);c.isRoundEdges=k=e(g.useroundedges,0);c.plotRadius=
e(g.useRoundEdges,c.isRoundEdges?1:0);c.plotFillRatio=f(b.ratio,g.plotfillratio);c.plotgradientcolor=h.getDefinedColor(g.plotgradientcolor,m.getColor("plotGradientColor"));c.plotBorderAlpha=n?f(g.plotborderalpha,p,Da):0;c.plotBorderColor=f(g.plotbordercolor,w?Aa:m.getColor("plotBorderColor"));c.plotBorderThickness=n=e(g.plotborderthickness,1);c.plotBorderDashStyle=l?t(q,r,n):"none";c.showValues=e(b.showvalues,g.showvalues,1);c.valuePadding=e(g.valuepadding,2);c.enableAnimation=l=e(g.animation,g.defaultanimation,
1);c.animation=l?{duration:1E3*e(g.animationduration,1)}:!1;z.transposeAnimation=c.transposeAnimation=e(g.transposeanimation,z.transposeAnimation,l);c.transposeAnimDuration=700*e(g.transposeanimduration,1);c.showShadow=k||w?e(g.showshadow,1):e(g.showshadow,m.getColor("showShadow"));c.showHoverEffect=e(g.plothovereffect,g.showhovereffect,void 0);c.showTooltip=e(g.showtooltip,1);c.stack100Percent=a=e(a.stack100percent,g.stack100percent,0);c.definedGroupPadding=qa(e(g.plotspacepercent),0);c.plotSpacePercent=
qa(e(g.plotspacepercent,20)%100,0);c.maxColWidth=e(A?g.maxbarheight:g.maxcolwidth,50);c.showPercentValues=e(g.showpercentvalues,v&&a?1:0);c.showPercentInToolTip=e(g.showpercentintooltip,v&&a?1:0);c.plotPaddingPercent=e(g.plotpaddingpercent);c.rotateValues=e(g.rotatevalues)?270:0;c.placeValuesInside=e(g.placevaluesinside,0);c.zeroPlaneColor=d.zeroPlaneColor;c.zeroPlaneBorderColor=d.zeroPlaneBorderColor;c.zeroPlaneShowBorder=d.zeroPlaneShowBorder;c.use3DLighting=e(g.use3dlighting,1);c.parentYAxis="s"===
f(b.parentyaxis&&b.parentyaxis.toLowerCase(),"p")?1:0;this._setConfigure()},_setConfigure:function(a,c){var b=this.chart,d=this.config,g=this.JSONData,m=a||g.data,t=m&&m.length,k=b.config.categories,l=b.singleseries,k=k&&k.length,t=a&&a.data.length||ma(k,t),k=b.jsonData.chart,x=b.components.colorManager,r=d.showPlotBorder,p=d.plotColor=x.getPlotColor(this.index||this.positionIndex),A=e(k.showtooltip,1),z=h.parseUnsafeString,w=z(k.yaxisname),v=z(k.xaxisname),D=z(f(k.tooltipsepchar,Va)),y=e(k.seriesnameintooltip,
1),u=h.parseTooltext,E,B,H,C,I,G,K,N=d.plotBorderThickness,R=d.isRoundEdges,T=d.showHoverEffect,V=d.plotFillAngle,L,M,O,aa=d.plotBorderDashStyle,Y,P,X,ba,Q,ga,ca,ea,fa,ka=h.getDashStyle,ha=this.components.data,la=b.isBar,U=b.is3D,ja,na=d.maxValue||-Infinity,oa=d.minValue||Infinity,sa=this.chart.components.numberFormatter,ra;ha||(ha=this.components.data=[]);for(ja=0;ja<t;ja++)a?(G=a&&a.data[ja],ra=void 0!==c?c+ja:ha.length-t+ja,B=ha[ra]):(B=ha[ja],G=m[ja]),b=B&&B.config,B||(B=ha[ja]={}),B.config||
(b=ha[ja].config={}),b.visible=e(G.visible,!0),b.showValue=e(G.showvalue,d.showValues),b.setValue=B=sa.getCleanValue(G.value),b.setLink=f(G.link),b.toolTipValue=p=sa.dataLabels(B,d.parentYAxis),b.setDisplayValue=C=z(G.displayvalue),b.displayValue=f(C,p),p=e(G.dashed),C=e(G.dashlen,void 0),E=K=e(G.dashgap,K),na=qa(na,B),oa=ma(oa,B),b.plotBorderDashStyle=C=1===p?ka(C,E,N):0===p?"none":aa,l?(p=x.getPlotColor(isNaN(ra)?ja:ra),p=f(G.color,p),M=f(G.ratio,d.plotFillRatio)):p=f(G.color,d.plotColor),L=f(G.alpha,
d.plotFillAlpha),O=f(G.alpha,d.plotBorderAlpha,L).toString(),b.plotColor=p,b.plotFillAlpha=f(G.alpha,d.plotFillAlpha),b.plotBackgroundFillAlpha=e(G.plotbackgroundfillalpha,k.plotbackgroundfillalpha,30),0>B&&!R&&(I=V,V=la?180-V:360-V),b.colorArr=E=h.graphics.getColumnColor(p,L,M,V,R,d.plotBorderColor,O,la?1:0,U?!0:!1),B=q(z(f(G.tooltext,G.label))),0!==T&&(Y=f(G.hovercolor,g.hovercolor,k.plotfillhovercolor,k.columnhovercolor,p),P=f(G.hoveralpha,g.hoveralpha,k.plotfillhoveralpha,k.columnhoveralpha,L),
X=f(G.hovergradientcolor,g.hovergradientcolor,k.plothovergradientcolor,d.plotgradientcolor),!X&&(X=n),ba=f(G.hoverratio,g.hoverratio,k.plothoverratio,M),Q=e(360-G.hoverangle,360-g.hoverangle,360-k.plothoverangle,V),ga=f(G.borderhovercolor,g.borderhovercolor,k.plotborderhovercolor,d.plotBorderColor),O=f(G.borderhoveralpha,g.borderhoveralpha,k.plotborderhoveralpha,O,L),L=e(G.borderhoverthickness,g.borderhoverthickness,k.plotborderhoverthickness,N),ca=e(G.borderhoverdashed,g.borderhoverdashed,k.plotborderhoverdashed),
ea=e(G.borderhoverdashgap,g.borderhoverdashgap,k.plotborderhoverdashgap,void 0),fa=e(G.borderhoverdashlen,g.borderhoverdashlen,k.plotborderhoverdashlen,K),ca=ca?ka(fa,ea,L):C,1==T&&Y===p&&(Y=da(Y,70)),p=h.graphics.getColumnColor(Y+F+X,P,ba,Q,R,ga,O.toString(),la?1:0,U?!0:!1),b.setRolloutAttr={fill:U?[Z(E[0]),!d.use3DLighting]:Z(E[0]),stroke:r&&Z(E[1]),"stroke-width":N,"stroke-dasharray":C},b.setRolloverAttr={fill:U?[Z(p[0]),!d.use3DLighting]:Z(p[0]),stroke:r&&Z(p[1]),"stroke-width":L,"stroke-dasharray":ca}),
E=b.toolTipValue,p=q(z(f(G.tooltext,g.plottooltext,k.plottooltext))),A?null===E?G=!1:void 0!==p?(C=[1,2,3,4,5,6,7],B={yaxisName:w,xaxisName:v,formattedValue:E,label:B},G=u(p,C,B,G,k,g)):(y&&(H=pa(g&&g.seriesname)),G=H?H+D:n,G+=B?B+D:n):G=!1,b.toolText=G,b.setTooltext=G,I&&(V=I),ra++;d.maxValue=na;d.minValue=oa},init:function(a){var c=this.chart;if(!a)return!1;this.JSONData=a;this.chartGraphics=c.chartGraphics;this.components={};this.graphics={};this.visible=1===e(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),
1);this.configure();this.config.showLegend&&this._addLegend()},_addLegend:function(){var a=this.chart,c=a.jsonData.chart,b=this.JSONData.data,d,f,h,m=this.components.data,k;for(f=0;f<m.length;f+=1)h=m[f],d=h.config,k=b[f].label?b[f].label:"Type "+(f+1),h={FCcolor:{color:d.plotColor,angle:0,ratio:"0",alpha:"100"}},d=da(d.plotColor,60).replace(Oa,Ra),a.components.legend.addItems(this,this.legendInteractivity,{type:this.type,fillColor:Z(h),strokeColor:Z(d),enabled:e(c.includeinlegend,1),label:k,index:f})},
legendInteractivity:function(a,c){var b=a.components.data[c.configuration.index],d=a.config,e=b.graphics,f=b.config.visible,h=this.config,k=c.config,l=c.graphics,m=h.itemHiddenStyle.color,h=h.itemStyle.color,n=k.fillColor,k=k.strokeColor;b.config.visible=f?0:1;f?(d.animation.duration&&d.transposeAnimation||(e.gaugeBackground.hide(),e.gaugeMeter.hide(),e.hotElement.hide()),l.legendItemSymbol&&l.legendItemSymbol.attr({fill:m,stroke:m}),l.legendItemText&&l.legendItemText.attr({fill:A(m)}),l.legendIconLine&&
l.legendIconLine.attr({stroke:m})):(e.gaugeBackground.show(),e.gaugeMeter.show(),e.hotElement.show(),l.legendItemSymbol&&l.legendItemSymbol.attr({fill:n,stroke:k}),l.legendItemText&&l.legendItemText.attr({fill:A(h)}),l.legendIconLine&&l.legendIconLine.attr({stroke:n}));a.draw()},draw:function(){var a=this,c=a.JSONData,b=a.config,d=a.chart.jsonData.chart,e=a.components.data,h=a.components.data,m=a.chart,k=m.components.paper,l=m.config,t=l.canvasLeft,r=l.canvasTop,p=l.canvasHeight,z=l.canvasWidth,D=
m.graphics.datasetGroup,l=a.graphics.gaugeBackgroundContainer,w=a.graphics.gaugeMeterContainer,v=a.graphics.trackerContainer,F=m.graphics.trackerGroup,y=a.components.data.length||0,u,E,B,H,C,I,G,K,N,R,T,V=b.animation.duration,L=b.transposeAnimation,b=b.transposeAnimDuration;I=0;var M=function(){var b=a.components.data,c,d=a.components.data.length,e;for(u=0;u<d;u++)c=b[u].config,e=b[u].graphics,c.visible||e.hotElement.hide()};l||(l=a.graphics.gaugeBackgroundContainer=k.group("gauge-background",D));
w||(w=a.graphics.gaugeMeterContainer=k.group("gauge-meter",D));v||(v=a.graphics.trackerContainer=k.group("meter-hot",F));for(u=0;u<y;u++)E=e[u],B=(D=h[u])&&D.config,B.visible&&(I+=1);D=ma(p/2,z/2);m=F=.2*ma(m.config.canvasWidth,m.config.canvasHeight);I=(D-I-m)/I;t+=.5*z;r+=.5*p;for(u=0;u<y;u++)if(E=e[u],B=(D=h[u])&&D.config,(z=B.visible)||V)D.graphics||(h[u].graphics={}),H=B.setValue,p=B.setLink,E=q(Na(f(E.tooltext,c.plottooltext,d.plottooltext))),E=B.toolText+(E?n:B.toolTipValue),C=B.colorArr,T=
u,R={index:u,link:p,value:H,displayValue:B.displayValue,toolText:E,id:n,datasetIndex:a.datasetIndex,datasetName:c.seriesname,dataSet:a,visible:Ga,cx:t,cy:r,radius:F},G=m,K=m+I,N=6.283,D.graphics.gaugeBackground?(B={ringpath:[t,r,G,K,0,N],fill:A(B.plotColor,B.plotBackgroundFillAlpha),"stroke-width":0},L?(B=z?[t,r,G,K,0,N]:[t,r,G,G,0,N],D.graphics.gaugeBackground.animate({ringpath:B},b,"easeIn")):D.graphics.gaugeBackground.attr(B)):D.graphics.gaugeBackground=k.ringpath(t,r,G,K,0,N,l).attr({fill:A(B.plotColor,
B.plotBackgroundFillAlpha),"stroke-width":0}),N=ma(3.6*H,359.99),G=[t,r,m+I/2,ma(3.6*H,359.99)],V&&(N=0),D.graphics.gaugeMeter?(B={arcpath:G,stroke:Z(C[0]),"stroke-width":I,"stroke-linecap":Qa},L?z?D.graphics.gaugeMeter.animate({arcpath:G,"stroke-width":I},b,"easeIn",M):(G=[t,r,m,0],D.graphics.gaugeMeter.animate({arcpath:G,"stroke-width":0},b,"easeIn",M)):D.graphics.gaugeMeter.attr(B)):(D.graphics.gaugeMeter=k.arcpath(t,r,m+I/2,N,w).attr({stroke:Z(C[0]),"stroke-width":I,"stroke-linecap":Qa}),V&&D.graphics.gaugeMeter.animate({arcpath:G},
V,"easeIn")),B={arcpath:G,cursor:p?"pointer":n,stroke:Ia,"stroke-width":I,"stroke-linecap":Qa,ishot:!0},D.graphics.hotElement?D.graphics.hotElement.attr(B):(B=D.graphics.hotElement=k.arcpath(t,r,m+I/2,ma(3.6*H,359.99),v),D.graphics.hotElement.attr({cursor:p?"pointer":n,stroke:Ia,"stroke-width":I,"stroke-linecap":Qa,ishot:!0})),B=D.graphics.hotElement,B.data("eventArgs",R).data("groupId",T).hover(a._plotRollOver,a._plotRollOut).tooltip(E),z&&(m+=I+1)},_drawDoughnutCenterLabel:function(a,c,b,d,e,f,
h,k,l){var m=this.chart;c=this.config;var r=f||c.lastCenterLabelConfig;f=m.components.paper;var p=m.linkedItems.smartLabel;b=this.components.data[l.index];h={fontFamily:"Verdana",fontSize:"12px",lineHeight:1.2*12+"px",fontWeight:"bold",fontStyle:n};d=1.414*(.5*d-2)-4;var q=1.414*(.5*e-2)-4,t=m.graphics.datalabelsGroup;e=this.graphics.dataLabelContainer;p.useEllipsesOnOverflow(m.config.useEllipsesWhenOverflow);p.setStyle(h);a=p.getSmartText(a,d,q);e||(e=this.graphics.dataLabelContainer=f.group("datalabel",
t));l={x:l.cx,y:l.cy,text:a.text,direction:c.textDirection,opacity:k?0:1,fill:Z(b.config.colorArr[0]),"text-bound":r.bgOval?"none":[Z({color:r.bgColor,alpha:r.bgAlpha}),Z({color:r.borderColor,alpha:r.borderAlpha}),r.borderThickness,r.textPadding,r.borderRadius]};b.graphics.label||(b.graphics.label=f.text(l,e));b.graphics.label.attr(l).css(h);k?b.graphics.label.animate({opacity:1},100,"easeIn"):b.graphics.label.animate({opacity:0},100,"easeOut")},_plotRollOver:function(){var a=this.data("eventArgs"),
c=2*a.radius;a.dataSet._drawDoughnutCenterLabel(a.toolText,300,196,c,c,a.toolText,!1,!0,a)},_plotRollOut:function(){var a=this.data("eventArgs"),c=2*a.radius;a.dataSet._drawDoughnutCenterLabel(a.toolText,300,196,c,c,a.toolText,!1,!1,a)},updateData:function(a,c,b){var d=this.config,e=d.maxValue,f=d.prevMin,h=this.chart;this._setConfigure(a,c);this.setMaxMin();if(d.maxValue!==e||d.minValue!==f)this.maxminFlag=!0;b&&(h._setAxisLimits(),this.draw())},removeData:function(a,c,b){var d=this.components,e=
d.data,f=d.removeDataArr||(d.removeDataArr=[]),h=this.config,k=this.maxminFlag;c=c||1;a=a||0;if(a+c===e.length)this.endPosition=!0;else if(0===a||void 0===a)this.endPosition=!1;e[a]&&(e[a].config.visible=0);b&&this.draw();d.removeDataArr=f=f.concat(e.splice(a,c));b=f.length;for(a=0;a<b;a++)if(f[a]){c=f[a].config;if(c.setValue===h.maxValue||c.setValue===h.minValue)k=this.maxminFlag=!0;if(k)break}k&&this.setMaxMin()},manageSpace:function(){}},"Column"]);m("drawingpad",{standaloneInit:!0,friendlyName:"Drawing Pad",
creditLabel:!1,bgColor:Aa,bgAlpha:"100",draw:function(){var a=this.config,c=this.linkedItems.container,b=this.chartInstance,d=this.components,e=d.paper,f=this.get(xa,fa),h=f.animType,k=f.dummyObj,l=f.animObj,f=f.duration,m=d.tooltip,n=a.prevWidth,p=a.prevHeight,q;a.width=c.offsetWidth;a.height=c.offsetHeight;this._show();a.animationStarted=!0;e?((n||p)&&e.setSize(n,p),d={width:c.offsetWidth,height:c.offsetHeight},q=!0,this._chartAnimation(!0),e.animateWith(k,l,d,f,h)):(e=d.paper=new t(c,c.offsetWidth,
c.offsetHeight),e.setConfig("stroke-linecap",Qa));a.prevWidth=c.offsetWidth;a.prevHeight=c.offsetHeight;e.tooltip(m.style,m.config.shadow,m.config.constrain);this._createLayers();!q&&this._chartAnimation(!0);this._drawBackground();b.annotations?(this._drawAnnotations(),this._drawCreditLabel()):this.setChartMessage()},_createDatasets:function(){}},m.mscartesian);m("pyramid",{friendlyName:"Pyramid Chart",subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",defaultPlotShadow:1,
useSortedData:!1,isPyramid:1,creditLabel:!1,rendererId:"pyramid"},m.funnel);m("realtimestackedcolumn",{},m.realtimecolumn,{isstacked:!0});m("realtimearea",{defaultDatasetType:"realtimearea",axisPaddingLeft:0,axisPaddingRight:0,applicableDSList:{realtimearea:!0}},m.realtimecolumn,{},m.areabase);m("realtimestackedarea",{defaultDatasetType:"realtimearea",applicableDSList:{realtimearea:!0}},m.realtimearea,{isstacked:!0});m("realtimeline",{defaultDatasetType:"realtimeline",axisPaddingLeft:0,axisPaddingRight:0,
applicableDSList:{realtimeline:!0},zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0},m.realtimecolumn,{zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0},m.areabase);m("realtimelinedy",{isRealTime:!0,defaultDatasetType:"realtimeline",axisPaddingLeft:0,isDual:!0,axisPaddingRight:0,applicableDSList:{realtimeline:!0},_createAxes:m.msdybasecartesian._createAxes,_setAxisLimits:m.msdybasecartesian._setAxisLimits,_postSpaceManagement:m.msdybasecartesian._postSpaceManagement,_feedAxesRawData:m.msdybasecartesian._feedAxesRawData},
m.realtimecolumn,{isdual:!0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0},m.areabase)},[3,2,0,"sr2"]]);Ga&&(Fa.FusionCharts=FusionCharts);return FusionCharts});
