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

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

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