/* FusionCharts JavaScript Library Copyright FusionCharts Technologies LLP License Information at */ (function(na,Ha){"object"===typeof module&&module.exports?module.exports=na.document?Ha(na):function(ua){if(!ua.document)throw Error("Window with document not present");return Ha(ua,!0)}:na.FusionCharts=Ha(na,!0)})("undefined"!==typeof window?window:this,function(na,Ha){FusionCharts.register("module",["private","modules.renderer.js-charts",function(){function ua(d,L){for(var g=[],a=0,l=d.length;ad?g+d:d} function na(d,L,g,a,l){return La((L-g[1]-a.top)/l,d-g[0]-a.left)}function la(d){this.config={};this.linkedItems={chart:d}}var ha=this,U=ha.hcLib,Ha=U.hasTouch,Da=ha.window,ma=Da.document,oa=U.Raphael,Ma=U.getPosition,sa=U.BLANKSTRING,G=U.preDefStr,Qa=G.HUNDREDSTRING,G=G.NINETYSTRING,za=U.pluck,ia=U.pluckNumber,Ya=U.getFirstValue,Ua=U.extend2,R=U.toRaphaelColor,ra=U.hasSVG,Na=U.hashify,Za="createTouch"in ma,eb=Za&&!(Da.navigator.maxTouchPoints||Da.navigator.msMaxTouchPoints),Ia=U.each,Ga=U.plotEventHandler, wa=U.componentDispose,Ea=8===Da.document.documentMode?"visible":"",xa=Math,va=xa.sin,pa=xa.cos,La=xa.atan2,qa=xa.round,Aa=xa.min,Ba=xa.max,Fa=xa.abs,ta=xa.PI,a=xa.ceil,b=xa.floor,c=ta/180,h=180/ta,m=Math.PI,f=m/2,q=2*m,v=m+f,A=U.getFirstColor,n=U.getFirstAlpha,C=U.graphics.getDarkColor,p=U.graphics.getLightColor,I=U.graphics.convertColor,K=U.POSITION_BOTTOM,B=U.POSITION_RIGHT,k=U.chartAPI,x=U.COMMASTRING,aa=U.ZEROSTRING,N=U.ONESTRING,D=!/fusioncharts\.com$/i.test(Da.location.hostname),Z={},X={};k("column2d", {standaloneInit:!0,friendlyName:"Column Chart",creditLabel:D,defaultDatasetType:"column",applicableDSList:{column:!0},singleseries:!0},k.sscartesian);k("column3d",{friendlyName:"3D Column Chart",defaultDatasetType:"column3d",applicableDSList:{column3d:!0},defaultPlotShadow:1,creditLabel:D,is3D:!0,standaloneInit:!0,hasLegend:!1,singleseries:!0,fireGroupEvent:!0,defaultZeroPlaneHighlighted:!1},k.sscartesian3d,{showplotborder:0});k("bar2d",{friendlyName:"Bar Chart",isBar:!0,standaloneInit:!0,defaultDatasetType:"bar2d", creditLabel:D,applicableDSList:{bar2d:!0},singleseries:!0,spaceManager:k.barbase},k.ssbarcartesian);k("bar3d",{friendlyName:"3D Bar Chart",defaultDatasetType:"bar3d",applicableDSList:{bar3d:!0},defaultPlotShadow:1,fireGroupEvent:!0,standaloneInit:!0,creditLabel:D,is3D:!0,isBar:!0,singleseries:!0,defaultZeroPlaneHighlighted:!1},k.ssbarcartesian3d,{showplotborder:0});k("area2d",{friendlyName:"Area Chart",standaloneInit:!0,creditLabel:D,defaultDatasetType:"area",singleseries:!0,defaultPlotShadow:0}, k.sscartesian,{},k.areabase);k("line",{friendlyName:"Line Chart",standaloneInit:!0,creditLabel:D,defaultPlotShadow:1,singleseries:!0,axisPaddingLeft:0,axisPaddingRight:0,defaultDatasetType:"line"},k.sscartesian,{zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0},k.areabase);k("pareto2d",{defaultDatasetType:"column2d",singleseries:!0,creditLabel:D,_createDatasets:function(){var d=this.components,L=this.jsonData,g=this.is3D,a=d.numberFormatter,l=L.data||L.dataset&&L.dataset[0]&&L.dataset[0].data, e=l&&l.length,b=L.chart,c=this.defaultDatasetType,L=new (FusionCharts.get("component",["dataset","Pareto"])),r=ia(b.showcumulativeline,1),w=[],u,F;if(l){for(b=0;b d-a.lastSliceTimeStamp)return;a.lastSliceTimeStamp=d}r=u.element;a=u.connector;w=u.label||u.dataLabel;L="object"===typeof L?"t"+L:L;f=c.connectorPath;u=(t?-1:1)*c.transX;d=(t?-1:1)*c.transY;g=r.data("eventArgs")||r.data("eventArgs",{});ha.raiseEvent("slicingStart",{slicedState:t,dataIndex:"index"in l&&l.index,data:e.getPlotData(b,t)},e.chartInstance);r.animateWith(k,q,{transform:t?"t0,0":L},h,m,function(){ha.raiseEvent("slicingEnd",{slicedState:t,dataIndex:"index"in l&&l.index,data:e.getPlotData(b, t)},e.chartInstance)});w&&w.x&&((L=w.data("textPos"))||(L=w.data("textPos",{x:w.x,y:w.y})),w.animateWith(k,q,{x:w.x+(t?0:u)},h,m),L.x=w.x+(t?0:u));f&&(L=f.slice(0),L[1]+=u,L[2]+=d,L[4]+=u,L[6]+=u,a.animateWith(k,q,{path:L},h,m),c.connectorPath=L);return g.isSliced=t=c.sliced=!t}},sliceInOtherPies:function(d){var L=this.components.dataset[0],g=L.components.data,a=g.length,l=0,e;for(L.enableMultiSlicing=!0;a--;)a!==d&&(e=g[a]).config.sliced&&++l&&this._plotGraphicClick.call(e.graphics);L.enableMultiSlicing= !1;return!!l},placeDataLabels:function(){var d=function(d,g){return d.point.value-g.point.value},L=function(d,g){return d.angle-g.angle},g=["start","start","end","end"],c=[-1,1,1,-1],l=[1,1,-1,-1];return function(e,ba,h,r){var w=this.config,u=this.components,F=u.dataset[0],t=F.graphics,k=F.config,p=w.canvasLeft,C=w.canvasTop,F=w.canvasWidth,n=p+.5*w.canvasWidth,A=C+.5*w.canvasHeight,Ka=this.linkedItems.smartLabel,B=k.dataLabelOptions,$a=B.style,P=ia(a(parseFloat($a.lineHeight)),12),D=1===ba.length? w.singletonPlaceValue:!1,x=B.skipOverlapLabels,I=B.manageLabelOverflow,K=B.connectorPadding,J;J=r&&r.metrics||[n,A,2*k.pieMinRadius,k.innerSize||0];var y=J[1],z=J[0];r=.5*J[2];var k=[[],[],[],[]],n=h.labelsRadius=r+B.distance,H=A=parseInt($a.fontSize,10),S=H/2,K=[K,K,-K,-K];h=h.labelsMaxInQuadrant=b(n/H);var B=B.isSmartLineSlanted,O=J[3]/2,W,E,T,Q,Ra,Ja,ga,aa,G,ja,M,ea,V,ka,X;J=Number.POSITIVE_INFINITY;var da,Z;E=[];T=[];E=this.get("config","animationObj");var N=e?0:E.duration||0,R=E.dummyObj,fa= E.animObj,U=E.animType,ha=this._plotDragMove,ma=this._plotDragStart,sa=this._plotDragEnd,ra=this._plotRollOver,ya=this._plotRollOut,la=u.paper,Y=t.dataLabelContainer,ca,oa;Ka.useEllipsesOnOverflow(w.useEllipsesWhenOverflow);e||Ka.setStyle($a);if(1==ba.length&&!O&&D)E=ba[0],(ca=E.config._textAttrs).text&&(Z=E.graphics,da=E.config,M=Z.label,E.slicedTranslation=[p,C],ca["text-anchor"]="middle",ca.x=0,ca.y=0,ca.transform=["t",z,y],M?M.animateWith(R,fa,ca,N,U):M=Z.label=la.text(ca,oa,Y).drag(ha,ma,sa).hover(ra, ya),M.x=z,M.data("textPos",{x:z,y:y}).data("plotItem",ca.plotItem).data("eventArgs",ca.eventArgs),null!==da.y&&void 0!==da.y&&M.show(),Z.connector&&Z.connector.attr({path:[]}));else if(D)X=O+(r-O)/2,Ia(ba,function(d){da=d.config;(ca=da._textAttrs).text&&(Z=d.graphics,M=Z.label,null!==da.y&&void 0!==da.y&&((ja=Z.connector)&&ja.show(),M&&M.show()),ca.transform="t0,0",G=da.angle,aa=y+X*va(G),Q=z+X*pa(G),ca._x=Q,ca._y=aa,d.sliced&&(ka=d.slicedTranslation,ea=ka[0]-p,V=ka[1]-C,Q+=ea,aa+=V),ca["text-anchor"]= "middle",ca.x=0,ca.y=0,ca.transform=["t",Q,aa],M?M.animateWith(R,fa,ca,N,U):M=Z.label=la.text(ca,oa,Y).drag(ha,ma,sa).hover(ra,ya),M.x=ca._x,M.x=ca._x,M.y=ca._y,M.data("plotItem",ca.plotItem).data("eventArgs",ca.eventArgs),ca.visibility===Ea&&M.show())});else{for(e=ba.length-1;0<=e;e--)if(E=ba[e],da=E.config,ca=da._textAttrs,ca.text=da.displayValue)Z=E.graphics,null!==da.y&&void 0!==da.y&&(M=Z.label,(ja=Z.connector)&&ja.show(),M&&M.show()),ca.text=da.displayValue,ca.transform="t0,0",G=da.angle%q, 0>G&&(G=q+G),u=0<=G&&Gh?u/D:A,S=H/2);P=D*H;J=u;for(e=0;eD&&(O=D),J=O+H,P=void 0===da.clearance?2*a(ia(parseFloat(da.style.border),12),12):2*a(ia(parseFloat(da.style.border),da.clearance)),Ja=(O+t[e].oriY)/2,O=z+l[ba]*n*pa(xa.asin(Ja/u)),Ja*=c[ba],Ja+=y,ga=y+r*va(G),T=z+r*pa(G),(2>ba&&OT)&&(O=T),Q=O+K[ba],aa=Ja-S-2,Ra=Q+K[ba],ca._x=Ra,I&&(W=1H&&(Ja+=H),ca.text=P.text,ca.tooltip=P.tooltext),ca._y=aa,E&&(ea=da.transX,V=da.transY,Q+=ea,O+=ea,T+=ea,ga+=V,Ra+=ea),ca["text-anchor"]=$a,ca.vAlign="middle",ca.x=Ra,ca.y=Ja,(P=M&&M.data("textPos"))?M.attr({x:P.x,y:P.y}).animateWith(R,fa,ca,N):M=Z.label=la.text(ca,oa,Y).drag(ha,ma,sa).hover(ra,ya),M.x=ca._x,M._x=ca._x,M.y=ca._y, ca.tooltip&&(M.tooltip(ca.tooltip),delete ca.tooltip),ca.visibility===Ea&&M.show(),M.data("textPos",{x:Ra,y:Ja}).data("plotItem",ca.plotItem).data("eventArgs",ca.eventArgs),ja=Z.connector))da.connectorPath=P=["M",T,ga,"L",B?O:T,Ja,Q,Ja],(E=ja.data("connectorPath"))?w.clicked||ja.attr({path:E.path}).animateWith(R,fa,{path:P},N):ja.attr({path:P}),ja.data("connectorPath",{path:P})}}}}(),_spaceManager:function(){var d=this.config,a=this.components,g=a.dataset[0],b=g.components.data,l=g.config,e=a.legend, c=a.colorManager,f=this.linkedItems.smartLabel,r=l.dataLabelCounter,w=0,u=this.jsonData.chart,a=ia(u.managelabeloverflow,0),F=ia(u.slicingdistance),t=l.preSliced||d.allPlotSliceEnabled!==aa||u.showlegend===N&&u.interactivelegend!==aa?Fa(ia(F,20)):0,k=ia(u.pieradius,0),m=(F=ia(u.enablesmartlabels,u.enablesmartlabel,1))?ia(u.skipoverlaplabels,u.skipoverlaplabel,1):0,h=ia(u.issmartlineslanted,1),q=r?ia(u.labeldistance,u.nametbdistance,5):t,p=ia(u.smartlabelclearance,5),v=d.width,C=d.height,D=(this._manageActionBarSpace(.225* C)||{}).bottom,v=v-(d.marginRight+d.marginLeft),C=C-(d.marginTop+d.marginBottom)-(D?D+d.marginBottom:0),D=Aa(C,v),P=za(u.smartlinecolor,c.getColor("plotFillColor")),n=ia(u.smartlinealpha,100),A=ia(u.smartlinethickness,.7),g=l.dataLabelOptions=g._parseDataLabelOptions(),c=g.style,c=r?ia(parseInt(c.lineHeight,10),12):0,x=0===k?.15*D:k,G=2*x,J={bottom:0,right:0},y=l.pieYScale,D=l.pieSliceDepth;g.connectorWidth=A;g.connectorPadding=ia(u.connectorpadding,5);g.connectorColor=I(P,n);r&&(F&&(q=p),q+=t);p= G+2*(c+q);p=this._manageChartMenuBar(pd?D-d:l.pieSliceDepth;g.isSmartLineSlanted=h;g.enableSmartLabels=F;g.skipOverlapLabels=m;g.manageLabelOverflow=a},_stubRadius:function(d,a,g,b,l,e,c){var f=this.components.dataset[0],r=f.config,w=ia(this.jsonData.chart.slicingdistance),f=r.dataLabelOptions||(r.dataLabelOptions=f._parseDataLabelOptions()),u=0,u=Aa(d/2-a-l,g/2-e)-b;u>=c?c=u:w||(l=b=Ba(Aa(b-(c-u),l),10));r.slicingDistance=l;r.pieMinRadius=c;f.distance=b;return c}, getDataSet:function(d){return this.components.dataset[d]},_startingAngle:function(d,a){var g,b=this.components.dataset[0].config,l=(g=b.startAngle)*-h+(0>-1*g?360:0);isNaN(d)||(b.singletonCase||b.isRotating?l=b.startAngle:(d+=a?l:0,b.startAngle=-d*c,this._rotate(d),l=d));return qa(100*((l%=360)+(0>l?360:0)))/100},eiMethods:{isPlotItemSliced:function(d){var a,g,b,l=this.apiInstance;return l&&l.components.dataset&&(b=l.components.dataset[0])&&(a=b.components.data)&&a.length&&a[d]&&(g=a[d].config)&& g.sliced},addData:function(){var d,a=this.apiInstance;return a&&a.components.dataset&&(d=a.components.dataset[0])&&d.addData.apply(d,arguments)},removeData:function(){var d,a=this.apiInstance;return a&&a.components.dataset&&(d=a.components.dataset[0])&&d.removeData.apply(d,arguments)},updateData:function(){var d,a=this.apiInstance;return a&&a.components.dataset&&(d=a.components.dataset[0])&&d.updateData.apply(d,arguments)},slicePlotItem:function(d,a){var g,b,l,e,c=this.apiInstance;return c&&c.components.dataset&& (g=c.components.dataset[0])&&(b=g.components.data)&&(e=b.length)&&b[d=g.config.reversePlotOrder?e-d-1:d]&&(l=b[d].config)&&((!!a!==l.sliced||void 0===a)&&c._plotGraphicClick.call(b[d].graphics.element)||l.sliced)},centerLabel:function(d,a){var g=this.apiInstance,b=g.components.dataset[0],l=b.config,e=l.piePlotOptions.innerSize,c=l.pieCenter,f=c[0],c=c[1],l=l.centerLabelConfig,r;if("object"!==typeof a)a=l;else for(r in l)void 0===a[r]&&(a[r]=l[r]);a.label=d;b.centerLabelConfig=a;e&&g.drawDoughnutCenterLabel(d|| "",f,c,e,e,a,!0)},startingAngle:function(d,a){return this.apiInstance._startingAngle(d,a)}}},k.guageBase,{plotborderthickness:1,alphaanimation:0,singletonPlaceValue:!0,usedataplotcolorforlabels:0,enableslicing:N});k("pie3d",{defaultDatasetType:"Pie3D",applicableDSList:{Pie3D:!0},is3D:!0,friendlyName:"3D Pie Chart",fireGroupEvent:!0,creditLabel:D,getPointColor:function(d){return d},_configureManager:function(){var d=this.components.dataset[0],a=d.config,g=d.components,d=g.Pie3DManager,g=g.data;d&& d.configure(a.pieSliceDepth,1===g.length,a.use3DLighting,!1)},defaultPlotShadow:0,_preDrawCalculate:function(){var d,a,g=this.config,c=0,l=this.components.dataset[0],e=l.config;d=l.components;a=e.dataLabelOptions;var f=e.pie3DOptions=l._parsePie3DOptions(),k=za(e.startAngle,0)%q,r=e.managedPieSliceDepth,w=e.slicedOffset=f.slicedOffset,u=g.canvasWidth,F=g.canvasHeight,t=[g.canvasLeft+.5*u,g.canvasTop+.5*F-.5*r],m,h,g=d.data,p,v=Aa(u,F),C,Ka=a.distance;m=e.pieYScale;var D=e.slicedOffsetY||(e.slicedOffsetY= w*e.pieYScale);p=d.Pie3DManager;t.push(2*e.pieMinRadius,f.innerSize||0);t=ua(t,function(d,a){return(C=/%$/.test(d))?[u,F-r,v,v][a]*parseInt(d,10)/100:d});t[2]/=2;t[3]/=2;t.push(t[2]*m);t.push((t[2]+t[3])/2);t.push(t[5]*m);l.getX=function(d,a){h=xa.asin((d-t[1])/(t[2]+Ka));return t[0]+(a?-1:1)*pa(h)*(t[2]+Ka)};e.center=t;Ia(g,function(d){c+=d.config.y});e.labelsRadius=t[2]+Ka;e.labelsRadiusY=e.labelsRadius*m;e.quadrantHeight=(F-r)/2;e.quadrantWidth=u/2;l=qa(1E3*k)/1E3;f=l+q;k=ia(parseInt(a.style.fontSize, 10),10)+4;e.maxLabels=b(e.quadrantHeight/k);e.labelFontSize=k;e.connectorPadding=ia(a.connectorPadding,5);e.isSmartLineSlanted=za(a.isSmartLineSlanted,!0);e.connectorWidth=ia(a.connectorWidth,1);e.enableSmartLabels=a.enableSmartLabels;p||(p=d.Pie3DManager=new la(this),this.get("graphics","datasetGroup").trackTooltip(!0));this._configureManager();for(d=g.length-1;0<=d;--d)a=g[d],a=a.config,k=l,p=c?a.y/c:0,l=qa(1E3*(l+p*q))/1E3,l>f&&(l=f),m=l,a.shapeArgs={start:qa(1E3*k)/1E3,end:qa(1E3*m)/1E3},a.centerAngle= h=(m+k)/2%q,a.slicedTranslation=[qa(pa(h)*w),qa(va(h)*D)],k=pa(h)*t[2],e.radiusY=m=va(h)*t[4],a.tooltipPos=[t[0]+.7*k,t[1]+m],a.percentage=100*p,a.total=c},placeDataLabels:function(){var d=function(d,a){return d.point.value-a.point.value},b=function(d,a){return d.angle-a.angle},g=["start","start","end","end"],c=[-1,1,1,-1],l=[1,1,-1,-1];return function(e){var ba,k,r=this.config,w=this.components,u=w.dataset[0],F=u.config,t=u.components.data,h=F.piePlotOptions,p=r.canvasLeft,C=r.canvasTop,D=r.canvasWidth, n=p+.5*r.canvasWidth,Ka=C+.5*r.canvasHeight,B=this.linkedItems.smartLabel,A=F.dataLabelOptions,P=A.style;ba=ia(a(parseFloat(P.lineHeight)),12);ba=Ya(A.placeInside,!1);var x=A.skipOverlapLabels,I=A.manageLabelOverflow,K=A.connectorPadding,G=A.distance,J=A.connectorWidth,y=[[],[],[],[]],z=parseInt(P.fontSize,10),H=z,S=H/2,K=[K,K,-K,-K],O=A.isSmartLineSlanted,W,E,T,Q,Z,aa,ga,X,N,ja,M,ea,V,ka,R,G=0ja&&(ja=q+ja),ea=0<=ja&&jama?ha/ba:z,S=H/2);F=ba*H;P=ha;for(w=0;wt&&(E=t),P=E+H,ga=(E+u[w].oriY)/2,E=U+l[r]*Ka*pa(xa.asin(ga/ha)),ga*=c[r],ga+=fa,X=fa+n*va(ja),Q=U+h*pa(ja),(2>r&&EQ)&&(E=Q),Z=E+K[r],N=ga+S-2,aa= Z+K[r],Y._x=aa,I&&(W=1=c?c=u:w||(l=b=Ba(Aa(b-(c-u),l),10));r.slicingDistance=l;r.pieMinRadius=c;f.distance=b;return c},_startingAngle:function(d,a){var g,b=this.components.dataset[0].config,l=(g=b.startAngle)+(0>g?360:0);isNaN(d)||b.singletonCase||b.isRotating|| (d+=a?l:0,this._rotate(d),l=d);return qa(100*((l%=360)+(0>l?360:0)))/100}},k.pie2d,{plotborderthickness:.1,alphaanimation:1});k("doughnut2d",{friendlyName:"Doughnut Chart",defaultDatasetType:"Doughnut2D",creditLabel:D,applicableDSList:{Doughnut2D:!0},getPointColor:function(d,a,g){var c;d=A(d);a=n(a);100>g&&ra?(c=C(d,b(100*(85-.2*(100-g)))/100),d=p(d,b(100*(100-.5*g))/100),a={FCcolor:{color:c+","+d+","+d+","+c,alpha:a+","+a+","+a+","+a,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:g}}):a={FCcolor:{color:d+ ","+d,alpha:a+","+a,ratio:"0,100"}};return a},drawDoughnutCenterLabel:function(d,a,g,b,c,e,f){var k=this.components,r=k.dataset[0].config;e=e||r.lastCenterLabelConfig;var k=k.paper,w=this.linkedItems.smartLabel,u=this.graphics,F=u.datasetGroup,t=e.padding,h=2*e.textPadding,m={fontFamily:e.font,fontSize:e.fontSize+"px",lineHeight:1.2*e.fontSize+"px",fontWeight:e.bold?"bold":"",fontStyle:e.italic?"italic":""},p=1.414*(.5*b-t)-h;c=1.414*(.5*c-t)-h;var q;w.setStyle(m);w.useEllipsesOnOverflow(this.config.useEllipsesWhenOverflow); w=w.getSmartText(d,p,c);(c=u.doughnutCenterLabel)?(c.attr("text")!==d&&this.centerLabelChange(d),q=u.centerLabelOvalBg):(e.bgOval&&(u.centerLabelOvalBg=q=k.circle(a,g,.5*b-t,F)),c=u.doughnutCenterLabel=k.text(F).hover(this.centerLabelRollover,this.centerLabelRollout).click(this.centerLabelClick),c.chart=this);d?(c.css(m).attr({x:a,y:g,text:w.text,visibility:Ea,direction:r.textDirection,fill:R({FCcolor:{color:e.color,alpha:e.alpha}}),"text-bound":e.bgOval?"none":[R({FCcolor:{color:e.bgColor,alpha:e.bgAlpha}}), R({FCcolor:{color:e.borderColor,alpha:e.borderAlpha}}),e.borderThickness,e.textPadding,e.borderRadius]}).tooltip(e.toolText||w.tooltext),e.bgOval&&q&&q.attr({visibility:Ea,fill:Na(e.bgColor),"fill-opacity":e.bgAlpha/100,stroke:Na(e.borderColor),"stroke-width":e.borderThickness,"stroke-opacity":e.borderAlpha/100})):(c.attr("visibility","hidden"),q&&q.attr("visibility","hidden"));f&&(r.lastCenterLabelConfig=e,r.centerLabelConfig=e)},centerLabelRollover:function(){var d=this.chart,a=d.config,g=d.chartInstance, b=g.ref,c=d.components.dataset[0].config.lastCenterLabelConfig,a={height:a.height,width:a.width,pixelHeight:b.offsetHeight,pixelWidth:b.offsetWidth,id:g.id,renderer:g.args.renderer,container:d.linkedItems.container,centerLabelText:c&&c.label};this.attr("text")&&ha.raiseEvent("centerLabelRollover",a,g,this,d.hoverOnCenterLabel)},centerLabelRollout:function(){var d=this.chart,a=d.config,g=d.chartInstance,b=g.ref,c=d.components.dataset[0].config.lastCenterLabelConfig,a={height:a.height,width:a.width, pixelHeight:b.offsetHeight,pixelWidth:b.offsetWidth,id:g.id,renderer:g.args.renderer,container:d.linkedItems.container,centerLabelText:c&&c.label};this.attr("text")&&ha.raiseEvent("centerLabelRollout",a,g,this,d.hoverOffCenterLabel)},centerLabelClick:function(){var d=this.chart,a=d.config,g=d.chartInstance,b=g.ref,c=d.components.dataset[0].config.lastCenterLabelConfig,d={height:a.height,width:a.width,pixelHeight:b.offsetHeight,pixelWidth:b.offsetWidth,id:g.id,renderer:g.args.renderer,container:d.linkedItems.container, centerLabelText:c&&c.label};this.attr("text")&&ha.raiseEvent("centerLabelClick",d,g)},centerLabelChange:function(d){var a=this.config,g=this.chartInstance,b=g.ref;ha.raiseEvent("centerLabelChanged",{height:a.height,width:a.width,pixelHeight:b.offsetHeight,pixelWidth:b.offsetWidth,id:g.id,renderer:g.args.renderer,container:this.linkedItems.container,centerLabelText:d},g)},hoverOnCenterLabel:function(){var d=this.chart.components.dataset[0].config.lastCenterLabelConfig;(d.hoverColor||d.hoverAlpha)&& this.attr({fill:R({FCcolor:{color:d.hoverColor||d.color,alpha:d.hoverAlpha||d.alpha}})})},hoverOffCenterLabel:function(){var d=this.chart.components.dataset[0].config.lastCenterLabelConfig;(d.hoverColor||d.hoverAlpha)&&this.attr({fill:R({FCcolor:{color:d.color,alpha:d.alpha}})})}},k.pie2d,{singletonPlaceValue:!1});k("doughnut3d",{friendlyName:"3D Doughnut Chart",defaultDatasetType:"Doughnut3D",creditLabel:D,applicableDSList:{Doughnut3D:!0},_configureManager:function(){var d=this.components.dataset[0], a=d.config,g=d.components,d=g.Pie3DManager,g=g.data;d&&d.configure(a.pieSliceDepth,1===g.length,a.use3DLighting,!0)}},k.pie3d);k("mscolumn2d",{standaloneInit:!0,friendlyName:"Multi-series Column Chart",creditLabel:D,defaultDatasetType:"column",applicableDSList:{column:!0},eiMethods:{}},k.mscartesian);k("mscolumn3d",{standaloneInit:!0,defaultDatasetType:"column3d",friendlyName:"Multi-series 3D Column Chart",applicableDSList:{column3d:!0},defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,creditLabel:D, defaultZeroPlaneHighlighted:!1},k.mscartesian3d,{showplotborder:0});k("msbar2d",{standaloneInit:!0,friendlyName:"Multi-series Bar Chart",isBar:!0,hasLegend:!0,creditLabel:D,defaultDatasetType:"bar2d",applicableDSList:{bar2d:!0}},k.msbarcartesian);k("msbar3d",{standaloneInit:!0,defaultSeriesType:"bar3d",friendlyName:"Multi-series 3D Bar Chart",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0,isBar:!0,hasLegend:!0,creditLabel:D,defaultZeroPlaneHighlighted:!1,defaultDatasetType:"bar3d",applicableDSList:{bar3d:!0}}, k.msbarcartesian3d,{showplotborder:0});k("msarea",{standaloneInit:!0,friendlyName:"Multi-series Area Chart",creditLabel:D,defaultDatasetType:"area",defaultPlotShadow:0,applicableDSList:{area:!0}},k.areabase);k("msline",{standaloneInit:!0,friendlyName:"Multi-series Line Chart",creditLabel:D,defaultDatasetType:"line",defaultPlotShadow:1,axisPaddingLeft:0,axisPaddingRight:0,applicableDSList:{line:!0}},k.areabase,{zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0});k("stackedarea2d",{friendlyName:"Stacked Area Chart", showsum:0,creditLabel:D},k.msarea,{plotfillalpha:Qa,isstacked:1});k("stackedcolumn2d",{friendlyName:"Stacked Column Chart",creditLabel:D},k.mscolumn2d,{isstacked:!0});k("stackedcolumn3d",{friendlyName:"3D Stacked Column Chart",creditLabel:D},k.mscolumn3d,{showplotborder:0},k.stackedcolumn2d);k("stackedbar2d",{friendlyName:"Stacked Bar Chart",creditLabel:D},k.msbar2d,{maxbarheight:50},k.stackedcolumn2d);k("stackedbar3d",{friendlyName:"3D Stacked Bar Chart",creditLabel:D},k.msbar3d,{showplotborder:0}, k.stackedcolumn2d);k("marimekko",{standaloneInit:!0,friendlyName:"Marimekko Chart",isValueAbs:!0,distributedColumns:!0,stack100percent:!0,defaultDatasetType:"marimekko",applicableDSList:{marimekko:!0},isStacked:!0,showsum:1,creditLabel:D,_setAxisLimits:function(){var d=this.components,a=d.dataset,g=d.yAxis,d=d.xAxis,b,c=a.length,e,f=-Infinity,k=Infinity,r=Infinity,w=-Infinity,u,F,t={};u=this.config.categories;var h=[],m=function(d){f=Ba(f,d.max);k=Aa(k,d.min);w=Ba(w,d.xMax||-Infinity);r=Aa(r,d.xMin|| Infinity)};for(e=0;ee&&u.splice(e,F-e);this._setCategories(); e=d[0].getLimit();r=e.min;w=e.max;u=r;F=w-r;for(e=0;em)for(F=c,h=h-m+c;Fb)for(F=a,h=D-b+a;Ft&&f.removeData(t,u-t,!1),f.JSONData=g,f.configure()):(f.chart=this,f.index=x,f.init(g)),B.push(f),e.push(f), x++;p=C&&C.length;if(p>b)for(F=a,h=p-b+a;Fk;r=pa(e);w=va(e);u=pa(k);F=va(k);t=J+z*r;n=y+H*w;C=J+S*r;D=y+O*w; M=n+T;ea=J+z*u;V=y+H*F;A=J+S*u;B=y+O*F;ka=V+T;aa?(x=J+W*r,K=y+E*w,G=K+T,I=J+W*u,P=y+E*F,Z=P+T,a.startSlice=["M",t,n,"L",t,M,x,G,x,K,"Z"],a.endSlice=["M",ea,V,"L",ea,ka,I,Z,I,P,"Z"]):(a.startSlice=["M",t,n,"L",t,M,J,Q,J,y,"Z"],a.endSlice=["M",ea,V,"L",ea,ka,J,Q,J,y,"Z"]);ra?(p=(e>k?q:0)+k-e,a.clipTopPath=aa?[["M",t,n,"A",z,H,0,p>m?1:0,1,ea,V,"L",I,P,"A",W,E,0,p>m?1:0,0,x,K,"Z"]]:[["M",t,n,"A",z,H,0,p>m?1:0,1,ea,V,"L",J,y,"Z"]],a.clipOuterFrontPath1=[ja],a.clipTopBorderPath=[["M",C,D,"A",S,O,0,p>m? 1:0,1,A,B,"L",ea,V,ea,V+1,"A",z,H,0,p>m?1:0,0,t,n+1,"L",t,n,"Z"]],h!=l?e>k?em?(a.clipOuterFrontPath=[["M",X,y,"A",z,H,0,1,1,R,y,"v",T,"A",z,H,0,1,0,X,y+T,"Z"]],a.clipOuterBackPath=[["M",R,y,"A",z,H,0,0,1,ea,V,"v",T,"A",z,H,0,0,0,R,y+T,"Z","M",X,y,"A",z,H,0,0,0,t,n,"v",T,"A",z,H,0,0,1,X,y+T,"Z"]],aa&&(a.clipInnerFrontPath=[["M",ga,y,"A",W,E,0,1,1,U,y,"v",T,"A",W,E,0,1,0,ga,y+T,"Z"]],a.clipInnerBackPath=[["M",U,y,"A",W,E,0,0,1,I,P,"v",T,"A",W,E,0,0,0,U,y+T,"Z","M",ga,y,"A",W,E,0,0,0,x,K,"v",T,"A",W,E,0,0,1,ga,y+T,"Z"]])):(a.clipOuterFrontPath= [["M",X,y,"A",z,H,0,0,1,ea,V,"v",T,"A",z,H,0,0,0,X,y+T,"Z"]],a.clipOuterBackPath=[["M",t,n,"A",z,H,0,0,1,X,y,"v",T,"A",z,H,0,0,0,t,M,"Z"]],aa&&(a.clipInnerFrontPath=[["M",ga,y,"A",W,E,0,0,1,I,P,"v",T,"A",W,E,0,0,0,ga,y+T,"Z"]],a.clipInnerBackPath=[["M",x,K,"A",W,E,0,0,1,ga,y,"v",T,"A",W,E,0,0,0,x,G,"Z"]])):em?(a.clipOuterFrontPath=[["M",t,n,"A",z,H,0,0,1,R,y,"v",T,"A",z,H,0,0,0,t,M,"Z"]],a.clipOuterBackPath=[["M",R,y,"A",z,H,0,0,1,ea,V,"v",T,"A",z,H,0,0,0,R,y+T,"Z"]],aa&&(a.clipInnerFrontPath= [["M",x,K,"A",W,E,0,0,1,U,y,"v",T,"A",W,E,0,0,0,x,G,"Z"]],a.clipInnerBackPath=[["M",U,y,"A",W,E,0,0,1,I,P,"v",T,"A",W,E,0,0,0,U,y+T,"Z"]])):(a.clipOuterFrontPath=[["M",t,n,"A",z,H,0,0,1,ea,V,"v",T,"A",z,H,0,0,0,t,M,"Z"]],a.clipOuterBackPath=[ja],aa&&(a.clipInnerFrontPath=[["M",x,K,"A",W,E,0,0,1,I,P,"v",T,"A",W,E,0,0,0,x,G,"Z"]],a.clipInnerBackPath=[ja])):(a.clipOuterFrontPath=[ja],a.clipOuterBackPath=[["M",t,n,"A",z,H,0,0,1,ea,V,"v",T,"A",z,H,0,0,0,t,M,"Z"]],aa&&(a.clipInnerFrontPath=[ja],a.clipInnerBackPath= [["M",x,K,"A",W,E,0,0,1,I,P,"v",T,"A",W,E,0,0,0,x,G,"Z"]])):a.clipOuterFrontPath=a.clipOuterBackPath=a.clipInnerBackPath=a.clipInnerFrontPath=[ja],da="litepath",a.clipBottomBorderPath=a.clipTopPath,a.startSlice=[a.startSlice],a.endSlice=[a.endSlice]):(S=this.moveCmdArr,O=this.lineCmdArr,r=this.closeCmdArr,T=[J,y],w=[R,y],ha=[J,ha],u=[X,y],F=[J,y+H],ja=[R,Q],ia=[X,Q],C=[U,y],D=[ga,y],A=[U,Q],B=[ga,Q],a.clipOuterFrontPath1=[],h!=l?(e>k?em?(h=b(J,y,t,n,X,y,z,H,1,0),l=b(J,y,X,y,R,y,z,H,1,0),V=b(J,y,R,y,ea,V,z,H,1,0),a.clipOuterFrontPath=S.concat(u,l,O,ja,b(J,Q,R,Q,X,Q,z,H,0,0),r),a.clipOuterBackPath=S.concat([t,n],h,O,ia,b(J,Q,X,Q,t,M,z,H,0,0),r,S,w,V,O,[ea,ka],b(J,Q,ea,ka,R,Q,z,H,0,0),r),a.clipTopBorderPath=S.concat([t,n],h,l,V),aa?(z=b(J,y,I, P,U,y,W,E,0,0),H=b(J,y,U,y,ga,y,W,E,0,0),K=b(J,y,ga,y,x,K,W,E,0,0),a.clipInnerFrontPath=S.concat(C,H,O,B,b(J,Q,ga,Q,U,Q,W,E,1,0),r),a.clipInnerBackPath=S.concat(D,K,O,[x,G],b(J,Q,x,G,ga,Q,W,E,1,0),r,S,[I,P],z,O,A,b(J,Q,U,Q,I,Z,W,E,1,0),r),a.clipTopPath=a.clipTopBorderPath.concat(O,[I,P],z,H,K,r),a.clipTopBorderPath=a.clipTopBorderPath.concat(S,[I,P],z,H,K)):a.clipTopPath=a.clipTopBorderPath.concat(O,T,r)):(h=b(J,y,t,n,X,y,z,H,1,0),l=b(J,y,X,y,ea,V,z,H,1,0),a.clipOuterFrontPath=S.concat(u,l,O,[ea, ka],b(J,Q,ea,ka,X,Q,z,H,0,0),r),a.clipOuterBackPath=S.concat([t,n],h,O,ia,b(J,Q,X,Q,t,M,z,H,0,0),r),a.clipTopBorderPath=S.concat([t,n],h,l),aa?(z=b(J,y,I,P,ga,y,W,E,0,0),H=b(J,y,ga,y,x,K,W,E,0,0),a.clipInnerFrontPath=S.concat([I,P],z,O,B,b(J,Q,ga,Q,I,Z,W,E,1,0),r),a.clipInnerBackPath=S.concat(D,H,O,[x,G],b(J,Q,x,G,ga,Q,W,E,1,0),r),a.clipTopPath=a.clipTopBorderPath.concat(O,[I,P],z,H,r),a.clipTopBorderPath=a.clipTopBorderPath.concat(S,[I,P],z,H)):a.clipTopPath=a.clipTopBorderPath.concat(O,T,r)):e< m?k>m?(h=b(J,y,t,n,R,y,z,H,1,0),l=b(J,y,R,y,ea,V,z,H,1,0),a.clipOuterBackPath=S.concat(w,l,O,[ea,ka],b(J,Q,ea,ka,R,Q,z,H,0,0),r),a.clipOuterFrontPath=S.concat([t,n],h,O,ja,b(J,Q,R,Q,t,M,z,H,0,0),r),a.clipTopBorderPath=S.concat([t,n],h,l),aa?(z=b(J,y,I,P,U,y,W,E,0,0),H=b(J,y,U,y,x,K,W,E,0,0),a.clipInnerBackPath=S.concat([I,P],z,O,A,b(J,Q,U,Q,I,Z,W,E,1,0),r),a.clipInnerFrontPath=S.concat(C,H,O,[x,G],b(J,Q,x,G,U,Q,W,E,1,0),r),a.clipTopPath=a.clipTopBorderPath.concat(O,[I,P],z,H,r),a.clipTopBorderPath= a.clipTopBorderPath.concat(S,[I,P],z,H)):a.clipTopPath=a.clipTopBorderPath.concat(O,T,r)):(h=b(J,y,t,n,ea,V,z,H,1,0),a.clipOuterBackPath=S.concat([t,n]),a.clipTopBorderPath=a.clipOuterBackPath.concat(h),a.clipOuterFrontPath=a.clipTopBorderPath.concat(O,[ea,ka],b(J,Q,ea,ka,t,M,z,H,0,0),r),aa?(z=b(J,y,I,P,x,K,W,E,0,0),a.clipInnerBackPath=S.concat([I,P]),a.clipTopPath=a.clipTopBorderPath.concat(O,[I,P],z,r),a.clipTopBorderPath=a.clipTopBorderPath.concat(S,[I,P],z),a.clipInnerFrontPath=a.clipInnerBackPath.concat(z, O,[x,G],b(J,Q,x,G,I,Z,W,E,1,0),r)):a.clipTopPath=a.clipTopBorderPath.concat(O,T,r)):(h=b(J,y,t,n,ea,V,z,H,1,0),a.clipOuterFrontPath=S.concat([t,n]),a.clipTopBorderPath=a.clipOuterFrontPath.concat(h),a.clipOuterBackPath=a.clipTopBorderPath.concat(O,[ea,ka],b(J,Q,ea,ka,t,M,z,H,0,0),r),aa?(z=b(J,y,I,P,x,K,W,E,0,0),a.clipInnerFrontPath=S.concat([I,P]),a.clipTopPath=a.clipTopBorderPath.concat(O,[I,P],z,r),a.clipTopBorderPath=a.clipTopBorderPath.concat(a.clipInnerFrontPath,z),a.clipInnerBackPath=a.clipInnerFrontPath.concat(z, O,[x,G],b(J,Q,x,G,I,Z,W,E,1,0),r)):a.clipTopPath=a.clipTopBorderPath.concat(O,T,r)),h=S.concat(w,O,u),z=S.concat(ha,O,F),a.clipTopPath=a.clipTopPath.concat(h,z),a.clipOuterFrontPath=a.clipOuterFrontPath.concat(h),a.clipOuterFrontPath1=a.clipOuterFrontPath1.concat(h),a.clipOuterBackPath=a.clipOuterBackPath.concat(h),aa&&(z=S.concat(C,O,D),a.clipInnerFrontPath=a.clipInnerFrontPath.concat(z),a.clipInnerBackPath=a.clipInnerBackPath.concat(z))):(a.clipTopPath=a.clipOuterFrontPath=a.clipOuterBackPath=[], aa&&(a.clipInnerFrontPath=a.clipInnerBackPath=[])),a.clipBottomBorderPath=a.clipTopBorderPath);c||(N.startSlice._conf.index=e,N.endSlice._conf.index=k,N.backOuter._conf.index=x=la&&(e<=v||k>v)||e<=v&&k>v?v:e>m?e:k,N.frontOuter._conf.index=b=k<=f?k:e>k||e<=f?f:e,N.frontOuter1._conf.index=e,N.frontOuter1._conf.cIndex=m,e>k?(N.backOuter._conf.cIndex=em?N.frontOuter1.show().attr(da,a.clipOuterFrontPath1):N.frontOuter1.hide(),a.thisElement._attr(da,a.clipTopPath),N.bottom.attr(da,a.clipTopPath),N.bottomBorder.attr(da,a.clipBottomBorderPath),N.topBorder&&N.topBorder.attr(da,a.clipTopBorderPath),N.frontOuter.attr(da,a.clipOuterFrontPath),N.backOuter.attr(da,a.clipOuterBackPath),aa&&(N.backInner.attr(da,a.clipInnerBackPath),N.frontInner.attr(da,a.clipInnerFrontPath),N.backInner._conf.index=x,N.frontInner._conf.index= b,e>k?(N.backInner._conf.cIndex=q,N.frontInner._conf.cIndex=0):N.backInner._conf.cIndex=N.frontInner._conf.cIndex=ma),this.hasOnePoint?(N.startSlice.hide(),N.endSlice.hide()):(N.startSlice.attr(da,a.startSlice).show(),N.endSlice.attr(da,a.endSlice).show()))},_setSliceCosmetics:function(a){var b=a.thisElement,c=a.showBorderEffect,f=a.elements,h=I(a.borderColor,ia(a.borderAlpha,a.alpha)),e=a.borderWidth,k;a.color&&(a=this._parseSliceColor(a.color,a.alpha,a),ra?(k={fill:R(a.top),"stroke-width":0},c? f.topBorder.show().attr({fill:R(a.topBorder),"stroke-width":0}):(f.topBorder.hide(),k.stroke=h,k["stroke-width"]=e),b._attr(k)):(b._attr({fill:R(a.top),"stroke-width":0}),f.topBorder.attr({stroke:h,"stroke-width":e})),f.bottom.attr({fill:R(a.bottom)}),f.bottomBorder.attr({stroke:h,"stroke-width":e}),f.frontOuter.attr({fill:R(a.frontOuter)}),f.frontOuter1.attr({fill:R(a.frontOuter)}),f.backOuter.attr({fill:R(a.backOuter)}),f.startSlice.attr({fill:R(a.startSlice),stroke:h,"stroke-width":e}),f.endSlice.attr({fill:R(a.endSlice), stroke:h,"stroke-width":e}),this.isDoughnut&&(f.frontInner.attr({fill:R(a.frontInner)}),f.backInner.attr({fill:R(a.backInner)})))},createSlice:function(){var a={stroke:!0,strokeWidth:!0,"stroke-width":!0,dashstyle:!0,"stroke-dasharray":!0,translateX:!0,translateY:!0,"stroke-opacity":!0,fill:!0,opacity:!0,transform:!0,ishot:!0,cursor:!0,start:!0,end:!0,color:!0,alpha:!0,borderColor:!0,borderAlpha:!0,borderWidth:!0,rolloverProps:!0,showBorderEffect:!0,positionIndex:!0,cx:!0,cy:!0,radiusYFactor:!0,r:!0, innerR:!0},b=function(b,c){var e,f,g=this,h=g._confObject,k={},l=h.elements,r,m,w,n=h.Pie3DManager,p;"string"===typeof b&&void 0!==c&&null!==c&&(e=b,b={},b[e]=c);if(b&&"string"!==typeof b){for(e in b)if(f=b[e],a[e])if(h[e]=f,"ishot"===e||"cursor"===e||"transform"===e)k[e]=f,p=!0;else if("start"===e||"end"===e||"cx"===e||"cy"===e||"radiusYFactor"===e||"r"===e||"innerR"===e)m=!0;else{if("color"===e||"alpha"===e||"borderColor"===e||"borderAlpha"===e||"borderWidth"===e)w=!0}else g._attr(e,f);m&&(n._setSliceShape(h), n.refreshDrawing());(w||m)&&n._setSliceCosmetics(h);if(p){for(r in l)l[r].attr(k);g._attr(k)}}else g=a[b]?h[b]:g._attr(b);return g},c=function(a,b){var c=this._confObject.elements,e;for(e in c)c[e].on(a,b);return this._on(a,b)},f=function(a,b,c){var e,d=this._confObject.elements,f=-1h&&b.removeData(h,c-h,!1),v[a].JSONData=q,v[a].configure(),v[a]._deleteGridImages&&v[a]._deleteGridImages()):(b=new c,v.push(b),b.chart=this,b.index=a,b.init(q))}if(A>p){m=A-p; b=a;for(p=m+a;bq&&hv&&mSwitch to Zoom Mode
Select a subset of data to zoom into it for detailed view"),btnSwitchToPinModeTooltext:sa(b.btnswitchtopinmodetooltext,"Switch to Pin Mode
Select a subset of data and compare with the rest of the view"), pinPaneFill:za(sa(b.pinpanebgcolor,h),G(b.pinpanebgalpha,15)),zoomPaneFill:za(sa(b.zoompanebgcolor,"#b9d5f1"),G(b.zoompanebgalpha,30)),zoomPaneStroke:za(sa(b.zoompanebordercolor,"#3399ff"),G(b.zoompaneborderalpha,80)),showPeakData:G(b.showpeakdata,0),maxPeakDataLimit:G(b.maxpeakdatalimit,b.maxpeaklimit,null),minPeakDataLimit:G(b.minpeakdatalimit,b.minpeaklimit,null),crossline:{enabled:G(b.showcrossline,1),line:{"stroke-width":G(b.crosslinethickness,1),stroke:Qa(sa(b.crosslinecolor,"#000000")),"stroke-opacity":G(b.crosslinealpha, 20)/100},labelEnabled:G(b.showcrosslinelabel,b.showcrossline,1),labelstyle:{fontSize:Ba(b.crosslinelabelsize)?Ba(b.crosslinelabelsize)+"px":a.outCanfontSize,fontFamily:sa(b.crosslinelabelfont,a.outCanfontFamily)},valueEnabled:G(b.showcrosslinevalues,b.showcrossline,1),valuestyle:{fontSize:Ba(b.crosslinevaluesize)?Ba(b.crosslinevaluesize)+"px":a.inCanfontSize,fontFamily:sa(b.crosslinevaluefont,a.inCanvasStyle.fontFamily)}},useCrossline:G(b.usecrossline,1),tooltipSepChar:sa(b.tooltipsepchar,", "),showTerminalValidData:G(b.showterminalvaliddata, 0),cdmchar:sa(b.dataseparator,"|"),cdm:G(b.compactdatamode,0)})},getValuePixel:function(a){var b=this.config.viewPortConfig;return b.ddsi+xa(a/b.ppp)},__toolbar:function(){var a,b,c,h,m=this,f=m.components,q=f.tb=new (FusionCharts.register("component",["toolbox","toolbox"])),v=q.getDefaultConfiguration(),A,n;q.init({iAPI:{chart:m},graphics:m.graphics,chart:m,components:f});a=f.toolBoxAPI||q.getAPIInstances(q.ALIGNMENT_HORIZONTAL);b=a.SymbolStore;c=a.ComponentGroup;h=a.Toolbar;A=a.Symbol;n=a.Scroller; q.graphics={};return{reInit:function(){q.init({iAPI:{chart:m},graphics:m.graphics,chart:m,components:f})},addSymbol:function(a,b,c,f){a=new A(a);c&&f.setConfiguaration({buttons:oa(oa({},v),c)});b.tooltext=c.tooltip;b&&a.attachEventHandlers(b);f.addSymbol(a);return a},addScroll:function(a,b){var c=new n(a);b&&c.attachEventHandlers(b);return c},addComponentGroup:function(a,b){var f;f=new c;f.setConfiguaration({group:{fill:b?b.fill:za("EBEBEB",0),borderThickness:b?G(b.borderThickness,0):0}});return f}, addToolBox:function(a){var b,c=new h;for(b=0;b(b=G(a.pixelsperpoint,15))&&(b=1);(c=G(a.pixelsperlabel,a.xaxisminlabelwidth,c.getAxisConfig("labels").rotation?20:60))U||U>=(N-1||1))&&(U=0);(l<=U||l>(N-1||1))&&(l=N-1||1);N=B.viewPortConfig=oa(B.viewPortConfig,{amrd:G(a.anchorminrenderdistance,20),nvl:G(a.numvisiblelabels,0),cdm:aa,oppp:b,oppl:c,dsi:U,dei:l, vdl:l-U,clen:N,offset:0,step:1,llen:0,alen:0,ddsi:U,ddei:l,ppc:0});if(N.clen){for(;fa--;)a=ba[fa].config,e=pa(e,a.drawanchors&&(a.anchorradius||0)+(Number(a.anchorborderthickness)||0)||0);B.overFlowingMarkerWidth=e;Z=B.canvasPadding=pa(e,Z);B._prezoomed=N.dei-N.dsie&&(b=e);A.transform(["T",b,f]);K.pintracker.transform(A.transform());R.svg||(d[0]=d[0]+b-m-this.__pindragdelta,A.attr("clip-rect",d));this.__pindragoffset=a},function(){this.__pinboundleft=0-q[0]+m+k;this.__pinboundright=this.__pinboundleft+h-q[2];this.data("cliprect",A.attr("clip-rect"));A._.clipispath=!0},function(){A._.clipispath=!1;this.__pindragdelta=this.__pindragoffset;delete this.__pindragoffset;delete this.__pinboundleft; delete this.__pinboundright}));d++;v=R.crispBound(k-d,X+D+d,x+d+d,B.scrollHeight,d);d--;ia(C,{attr:{stroke:B.zoomPaneStroke,fill:B.zoomPaneFill,strokeWidth:0},selectionStart:function(){},selectionEnd:function(a){var b=a.selectionLeft-k;a=b+a.selectionWidth;K.crossline&&K.crossline.hide();C[B.viewPortConfig.pinned?"pinRangePixels":"zoomRangePixels"](b,a)}});g&&0!==g.enabled&&1===B.useCrossline?(p||(p=K.crossline=new ta),p.configure(C,g)):(g&&(g.enabled=0),p&&p.hide())}},resetZoom:function(){var a= this.config.viewPortHistory,b=a[0];if(!a.length)return!1;a.length=0;this.zoomTo(b.dsi,b.dei,b)&&ua.raiseEvent("zoomReset",this._zoomargs,this.chartInstance,[this.chartInstance.id]);return!0},eiMethods:{zoomOut:function(){var a;if(a=this.apiInstance)return a.zoomOut&&a.zoomOut()},zoomTo:function(a,b){var c;if(c=this.apiInstance)return c.zoomRange&&c.zoomRange(a,b)},resetChart:function(){var a;if(a=this.apiInstance)a.pinRangePixels&&a.pinRangePixels(),a.resetZoom&&a.resetZoom()},setZoomMode:function(a){var b; (b=this.apiInstance)&&b.activatePin&&b.activatePin(!a)},getViewStartIndex:function(){var a;if(this.apiInstance&&(a=this.apiInstance.config.viewPortConfig))return a.ddsi},getViewEndIndex:function(){var a,b;if(this.apiInstance&&(a=this.apiInstance.config.viewPortConfig))return b=a.ddei-1,(b>=a.clen?a.clen:b)-1}},zoomOut:function(){var a,b,c=this.config;b=c.viewPortHistory;var h,m,f;a=b.pop();b=b[0]||c.viewPortConfig;a?(h=a.dsi,m=a.dei):c._prezoomed&&(h=0,m=b.clen-1);(f=this.zoomTo(h,m,a))&&ua.raiseEvent("zoomedout", f,this.chartInstance);return!0},zoomRangePixels:function(a,b){var c=this.config,h=c.viewPortHistory,c=c.viewPortConfig,m=c.ppp,f=c.ddsi,q;h.push(c);(q=this.zoomTo(f+xa(a/m),f+xa(b/m)))?ua.raiseEvent("zoomedin",q,this.chartInstance):h.pop()},zoomRange:function(a,b){var c,h,m=this.config,f=m.viewPortConfig;h=this.components.xAxis[0];var q=m.viewPortHistory,v;q.push(f);c=h.getPixel(a);h=h.getPixel(b);f.x=c;f.scaleX=m.canvasWidth/(c-h);(v=this.zoomTo(+a,+b))?ua.raiseEvent("zoomedin",v,this.chartInstance): q.pop()},zoomTo:function(a,b,c){var h,m;h=this.config;var f=this.components,q=h.viewPortConfig,v=h.canvasHeight;m=h.canvasLeft;var A=h.canvasTop,n=h.canvasBottom,C=h.viewPortHistory,p=q.clen,I=this.components.xAxis[0];0>a&&(a=0);a>=p-1&&(a=p-1);b<=a&&(b=a+1);b>p-1&&(b=p-1);if(a===b||a===q.dsi&&b===q.dei)return!1;this.pinRangePixels();q=oa({},q);q.dsi=a;q.dei=b;q=h.viewPortConfig=q;c?this.updateVisual(c.x,c.y,c.scaleX,c.scaleY):(c=I.getPixel(a),h=I.getPixel(b),m=this.getOriginalPositions(c-m,A,h-m, n-A),this.zoomSelection(m[0],0,m[2],v));f.scrollBar.node.attr({"scroll-ratio":q.vdl/(p-!!p),"scroll-position":[q.dsi/(p-q.vdl-1),!0]});f={level:C.length+1,startIndex:a,startLabel:I.getLabel(a).label,endIndex:b,endLabel:I.getLabel(b).label};ua.raiseEvent("zoomed",f,this.chartInstance,[this.chartInstance.id,a,b,f.startLabel,f.endLabel,f.level]);return f},activatePin:function(a){var b=this.config.viewPortConfig,c=this.components.tb.graphics.pinButton;if(b.pinned^(a=!!a))return a||this.pinRangePixels(), ua.raiseEvent("zoomModeChanged",{pinModeActive:a},this.chartInstance,[]),this.updateButtonVisual(c.node,a?"pressed":"enable"),b.pinned=a},updateButtonVisual:function(a,b){return a.attr({disable:{config:{hover:{fill:"#FFFFFF","stroke-width":1,stroke:"#E3E3E3",cursor:"default"},normal:{fill:"#FFFFFF",stroke:"#E3E3E3","stroke-width":1,cursor:"default"},disable:{fill:"#FFFFFF","stroke-width":1,stroke:"#E3E3E3","stroke-opacity":1,cursor:"default"},pressed:{fill:"#FFFFFF","stroke-width":1,stroke:"#E3E3E3", cursor:"default"}},"button-disabled":!1,stroke:"#E3E3E3","stroke-opacity":1},enable:{config:{hover:{fill:"#FFFFFF","stroke-width":1,stroke:"#aaaaaa",cursor:"pointer"},normal:{fill:"#FFFFFF",stroke:"#C2C2C2","stroke-width":1,cursor:"pointer"},disable:{fill:"#FFFFFF","stroke-width":1,stroke:"#E3E3E3","stroke-opacity":1,cursor:"pointer"},pressed:{fill:"#EFEFEF","stroke-width":1,stroke:"#C2C2C2",cursor:"pointer"}},"button-disabled":!1,fill:["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF",!0],stroke:"#C2C2C2", "stroke-opacity":1},pressed:{config:{pressed:{fill:["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF",!0]}},fill:["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF",!0],stroke:"#E3E3E3"}}[b])},pinRangePixels:function(a,b){var c,h=this.components,m=h.paper,f=this.graphics,q=this.config,v=q.canvasLeft,A=q.viewPortConfig,n=f.zoompin;c=f.pinrect;var C=q["clip-pinrect"],p=q._pingrouptransform,h=h.dataset,I=b-a,K,B,k,f=f.pintracker;if(A&&n&&c){if(a===b)return n.hide(),f.hide(),A.pinned=!1;for(k=h.length;k--;)K=h[k],c=K.graphics, B=c.pinline,B||(B=c.pinline=m.path(n)),B.attr({path:c.lineElement.attrs.path,transform:["T",-q._visx,-q._ymin]}).attr(K.config.pin);C[0]=a+v;C[2]=I;n.attr({"clip-rect":C,transform:p}).show();f.__pindragdelta=0;f.show().attr({transform:p,x:a,width:I});this.getValuePixel(a);this.getValuePixel(b);return A.pinned=!0}},_createLayers:function(){var a,b=this.components.paper;ma.scatter._createLayers.call(this);a=this.graphics;a.imageContainer=b.group("dataset-orphan",a.dataSetGroup);this.__preDraw();this.toogleDragPan(!0)}, getValue:function(a){var b=this.config,c=this.components,h=b.viewPortConfig;a=this.getOriginalPositions(a.x,a.y,a.x,a.y);var m=c.xAxis[0].config.axisRange,c=c.yAxis[0].config.axisRange,f=m.min,q=c.max;return{x:f+(a[0]-b.canvasLeft)/(b.canvasWidth*h.scaleX/(m.max-f)),y:q-(a[1]-b.canvasTop)/(b.canvasHeight*h.scaleY/(q-c.min))}},getOriginalPositions:function(a,b,c,h){var m=this.config,f=m.viewPortConfig,q=f.scaleX,v=f.scaleY,A=f.x,f=f.y,n=La(a,c);a=pa(a,c);c=La(b,h);b=pa(b,h);a=a>m.canvasWidth?m.canvasWidth: a;b=b>m.canvasHeight?m.canvasHeight:b;n=0>n?0:n;c=0>c?0:c;return[A+n/q,f+c/v,(a-n)/q,(b-c)/v]},zoomSelection:function(a,b,c,h){var m=this.config;c&&h&&(c=Math.abs(m.canvasWidth/c),h=Math.abs(m.canvasHeight/h),this.updateVisual(a,b,c,h))},updateVisual:function(a,b,c,h,m){var f=this.config,q=f.viewPortConfig,v=f.canvasWidth,A=f.canvasHeight,n=f.viewPortHistory.slice(-1)[0]||q,f=f.maxZoomLimit;q.x=isNaN(a)?a=n.x:a;q.y=isNaN(b)?b=n.y:b;q.scaleX=c||(c=n.scaleX);q.scaleY=h||(h=n.scaleY);c>f&&(q.x=La(a, v-v/f),q.scaleX=f);h>f&&(q.y=La(b,A-A/f),q.scaleY=f);this.updateManager(m)},toogleDragPan:function(a){var b=this.config.viewPortConfig,c=b.status;a&&(b.status="zoom"===c?"pan":"zoom")},resize:function(){var a=this.config,b=this.graphics,c=this.components.canvas,h=c.graphics,m=h.canvasBorderElement,h=h.canvasElement,c=c.config.canvasBorderThickness,f=c/2,q=a.canvasHeight-=c,v=a.canvasWidth-=2*c,A=a.canvasLeft+=c;a.canvasBottom-=c;a.canvasRight-=c;h?h.attr({x:A,y:a.canvasTop,height:q,width:v}):this.drawCanvas(); m&&m.attr({x:A-f,y:a.canvasTop-f,height:q+c,width:v+c,"stroke-width":c});b.imageContainer.attr({"clip-rect":a.canvasLeft+","+a.canvasTop+","+a.canvasWidth+","+a.canvasHeight}).transform("t"+a.canvasLeft+","+a.canvasTop);b.trackerElem.attr({x:a.canvasLeft,y:a.canvasTop,width:a.canvasWidth,height:a.canvasHeight});b.tracker&&b.tracker.attr({"clip-rect":a.canvasLeft+","+a.canvasTop+","+a.canvasWidth+","+a.canvasHeight})},updateManager:function(a){var b,c;c=this.components;var h=c.dataset,m=h.length;b= this.config;var f=b.viewPortConfig,q=b._ypvr,v=b._visw,A=this.components.xAxis[0],n=function(){return A.getPixel.apply(A,arguments)},C=A.getAxisConfig("labels").style,p,I,K,B,k,x=this.updateButtonVisual,G=c.tb.graphics,N=G.zoomOutButton,G=G.resetButton,D=b.viewPortHistory;if(b.legendClicked)for(a=0;aA.getCategoryLen()?f.scaleX=1:f.scaleX=A.getCategoryLen()/Math.abs(I-p-v-.9);void 0!==a&&c.scrollBar.node&&c.scrollBar.node.attr({"scroll-position":f._pos=a});c=A._getVisibleConfig();c=Math.ceil((c.maxValue-c.minValue+1)/k);b=b.viewPortConfig&&b.viewPortConfig.scaleX;b=Math.max(Math.round(A.getAxisConfig("labelStep")/ b),k?c:C*v);A.setLabelConfig({step:b});b=A.getAxisConfig("animateAxis");k=A.getAxisConfig("drawAxisName");a&&A.setAxisConfig({animateAxis:!1,drawAxisName:!1});A.draw();A.setAxisConfig({animateAxis:b,drawAxisName:k});for(a=0;a'), la.jQuery("#fc-zoominfo").css({position:"absolute",left:"10px",top:"0","pointer-events":"none",opacity:.7,width:"250px",zIndex:"999",border:"1px solid #cccccc","box-shadow":"1px 1px 3px #cccccc",background:"#ffffff"})),this.debug.text(JSON.stringify(f,0,2))):(this.debug&&la.jQuery("#fc-zoominfo").remove(),delete this.debug))}},_drawDataset:function(){ma.zoomline.updateManager.call(this)},getParsedLabel:function(a){var b=this.xlabels;return b.parsed[a]||(b.parsed[a]=Ya(b.data[a]||""))},_createToolBox:function(){var a, b,c,h,m,f,q,v=this,A=v.config;q=A.allowPinMode;h=v.components;var n=A.showToolBarButtonTooltext;a=h.chartMenuBar;b=h.actionBar;a&&a.drawn||b&&b.drawn||(ma.scrollcolumn2d._createToolBox.call(v),a=h.tb,b=a.graphics||(a.graphics={}),c=h.toolBoxAPI||a.getAPIInstances(a.ALIGNMENT_HORIZONTAL),c=c.Symbol,h=(h.chartMenuBar||h.actionBar).componentGroups[0],m=b.zoomOutButton=(new c("zoomOutIcon",void 0,a.idCount++,a.pId)).attachEventHandlers({click:function(){v.zoomOut()},tooltext:n&&A.btnZoomOutTooltext|| ""}),f=b.resetButton=(new c("resetIcon",void 0,a.idCount++,a.pId)).attachEventHandlers({click:function(){v.resetZoom()},tooltext:n&&A.btnResetChartTooltext||""}),q&&(q=b.pinButton=(new c("pinModeIcon",void 0,a.idCount++,a.pId)).attachEventHandlers({click:function(){v.activatePin(!A.viewPortConfig.pinned)},tooltext:n&&A.btnSwitchToPinModeTooltext||""}),h.addSymbol(q,!0)),h.addSymbol(f,!0),h.addSymbol(m,!0))},_scrollBar:ma.scrollcolumn2d,_manageScrollerPosition:ma.scrollcolumn2d,draw:function(){var a, b,c,h,m,f,q,v,A,n,C=this,p=C.config,I=C.graphics||(C.graphics={});f=C.components;a=C.jsonData;h=a.dataset;var K=a.categories&&a.categories[0].category,B;ma.msline.draw.call(C);q=p.canvasLeft;v=p.canvasTop;A=p.canvasHeight;n=p.canvasWidth;a=p.borderWidth;b=p.useRoundEdges;c=p.viewPortConfig;(B=I.toolboxParentGroup)||(B=I.toolboxParentGroup=f.paper.group("toolbarParentGroup",I.parentGroup));h&&K&&(a++,h=R.crispBound(q-a,v+A+a,n+a+a,p.scrollHeight,a),a--,f=(m=f.scrollBar)&&m.node,m.draw(h.x+(b&&-1|| a%2),h.y-(b&&4||2),{isHorizontal:!0,width:h.width-(!b&&2||0),height:h.height,showButtons:p.scrollShowButtons,scrollRatio:c.vdl/(c.clen-!!c.clen),scrollPosition:[c.dsi/(c.clen-c.vdl-1),!1],r:b&&2||0,parentLayer:B.insertBefore(I.datalabelsGroup)}),!f&&function(){var a;R.eve.on("raphael.scroll.start."+m.node.id,function(b){a=b;C.graphics.crossline&&C.graphics.crossline.disable(!0);ua.raiseEvent("scrollstart",{scrollPosition:b},C.chartInstance)});R.eve.on("raphael.scroll.end."+m.node.id,function(b){C.graphics.crossline&& C.graphics.crossline.disable(!1);ua.raiseEvent("scrollend",{prevScrollPosition:a,scrollPosition:b},C.chartInstance)})}())}},ma.msline,{showValues:0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0});ma("zoomlinedy",{standaloneInit:!0,defaultDatasetType:"zoomline",applicableDSList:{zoomline:!0},creditLabel:Ia,friendlyName:"Zoomable and Panable Multi-series Dual-axis Line Chart",_spaceManager:ma.msdybasecartesian._spaceManager,_setAxisLimits:ma.msdybasecartesian._setAxisLimits,_createAxes:ma.msdybasecartesian._createAxes, _feedAxesRawData:ma.msdybasecartesian._feedAxesRawData},ma.zoomline,{isdual:!0});FusionCharts.register("component",["dataset","zoomline",{_setConfigure:function(){var a=this.config,b=this.chart.jsonData.chart,c=this.JSONData;a.drawanchors=G(b.drawanchors,b.showanchors,1);a.anchorradius=G(c.anchorradius,b.anchorradius,a.linethickness+2);this.__base__._setConfigure.apply(this,arguments)},configure:function(){var a,b,c={};a=this.chart.jsonData.chart;a.animation=0;a.showvalues=G(a.showvalues,0);this.__base__.configure.call(this); b=this.config;a=b.linethickness+G(a.pinlinethicknessdelta,1);c["stroke-width"]=0nb||gnb||fSa&&cb(Sa,db>Ta?Ta:db),PaTa)&&cb(Sa,Ta));n._oldHideAnchors=ib;n._oldEndIndex=Pa;n._oldStep=Oa;f.setVisibility(Wa);for(x=n._oldStartIndex=db;x<=Pa;x+=Oa){F=B[x]||{};S=F.config||{};S.isRemoving=!1;r=S.setValue||null;ab=x;if(tb)if(0===x&&null===r){mb=0;for(Ca=c=x;Ca=k&&null===r){for(Ca=c=x;0c/2?c-b:-b);a=q.getPixel(n)-A-v;h.transform(["T",va(a),0]);this.hidden&&0!==f.crossline.enabled&&this.show();(nm.maxValue)&&this.hide();if(n!==this.position||this.hidden)this.position= n,this.lineX=a,this.updateLabels()}};ta.prototype.updateLabels=function(){var a=this,b=a.labels,c=a.plots,h=a.width,m=a.position,f=a.lineX,q=xa(f),v=a.ppixelRatio,A=a.spixelRatio,n=a.yminValue,C=a._visout,p=a.numberFormatter,I=a.pyaxisminvalue,G=a.pyaxismaxvalue,B=a.syaxisminvalue,k=a.syaxismaxvalue,x=function(){function b(){this.y=0;this.lRef=void 0;this.__index=this.__shift=0}function c(a){for(var b=0;bc?d=x.NEG:d=x.POS,c=e(c),c<=h&&(h=c,g.absValue=c,g.noScaleSide=d);return g}function h(a){this.holes=c.call([],a)}var k=-1*a.height,d=n*v,m=0,g,p={},l,e=Math.abs,q=Math.floor,x={};"function"!=typeof Object.create&&(Object.create=function(){function a(){}var b=Object.prototype.hasOwnProperty;return function(c){var d,e,f;if("object"!=typeof c)throw new TypeError("Object prototype may only be an Object or null");a.prototype=c;f=new a;a.prototype=null;if(1>>0;if(0===e)return-1;c=+b||0;Infinity===Math.abs(c)&&(c=0);if(c>=e)return-1;for(c=Math.max(0<=c?c:e-Math.abs(c),0);c>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1g-1?g-1:c,e=this[g],c=new b,c.y=a,c.lRef=d,e){a=f.call(this.holes,g);d=g+a.absValue*a.noScaleSide;if(a.noScaleSide===x.POS)return c.applyDirectIndex(d), this.splice(d,1,c),this.holes.splice(this.holes.indexOf(d),1),d;if(a.noScaleSide===x.NEG){a=this.splice(d+1,this.length-1);this.pop();a.forEach(function(a){a&&a.applyShift(-1)});for([].push.apply(this,a);this[d];)d++;this.push(0);this.repositionHoles();a=f.call(this.holes,d);d+=a.absValue*a.noScaleSide;c.applyDirectIndex(d);this.splice(d,1,c);this.repositionHoles();return this.length-1}}else c.applyDirectIndex(g),this.splice(g,1,c),this.holes.splice(this.holes.indexOf(g),1)};try{Object.defineProperty(p, "top",{enumerable:!1,configurable:!1,get:function(){return k}}),Object.defineProperty(p,"bottom",{enumerable:!1,configurable:!1,get:function(){return d}})}catch(r){p.top=k,p.bottom=d}p.init=function(a,b){var c;m=a+2;k+=m/2;l=q(e(k)/m);g=new h(l);for(c=0;ck||hG||h=h&&"end"||"middle","text-bound":["rgba(255,255,255,0.8)","rgba(0,0,0,0.2)",1,2.5]})): a.attr({x:-h})});a.positionLabel&&a.positionLabel.attr({x:f+a.left,text:a.getPositionLabel(m),"text-bound":["rgba(255,255,255,1)","rgba(0,0,0,1)",1,2.5]})};ta.prototype.show=function(){this.disabled||(this.hidden=!1,this.group.attr("visibility","visible"),this.line.attr("visibility","visible"),this.positionLabel&&this.positionLabel.attr("visibility","visible"))};ta.prototype.hide=function(){this.hidden=!0;this.group.attr("visibility","hidden");this.line.attr("visibility","hidden");this.positionLabel&& this.positionLabel.attr("visibility","hidden")};ta.prototype.dispose=function(){for(var a in this)this.hasOwnProperty(a)&&delete this[a]};R.addSymbol({pinModeIcon:function(a,b,c){var h=.5*c,m=a-c,f=a+c,q=a-h,v=a+h,A=a+.5,n=A+1,C=A+1.5,p=b-c,I=b+h,G=b-h,h=b+(c-h);return["M",m,p,"L",q,G,q,h,m,I,a-.5,I,a,b+c+.5,A,I,f,I,v,h,v,G,f,p,C,p,C,G,C,h,n,h,n,G,C,G,C,p,"Z"]},zoomOutIcon:function(a,b,c){a-=.2*c;b-=.2*c;var h=.8*c,m=R.rad(43),f=R.rad(48),q=a+h*qa(m),m=b+h*Aa(m),v=a+h*qa(f),f=b+h*Aa(f),A=R.rad(45), n=q+c*qa(A),C=m+c*Aa(A),p=v+c*qa(A);c=f+c*Aa(A);return["M",q,m,"A",h,h,0,1,0,v,f,"Z","M",q+1,m+1,"L",n,C,p,c,v+1,f+1,"Z","M",a-2,b,"L",a+2,b,"Z"]},resetIcon:function(a,b,c){var h=a-c,m=(wa.PI/2+wa.PI)/2;a+=c*qa(m);var m=b+c*Aa(m),f=2*c/3;return["M",h,b,"A",c,c,0,1,1,a,m,"L",a+f,m-1,a+2,m+f-.5,a,m]}})}]);Ha&&(na.FusionCharts=FusionCharts);return FusionCharts});