jQuery.ajax({url:"/final/scripts/utilities/EgChartTheme.js",dataType:"script",cache:true});var myImgHtml='<div style="margin:12% 0 auto 25%"><img class="iconInformation" width="70%" src="/final/images/clear.png" border="0" /></div>';var MaxImgHtml='<center><div style="margin:12% 0 auto 0%"><img class="iconInformation" src="/final/images/clear.png" border="0" /></div></center>';
var errImgSrc='<img class="iconInformation" src="/final/images/clear.png" border="0" />';Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;var menuItemArray=["printChart","separator","downloadPNG","downloadJPEG","downloadPDF","downloadSVG"];
var ua=window.navigator.userAgent;var msie=ua.indexOf("Trident");if(msie==-1){msie=ua.indexOf("Edge");}var isNetAvail=false;try{isNetAvail=window.opener.isInternetAvailable;}catch(e){try{if(parent!=null){isNetAvail=parent.isInternetAvailable;}}catch(p){}}if(msie>0&&!isNetAvail){menuItemArray=["printChart","separator","downloadPNG","downloadJPEG","downloadSVG"];
}function createLineChart(container_Id,chartHeight,chartWidth){var drawLineChart=true;var maxValue=null;var lineChartObj={highchart:null,defaults:{chart:{height:chartHeight,width:chartWidth,marginBottom:100,plotBorderWidth:0,plotBorderWidth:0,plotBorderColor:"#C0C0C0",backgroundColor:"#ffffff",plotBackgroundColor:"white",plotShadow:false,shadow:false,zoomType:"x",ignoreHiddenSeries:false,backgroundColor:"transparent"},rangeSelector:{enabled:false},global:{useUTC:true},yAxis:{border:0,lineWidth:0,gridLineWidth:0},xAxis:{border:0,lineWidth:0,minPadding:0.02,maxPadding:0.02,labels:{rotation:270,style:{color:"#c0c0c0",fontWeight:"normal",fontFamily:"Roboto",fontSize:"10px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:true,startOnTick:false,useHTML:false}},navigator:{enabled:false},exporting:{enabled:false},credits:{enabled:false}},setData:function(jsonData,currentDateFormat,maxURL,ctype,isFullView){var chartTypeTrend=jsonData.chartTypeH;
var chartExportTrend=jsonData.chartExport;var chartExportTrendFlage=false;if(chartExportTrend!=null&&chartExportTrend!=undefined&&(chartExportTrend==true||chartExportTrend=="true")){chartExportTrendFlage=true;}var toolTipFmt="";var chartType=ctype;var offSets=65;var setMinPointLength=0;var setPointWidth=null;
var maxVal=null;if(jsonData["yAxisMaxValue"]!=null&&jsonData["yAxisMaxValue"]!=""&&jsonData["yAxisMaxValue"]!=undefined&&jsonData["yAxisMaxValue"]!="undefined"){maxVal=jsonData["yAxisMaxValue"];}var labelStep=null;if(jsonData["labelStep"]!=null&&jsonData["labelStep"]!=undefined&&jsonData["labelStep"]!=""){labelStep=jsonData["labelStep"];
}var lineChartAttrbs=new Object();lineChartAttrbs["fontFamily"]="Roboto";lineChartAttrbs["fontSize"]="10px";lineChartAttrbs["yFontClr"]="#c0c0c0";lineChartAttrbs["xfontClr"]="#c0c0c0";lineChartAttrbs["yfontFmy"]="Roboto";lineChartAttrbs["xfontFmy"]="Roboto";lineChartAttrbs["yfontSize"]="10px";lineChartAttrbs["xfontSize"]="10px";
lineChartAttrbs["xfontWgt"]="normal";lineChartAttrbs["yfontWgt"]="normal";lineChartAttrbs["ylabelFontClr"]="#c0c0c0";lineChartAttrbs["xlabelfontClr"]="#c0c0c0";lineChartAttrbs["ylabelfontFmy"]="Roboto";lineChartAttrbs["xlabelfontFmy"]="Roboto";lineChartAttrbs["ylabelfontSize"]="10px";lineChartAttrbs["xlabelfontSize"]="10px";
lineChartAttrbs["ylabelfontWgt"]="normal";lineChartAttrbs["xlabelfontWgt"]="normal";lineChartAttrbs["legFontClr"]="#c0c0c0";lineChartAttrbs["legFontFmy"]="Roboto";lineChartAttrbs["legFontSize"]="10px";lineChartAttrbs["legFontWgt"]="normal";lineChartAttrbs["capFontClr"]="#333333";lineChartAttrbs["capFontFmy"]="Roboto";
lineChartAttrbs["capFontSize"]="13px";lineChartAttrbs["capFontWgt"]="normal";lineChartAttrbs["LegendPosition"]="center";var yaxisTitle="",xLabel="",showLegend=false;lineChartAttrbs["bgColor"]=jsonData["bgColor"];lineChartAttrbs["plotBgColor"]=jsonData["plotBgColor"];lineChartAttrbs["fontColor"]=jsonData["fontColor"];
lineChartAttrbs["gridLineColor"]=jsonData["gridLineColor"];lineChartAttrbs["LegendFont "]=jsonData["LegendFont"];xLabel=jsonData["xAxisLabel"];var LegendPosition=jsonData["LegendPosition"];var legendWidth=(LegendPosition=="right")?190:300;var needLegendFormat=(LegendPosition=="right")?"true":"false";
var maxLegendHeight=(LegendPosition=="right")?null:50;var valign=(LegendPosition=="right")?"middle":"top";showLegend=jsonData["showLegend"];if(Ext.isEmpty(jsonData["styles"])){lineChartAttrbs["fontFamily"]=jsonData["fontName"];lineChartAttrbs["fontSize"]=jsonData["fontsize"];yaxisTitle=jsonData["yAxisLabel"];
if(yaxisTitle==null||yaxisTitle==undefined||yaxisTitle==""){yaxisTitle=jsonData["yAxisLabelName"];}xaxisTitle=jsonData["xAxisLabelName"];lineChartAttrbs["LegendPosition"]=jsonData["LegendPosition"];if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);}}else{if(jsonData.hasOwnProperty("fontName")){lineChartAttrbs["fontFamily"]=jsonData["fontName"];
}if(jsonData.hasOwnProperty("fontsize")){lineChartAttrbs["fontSize"]=jsonData["fontsize"];}yaxisTitle=jsonData["yAxisLabel"];if(yaxisTitle==null||yaxisTitle==undefined||yaxisTitle==""){yaxisTitle=jsonData["yAxisLabelName"];}xaxisTitle=jsonData["xAxisLabelName"];lineChartAttrbs["LegendPosition"]=jsonData["LegendPosition"];
if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);}var stylesJson=jsonData["styles"];if(!Ext.isEmpty(stylesJson["legendStyle"])){lineChartAttrbs["legFontClr"]=stylesJson["legendStyle"].COLOR;lineChartAttrbs["legFontFmy"]=stylesJson["legendStyle"].FAMILY;lineChartAttrbs["legFontSize"]=stylesJson["legendStyle"].SIZE;
lineChartAttrbs["legFontWgt"]=stylesJson["legendStyle"].WEIGHT;}if(!Ext.isEmpty(stylesJson["title"])){lineChartAttrbs["capFontClr"]=stylesJson["title"].COLOR;lineChartAttrbs["capFontFmy"]=stylesJson["title"].FAMILY;lineChartAttrbs["capFontSize"]=stylesJson["title"].SIZE;lineChartAttrbs["capFontWgt"]=stylesJson["title"].WEIGHT;
}if(!Ext.isEmpty(stylesJson["yaxis"])){lineChartAttrbs["yfontClr"]=stylesJson["yaxis"].COLOR;lineChartAttrbs["yfontFmy"]=stylesJson["yaxis"].FAMILY;lineChartAttrbs["yfontSize"]=stylesJson["yaxis"].SIZE;lineChartAttrbs["yfontWgt"]=stylesJson["yaxis"].WEIGHT;}if(!Ext.isEmpty(stylesJson["xaxis"])){lineChartAttrbs["xfontClr"]=stylesJson["xaxis"].COLOR;
lineChartAttrbs["xfontFmy"]=stylesJson["xaxis"].FAMILY;lineChartAttrbs["xfontSize"]=stylesJson["xaxis"].SIZE;lineChartAttrbs["xfontWgt"]=stylesJson["xaxis"].WEIGHT;}if(!Ext.isEmpty(stylesJson["yaxislabel"])){lineChartAttrbs["ylabelfontClr"]=stylesJson["yaxislabel"].COLOR;lineChartAttrbs["ylabelfontFmy"]=stylesJson["yaxislabel"].FAMILY;
lineChartAttrbs["ylabelfontSize"]=stylesJson["yaxislabel"].SIZE;lineChartAttrbs["ylabelfontWgt"]=stylesJson["yaxislabel"].WEIGHT;}if(!Ext.isEmpty(stylesJson["xaxislabel"])){lineChartAttrbs["xlabelfontClr"]=stylesJson["xaxislabel"].COLOR;lineChartAttrbs["xlabelfontFmy"]=stylesJson["xaxislabel"].FAMILY;
lineChartAttrbs["xlabelfontSize"]=stylesJson["xaxislabel"].SIZE;lineChartAttrbs["xlabelfontWgt"]=stylesJson["xaxislabel"].WEIGHT;}}if(jsonData["DataSet"].length>10&&(LegendPosition==undefined||LegendPosition=="undefined")){LegendPosition="right";}if(lineChartAttrbs["bgColor"]==null||lineChartAttrbs["bgColor"]==""||lineChartAttrbs["bgColor"]=="null"){lineChartAttrbs["bgColor"]="transparent";
}if(lineChartAttrbs["plotBgColor"]==null||lineChartAttrbs["plotBgColor"]==""||lineChartAttrbs["plotBgColor"]=="null"){lineChartAttrbs["plotBgColor"]="#ffffff";}if(lineChartAttrbs["fontColor"]==null||lineChartAttrbs["fontColor"]==""||lineChartAttrbs["fontColor"]=="null"){lineChartAttrbs["fontColor"]="#c0c0c0";
}if(lineChartAttrbs["gridLineColor"]==null||lineChartAttrbs["gridLineColor"]==""||lineChartAttrbs["gridLineColor"]=="null"){lineChartAttrbs["gridLineColor"]="#C0C0C0";}yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?"":yaxisTitle;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?"":xaxisTitle;if(lineChartAttrbs["LegendFont"]==null||lineChartAttrbs["LegendFont"]==""||lineChartAttrbs["LegendFont"]=="null"){lineChartAttrbs["LegendFont"]="Roboto";
}var minYval=0;if(jsonData.hasOwnProperty("dispNegatives")&&jsonData["dispNegatives"]=="true"){minYval=null;}var minPad=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){minPad=0;minYval=null;maxVal=null;}if(minYval!=null&&maxVal!=null&&(minYval==maxVal)){maxVal=minYval+1;
}var subTitle=(Ext.isEmpty(jsonData.subTitle))?"":jsonData.subTitle;var rotVal=270;var yVal=15;var xVal=3;yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?((!Ext.isEmpty(jsonData["yAxisLabel"]))?jsonData["yAxisLabel"]:""):yaxisTitle;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?((!Ext.isEmpty(jsonData["xAxisLabelName"]))?jsonData["xAxisLabelName"]:""):xaxisTitle;
xLabel=(xLabel==null||xLabel=="")?"":xLabel;var legendWidth=(lineChartAttrbs["LegendPosition"]=="right")?190:300;var needLegendFormat=(lineChartAttrbs["LegendPosition"]=="right")?"true":"false";var maxLegendHeight=(lineChartAttrbs["LegendPosition"]=="right")?null:50;var valign=(lineChartAttrbs["LegendPosition"]=="right")?"middle":"top";
var chartTitle=jsonData["title"];var tick=(Ext.isEmpty(jsonData["tick"]))?true:jsonData["tick"];chartTitle=(chartTitle==null||chartTitle=="")?"":chartTitle;var titleHTML=false;if(!Ext.isEmpty(jsonData["titleBold"])){chartTitle="<span style=font-weight:500;>"+chartTitle+"</span>";titleHTML=true;}var marginTopVal=(chartType=="bar"&&chartTitle!="")?40:20;
var fromPage=jsonData["fromPage"];var chartContObj=document.getElementById(container_Id);var stackingVal="normal";var rotateDegree=0;var setGroupPadding=-0.065;var setPointPadding=0.1;var data=jsonData["DataSet"];var insideVal=false;var rotYval=0;var rotXval=-5;var legendYVal=10;if(isFullView){legendYVal=10;
offSets=60;yVal=5;}var tipColor=(strSkin=="Light")?"#2a292a":"#c0c0c0";var legendSize=jsonData["DataSet"].length;var bgcolor=(legendSize==1)?jsonData["DataSet"][0]["color"]:"white";var marginVal=100;if(chartTypeTrend!=undefined&&chartTypeTrend){marginVal=125;offSets=80;}var s_time_fout=jsonData["fmts"];
s_time_fout=(s_time_fout==null||s_time_fout=="")?"HH:mm":s_time_fout;var chartingOptions={chart:{type:chartType,marginBottom:marginVal,hasUserSize:false,backgroundColor:lineChartAttrbs["bgColor"],plotBackgroundColor:lineChartAttrbs["plotBgColor"],plotBorderColor:lineChartAttrbs["gridLineColor"],events:{click:function(e){if(e.target.firstChild==null||e.target.firstChild==undefined){if(maxURL!="null"&&maxURL!="undefined"&&maxURL!=""&&maxURL!=undefined&&maxURL!="close"){loadMaximizedView(maxURL);
}else{if(maxURL=="close"){closeMaximizedView();}}}},load:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","7");jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},title:{useHTML:titleHTML,text:Ext.String.htmlDecode(chartTitle),y:14,style:{color:lineChartAttrbs["capFontClr"],fontFamily:lineChartAttrbs["capFontFmy"],fontSize:lineChartAttrbs["capFontSize"],}},subtitle:{text:subTitle,style:{color:lineChartAttrbs["capFontClr"],fontFamily:lineChartAttrbs["capFontFmy"],fontSize:lineChartAttrbs["capFontSize"],}},tooltip:{valueDecimals:4,backgroundColor:bgcolor,formatter:function(){var s="";
if((this.point.series.name!=""&&this.point.series.name!=undefined)&&(this.point.category!=null&&this.point.category!=undefined)){var category=null;if(typeof this.point.category=="number"){category=Highcharts.dateFormat(s_time_fout,this.point.category,true);}else{category=this.point.category;}s+='<span><b style="color:'+tipColor+'">'+category+'</b></span><br/><span style="color:'+tipColor+'">'+Ext.String.htmlDecode(this.point.series.name)+' : <b style="color:'+tipColor+'">'+this.point.y+"</b></span>";
}else{s+='<span><b style="color:'+tipColor+'">'+this.point.y+"</b></span>";}return s;}},yAxis:{max:maxVal,gridLineWidth:0,lineWidth:1,min:minYval,minPadding:minPad,gridLineColor:lineChartAttrbs["gridLineColor"],lineColor:lineChartAttrbs["gridLineColor"],labels:{formatter:function(){var val=Highcharts.numberFormat(this.value,4,".","");
val=(parseFloat(val));return val;},style:{fontFamily:lineChartAttrbs["yfontFmy"],fontSize:lineChartAttrbs["yfontSize"],color:lineChartAttrbs["yfontClr"],}},title:{text:Ext.String.htmlDecode(yaxisTitle),style:{color:lineChartAttrbs["ylabelfontClr"],fontFamily:lineChartAttrbs["ylabelfontFmy"],fontSize:lineChartAttrbs["ylabelfontSize"],}}},xAxis:{categories:xLabel,tickInterval:labelStep,gridLineWidth:1,lineWidth:1,tickWidth:0,gridLineColor:lineChartAttrbs["gridLineColor"],lineColor:lineChartAttrbs["gridLineColor"],tickmarkPlacement:"on",labels:{y:yVal,rotation:rotVal,style:{fontFamily:lineChartAttrbs["xfontFmy"],fontSize:lineChartAttrbs["xfontSize"],color:lineChartAttrbs["xfontClr"]},formatter:function(){if(typeof this.value=="string"){if(this.value.length>10){return'<span data-qtip="'+Ext.String.htmlDecode(this.value)+'">'+Ext.String.htmlDecode(this.value.substring(0,10))+"..<span>";
}else{return this.value;}}else{return Highcharts.dateFormat(s_time_fout,this.value);}}},title:{text:Ext.String.htmlDecode(xaxisTitle),offset:offSets,style:{color:lineChartAttrbs["ylabelfontClr"],fontFamily:lineChartAttrbs["ylabelfontFmy"],fontSize:lineChartAttrbs["ylabelfontSize"],}}},plotOptions:{series:{fillOpacity:0.9,states:{hover:{enabled:false}},connectNulls:false,smoothed:true,lineWidth:2,plotGridLine:1,marker:{enabled:false}}},legend:{y:legendYVal,enabled:showLegend,symbolRadius:5,itemStyle:{color:lineChartAttrbs["legFontClr"],fontFamily:lineChartAttrbs["legFontFmy"],fontSize:lineChartAttrbs["legFontSize"],},labelFormatter:function(){var retrunvar=Ext.String.htmlDecode(this.name);
if(retrunvar.length>30&&needLegendFormat=="true"){c=0;strval="";while(c<retrunvar.length){strval+=retrunvar.substring(c,c+30)+"<br>";c=c+30;}retrunvar=strval;}return retrunvar;}},exporting:{enabled:chartExportTrendFlage,buttons:{contextButton:{menuItems:menuItemArray}}}};var myhtml='<table width="100%" height="100%"><tr><td align="center" valign="middle">'+errImgSrc+"</td></tr></table>";
var chartContObj=document.getElementById(container_Id);this.highchart=jQuery.extend(true,this.defaults,chartingOptions);var chartData=[];if(jsonData["DataSet"]==""||jsonData["DataSet"]=="null"||jsonData["DataSet"]=="undefined"||jsonData["DataSet"]==undefined){drawLineChart=false;if(chartContObj!=null){chartContObj.innerHTML=myhtml;
}}else{this.highchart.series=jsonData["DataSet"];this.highchart.chart.renderTo=container_Id;}},drawChart:function(){if(drawLineChart){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true}});this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));
new Highcharts.Chart(this.highchart);}}};return lineChartObj;}function createBar(d,a,b){return getInstance(d,a,b);}function getHighChartsBarInstance(d,a,b){return getInstance(d,a,b);}function getInstance(container_Id,chartHeight,chartWidth){var drawChart=true;var maxValue=null;var isNamedUserGraph=false;
var isCCUserGraph=false;if(!Ext.isEmpty(container_Id)&&container_Id!=undefined&&container_Id=="namedUserGraph"){isNamedUserGraph=true;}if(!Ext.isEmpty(container_Id&&container_Id!=undefined&&container_Id=="ccUserGraph")){isCCUserGraph=true;}if(container_Id.indexOf("summary")>-1){maxValue=100;}var ErHighStockChart={highchart:null,isFromMyDashboard:false,defaults:{chart:{height:chartHeight,width:chartWidth,plotBorderWidth:0,plotBorderColor:"#C0C0C0",backgroundColor:"transparent",plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"xy",ignoreHiddenSeries:false,spacing:[10,10,10,10],events:{load:function(event){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,},navigator:{enabled:false},yAxis:{endOnTick:true,showFirstLabel:true,startOnTick:true,max:maxValue,border:0,lineWidth:1,labels:{formatter:function(){return this.value;},style:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},showLastLabel:true,},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},symbolWidth:15,},labels:{itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},tooltip:{shared:true,valueDecimals:4,followPointer:true,style:{color:"#c0c0c0",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false},credits:{enabled:false},xAxis:{tickWidth:0,border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,ordinal:false,endOnTick:true,showFirstLabel:true,startOnTick:true,labels:{style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:true,startOnTick:false,useHTML:false,tickPixelInterval:50,},title:{enabled:true,}},title:{text:"",offset:"",margin:0},series:{}},setData:function(jsonData,currentDateFormat,maxURL,ctype,summaryChart){var isFromNetflowConversationTab=false;
if(ctype!=null&&ctype=="netflowconversationbar"){ctype="bar";isFromNetflowConversationTab=true;}var isMyDashboardHealthPieChart=false;var isJVMThreadPieChart=false;var cursor="pointer";var set_top=5;if(ctype!=null&&ctype=="healthPieChart"){ctype="pie";isMyDashboardHealthPieChart=true;}var isNetflowDashboardPieChart=false;
if(ctype!=null&&ctype=="pieNetflow"){ctype="pie";isNetflowDashboardPieChart=true;}if(ctype!=null&&ctype=="pieNetflowforOne"){ctype="pie";cursor="default";}var isNetflowProtocolPieChart=false;if(ctype!=null&&ctype=="ProtocolPieNetflow"){ctype="pie";isNetflowProtocolPieChart=true;}var isCiscoProtocolPieChart=false;
if(ctype!=null&&ctype=="Ciscopie"){ctype="pie";isCiscoProtocolPieChart=true;cursor="";}if(ctype!=null&&ctype=="jvmThreadPie"){ctype="pie";isJVMThreadPieChart=true;}var isEndOntick=(Ext.isEmpty(jsonData["tick"]))?true:jsonData["tick"];jsonData=(!Ext.isEmpty(jsonData.dataXML))?jsonData.dataXML:jsonData;
var toolTipFmt="";var chartType=(Ext.isEmpty(ctype))?"bar":ctype;var isStackedColumn=false;if(chartType=="stackedColumn"){isStackedColumn=true;}var pointWidthVal=20;var columnplotoptiondatalabelenabled=true;var xAxislabelEnabled=true;var isAssetBarChart=false;if(ctype!=null&&ctype=="assetBarchart"){chartType="column";
pointWidthVal=13;columnplotoptiondatalabelenabled=false;xAxislabelEnabled=false;isAssetBarChart=true;}var isStackedBar=false;if(chartType=="stackedBar"){isStackedBar=true;}var setMinPointLength=0;var setPointWidth=null;var maxVal=null;if(jsonData["MaxValue"]!=null&&jsonData["MaxValue"]!=""&&jsonData["MaxValue"]!=undefined&&jsonData["MaxValue"]!="undefined"){maxVal=jsonData["MaxValue"];
}var isNetworkTab=false;var isLabelWidth="100px";if(jsonData["isNetworkTab"]!=null&&jsonData["isNetworkTab"]!=undefined&&jsonData["isNetworkTab"]==true){isNetworkTab=jsonData["isNetworkTab"];isLabelWidth="200px";}var labelStep=0;if(isStackedColumn&&jsonData["labelStep"]!=null&&jsonData["labelStep"]!=undefined&&jsonData["labelStep"]!=""){labelStep=jsonData["labelStep"];
}var barStyleAttrbs=new Object();barStyleAttrbs["fontFamily"]="Roboto";barStyleAttrbs["fontSize"]="10px";barStyleAttrbs["yFontClr"]="#636363";barStyleAttrbs["xfontClr"]="#636363";barStyleAttrbs["yfontFmy"]="Roboto";barStyleAttrbs["xfontFmy"]="Roboto";barStyleAttrbs["yfontSize"]="10px";barStyleAttrbs["xfontSize"]="10px";
barStyleAttrbs["xfontWgt"]="normal";barStyleAttrbs["yfontWgt"]="normal";barStyleAttrbs["ylabelFontClr"]="#636363";barStyleAttrbs["xlabelfontClr"]="#636363";barStyleAttrbs["ylabelfontFmy"]="Roboto";barStyleAttrbs["xlabelfontFmy"]="Roboto";barStyleAttrbs["ylabelfontSize"]="10px";barStyleAttrbs["xlabelfontSize"]="10px";
barStyleAttrbs["ylabelfontWgt"]="500";barStyleAttrbs["xlabelfontWgt"]="normal";barStyleAttrbs["legFontClr"]="#636363";barStyleAttrbs["legFontFmy"]="Roboto";barStyleAttrbs["legFontSize"]="10px";barStyleAttrbs["legFontWgt"]="normal";barStyleAttrbs["capFontClr"]="#333333";barStyleAttrbs["capFontFmy"]="Roboto";
barStyleAttrbs["capFontSize"]="12px";barStyleAttrbs["capFontWgt"]="500";barStyleAttrbs["LegendPosition"]="center";var yaxisTitle="",xLabel="",xSubLabel="",showLegend=false;showLegend=(Ext.isEmpty(jsonData["showLegend"]))?false:jsonData["showLegend"];barStyleAttrbs["bgColor"]=jsonData["bgColor"];barStyleAttrbs["plotBgColor"]=jsonData["plotBgColor"];
barStyleAttrbs["fontColor"]=jsonData["fontColor"];barStyleAttrbs["gridLineColor"]=jsonData["gridLineColor"];barStyleAttrbs["LegendFont "]=jsonData["LegendFont"];xLabel=jsonData["xAxisLabel"];xSubLabel=jsonData["xAxisSubLabel"];if(xSubLabel==null||xSubLabel==""||xSubLabel==undefined){xSubLabel="";}if(Ext.isEmpty(jsonData["styles"])){barStyleAttrbs["fontFamily"]=jsonData["fontName"];
barStyleAttrbs["fontSize"]=jsonData["fontsize"];yaxisTitle=jsonData["yAxisLabel"];xaxisTitle=jsonData["xAxisLabelName"];barStyleAttrbs["LegendPosition"]=jsonData["LegendPosition"];if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);}}else{if(!Ext.isEmpty(jsonData["fontName"])){barStyleAttrbs["fontFamily"]=jsonData["fontName"];
}if(!Ext.isEmpty(jsonData["fontsize"])){barStyleAttrbs["fontSize"]=jsonData["fontsize"];}yaxisTitle=jsonData["yAxisLabel"];xaxisTitle=jsonData["xAxisLabelName"];barStyleAttrbs["LegendPosition"]=jsonData["LegendPosition"];if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);
}var stylesJson=jsonData["styles"];if(!Ext.isEmpty(stylesJson["legendStyle"])){barStyleAttrbs["legFontClr"]=stylesJson["legendStyle"].COLOR;barStyleAttrbs["legFontFmy"]=stylesJson["legendStyle"].FAMILY;barStyleAttrbs["legFontSize"]=stylesJson["legendStyle"].SIZE;barStyleAttrbs["legFontWgt"]=stylesJson["legendStyle"].WEIGHT;
}if(!Ext.isEmpty(stylesJson["title"])){barStyleAttrbs["capFontClr"]=stylesJson["title"].COLOR;barStyleAttrbs["capFontFmy"]=stylesJson["title"].FAMILY;barStyleAttrbs["capFontSize"]=stylesJson["title"].SIZE;barStyleAttrbs["capFontWgt"]=stylesJson["title"].WEIGHT;}if(!Ext.isEmpty(stylesJson["yaxis"])){barStyleAttrbs["yfontClr"]=stylesJson["yaxis"].COLOR;
barStyleAttrbs["yfontFmy"]=stylesJson["yaxis"].FAMILY;barStyleAttrbs["yfontSize"]=stylesJson["yaxis"].SIZE;barStyleAttrbs["yfontWgt"]=stylesJson["yaxis"].WEIGHT;}if(!Ext.isEmpty(stylesJson["xaxis"])){barStyleAttrbs["xfontClr"]=stylesJson["xaxis"].COLOR;barStyleAttrbs["xfontFmy"]=stylesJson["xaxis"].FAMILY;
barStyleAttrbs["xfontSize"]=stylesJson["xaxis"].SIZE;barStyleAttrbs["xfontWgt"]=stylesJson["xaxis"].WEIGHT;}if(!Ext.isEmpty(stylesJson["yaxislabel"])){barStyleAttrbs["ylabelfontClr"]=stylesJson["yaxislabel"].COLOR;barStyleAttrbs["ylabelfontFmy"]=stylesJson["yaxislabel"].FAMILY;barStyleAttrbs["ylabelfontSize"]=stylesJson["yaxislabel"].SIZE;
barStyleAttrbs["ylabelfontWgt"]=stylesJson["yaxislabel"].WEIGHT;}if(!Ext.isEmpty(stylesJson["xaxislabel"])){barStyleAttrbs["xlabelfontClr"]=stylesJson["xaxislabel"].COLOR;barStyleAttrbs["xlabelfontFmy"]=stylesJson["xaxislabel"].FAMILY;barStyleAttrbs["xlabelfontSize"]=stylesJson["xaxislabel"].SIZE;barStyleAttrbs["xlabelfontWgt"]=stylesJson["xaxislabel"].WEIGHT;
}}if(barStyleAttrbs["bgColor"]==null||barStyleAttrbs["bgColor"]==""||barStyleAttrbs["bgColor"]=="null"){barStyleAttrbs["bgColor"]="transparent";}if(barStyleAttrbs["plotBgColor"]==null||barStyleAttrbs["plotBgColor"]==""||barStyleAttrbs["plotBgColor"]=="null"){barStyleAttrbs["plotBgColor"]="#ffffff";}if(barStyleAttrbs["fontColor"]==null||barStyleAttrbs["fontColor"]==""||barStyleAttrbs["fontColor"]=="null"){barStyleAttrbs["fontColor"]="#c0c0c0";
}if(barStyleAttrbs["gridLineColor"]==null||barStyleAttrbs["gridLineColor"]==""||barStyleAttrbs["gridLineColor"]=="null"){barStyleAttrbs["gridLineColor"]="#C0C0C0";}yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?"":yaxisTitle;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?"":xaxisTitle;legx=90,legy=100;
legAlign="right";var itemMarginTopVal=5;var itemMarginBottomVal=5;var legendLayout="vertical";var legendMaxHeight=null;var tickLength=0;var tickWidth=0;if(barStyleAttrbs["LegendFont"]==null||barStyleAttrbs["LegendFont"]==""||barStyleAttrbs["LegendFont"]=="null"){barStyleAttrbs["LegendFont"]="Roboto";
}if(chartType!=null&&chartType=="bar"){dataLabelColor="#c0c0c0";setMinPointLength=10;setPointWidth=21;legx=0;legy=0;legAlign="top";}else{if(chartType!=null&&chartType=="column"){legx=0;legy=0;itemMarginTopVal=0;itemMarginBottomVal=0;legAlign="top";legendLayout="horizontal";legendMaxHeight=40;}}var subTitle=(Ext.isEmpty(jsonData.subTitle))?"":jsonData.subTitle;
yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?((!Ext.isEmpty(jsonData["yAxisLabel"]))?jsonData["yAxisLabel"]:""):yaxisTitle;var showToolTip=true;var fromProActive=false;if(jsonData["isProActiveAlerts"]!=null&&jsonData["isProActiveAlerts"]!=undefined&&(jsonData["isProActiveAlerts"]==true)){yaxisTitle="";
showToolTip=false;fromProActive=true;}xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?((!Ext.isEmpty(jsonData["xAxisLabelName"]))?jsonData["xAxisLabelName"]:""):xaxisTitle;xLabel=(xLabel==null||xLabel=="")?"":xLabel;legendWidth=(barStyleAttrbs["LegendPosition"]=="right")?190:300;needLegendFormat=(barStyleAttrbs["LegendPosition"]=="right")?"true":"false";
maxLegendHeight=(barStyleAttrbs["LegendPosition"]=="right")?null:50;valign=(barStyleAttrbs["LegendPosition"]=="right")?"middle":"top";var chartTitle="";if(container_Id!=null&&container_Id!="servicehealth_chart"){chartTitle=jsonData["title"];}var isHtmlTitle=(Ext.isEmpty(jsonData["useHtml"]))?false:jsonData["useHtml"];
var divTitle=(Ext.isEmpty(jsonData["divTitle"]))?false:jsonData["divTitle"];chartTitle=(chartTitle==null||chartTitle=="")?"":chartTitle;var marginTopVal=(chartType=="bar"&&chartTitle!="")?40:10;if(chartType!=null&&chartType=="column"){marginTopVal=50;}var fromPage=jsonData["fromPage"];var userSearch=jsonData["userSearch"];
var chartContObj=document.getElementById(container_Id);var stackingVal="normal";var rotateDegree=0;var cur="pointer";var offVal=40;var Rotation=0;var setGroupPadding=0.65;var setPointPadding=1;var rotYval=0;var rotXval=0;var isMyDashboard=false;if(fromPage!=null&&fromPage=="MyDashboard"){isMyDashboard=true;
this.isFromMyDashboard=true;}var enableDrilldownLink=true;if((jsonData["enableDrilldownLink"]!=null)&&!Ext.isEmpty(jsonData["enableDrilldownLink"])){enableDrilldownLink=jsonData["enableDrilldownLink"];}var enablePercentage=false;var isInfraHealth=false;var useHtmlValue=false;var enableClickEvent=true;
if(isMyDashboardHealthPieChart){if((jsonData["enablePieDrillDown"]!=null)&&!Ext.isEmpty(jsonData["enablePieDrillDown"])){enableDrilldownLink=jsonData["enablePieDrillDown"];}if((jsonData["enablePercentage"]!=null)&&!Ext.isEmpty(jsonData["enablePercentage"])){enablePercentage=jsonData["enablePercentage"];
}if((jsonData["isInfraHealth"]!=null)&&!Ext.isEmpty(jsonData["isInfraHealth"])){isInfraHealth=jsonData["isInfraHealth"];}if((jsonData["enableClickEvent"]!=null)&&!Ext.isEmpty(jsonData["enableClickEvent"])){enableClickEvent=jsonData["enableClickEvent"];}if(isInfraHealth){useHtmlValue=true;}}var data=jsonData["DataSet"];
var enableClick=(Ext.isEmpty(jsonData["enableClick"]))?false:jsonData["enableClick"];var col_crop=true;var col_overflow="justify";var insideVal=false;var chartId="";var setShadow=false;if(jsonData["enableClick"]!=null&&jsonData["enableClick"]!=undefined&&(jsonData["enableClick"]==false||jsonData["enableClick"]=="false")){cur="default";
offVal=65;if(chartType!=null&&chartType=="column"){stackingVal=null;rotateDegree=-90;if(isCCUserGraph){Rotation=270;insideVal=true;}else{Rotation=0;}rotYval=40;if((jsonData["fontColor"]==null||jsonData["fontColor"]==""||jsonData["fontColor"]=="null")&&barStyleAttrbs["fontColor"]=="#c0c0c0"){barStyleAttrbs["fontColor"]=(strSkin=="Light")?"#606060":"#c0c0c0";
}}if(isMyDashboard&&(chartType!=null&&chartType=="column")){rotYval=15;if(!showLegend){marginTopVal=10;}}else{rotYval=6;}}else{stackingVal=null;if(isNamedUserGraph&&chartType!=null&&chartType=="column"){stackingVal=null;rotateDegree=-90;Rotation=270;rotYval=40;offVal=65;if((jsonData["fontColor"]==null||jsonData["fontColor"]==""||jsonData["fontColor"]=="null")&&barStyleAttrbs["fontColor"]=="#c0c0c0"){(strSkin=="Light")?"#2a292a":"#c0c0c0";
}barStyleAttrbs["fontColor"]=(strSkin=="Light")?"#606060":"#c0c0c0";col_overflow="none";col_crop=false;setShadow=true;chartId="adminUserGraph";insideVal=true;}else{if(isMyDashboard&&(chartType!=null&&chartType=="column")){rotYval=15;if(!showLegend){marginTopVal=10;}}else{rotYval=6;}}}var isGrouping=true;
var sharedVal=true;if(!Ext.isEmpty(fromPage)&&(fromPage.toLowerCase()=="insideview"||fromPage.toLowerCase()=="virtualtab")){isGrouping=false;}var isStateBar=false;if(!Ext.isEmpty(jsonData["isStateBar"])&&jsonData["isStateBar"]==true){isStateBar=jsonData["isStateBar"];stackingVal="normal";}if(!Ext.isEmpty(jsonData["isInside"])&&jsonData["isInside"]==true){stackingVal=null;
isGrouping=true;sharedVal=false;}barStyleAttrbs["plotBgColor"]="transparent";var tipColor=((strSkin=="Dark"||strSkin=="dark"))?"#c0c0c0":"#2a292a";var tipFormat=((strSkin=="Dark"||strSkin=="dark"))?'<span style="color:white">{point.y}</span> ':'<span style="color:{point.color}">{point.y}</span> ';if(fromPage!=null&&fromPage=="sysdashboard"){Rotation=-90;
}if(isStackedColumn){rotateDegree=270;rotYval=15;rotXval=2;chartType="column";stackingVal="normal";insideVal=true;var marginTop1=jsonData["marginTop"];if(marginTop1==null||marginTop1=="undefined"||marginTop1==""){marginTopVal=60;}marginTopVal=marginTop1;}else{if(isStackedBar){rotateDegree=0;chartType="bar";
stackingVal="normal";marginTopVal=40;insideVal=true;dataLabelColor="#c0c0c0";setMinPointLength=10;setPointWidth=21;rotXval=-5;}else{if(chartType=="bar"){rotXval=-5;barStyleAttrbs["fontColor"]=(strSkin=="Light")?"#000000":"#c0c0c0";if(!Ext.isEmpty(jsonData["isStateBar"])&&jsonData["isStateBar"]==true){setMinPointLength=0;
}if(!Ext.isEmpty(jsonData["isInside"])&&jsonData["isInside"]==true){setMinPointLength=10;}}}}if(chartType!=null&&chartType=="pie"){barStyleAttrbs["fontColor"]=(strSkin=="Light")?"#000000":"#c0c0c0";strpointFormat="";if(chartTitle!=null&&chartTitle!=""){chartTitle=(Ext.isEmpty(jsonData["unit"]))?chartTitle:chartTitle+"("+jsonData["unit"]+")";
}if(fromProActive){chartTitle="";}}else{strpointFormat="<b>:{point.y}</b>";}if(data!=null&&data.length>=1){calx=(chartWidth/data.length)+40;var xx=data[0].data;if(isMyDashboard&&(chartType!=null&&chartType=="column")){if(xx.length<3){setGroupPadding=0.2;setPointPadding=0.2;}else{setGroupPadding=0.1;setPointPadding=0.1;
}}else{if(xx.length<3){setGroupPadding=0.2;setPointPadding=0.4;}}}var yAxisLineWidth=1;if(jsonData!=null&&(jsonData.hasOwnProperty("hideTopGridLine")&&jsonData["hideTopGridLine"]=="true")){yAxisLineWidth=0;}var space=[10,10,10,10];var marginbottom=null;var marginright=null;var mychartwidth=chartWidth;
var mychartheight=chartHeight;var marginTop=null;var dataLblColor=((strSkin=="Light")?"#000000":"#c0c0c0");if(isMyDashboardHealthPieChart&&dataLblColor=="#c0c0c0"){dataLblColor="#ffffff";}if(isMyDashboard){if(chartType!=null&&chartType=="column"){rotYval=20;rotateDegree=0;var stVal=jsonData["stacking"];
if(!Ext.isEmpty(stVal)){stackingVal="normal";insideVal=true;}if(!Ext.isEmpty(jsonData)&&jsonData.hasOwnProperty("Rotation")){Rotation=jsonData["Rotation"];rotYval=5;rotateDegree=270;marginbottom=null;dataLblColor="#ffffff";}}else{if(chartType!=null&&chartType=="bar"){tickLength=10;tickWidth=1;var stVal=jsonData["stacking"];
if(!Ext.isEmpty(stVal)){stackingVal="normal";insideVal=true;}pointWidthVal=20;}}space=[0,0,0,0];marginTopVal=5;}if(!isMyDashboard&&Ext.isEmpty(jsonData["isStateBar"])){var isMaxView=jsonData["isMax"];marginTop=20;if(xLabel.length>=6){isMaxView=eval(isMaxView);}if(chartType!=null&&chartType=="column"){marginbottom=null;
if(chartContObj!=null){chartContObj.style.height="97%";}if(xLabel.length>=6){marginright=chartWidth-20-(xLabel.length)*(setPointWidth+5);}}if(chartType!=null&&chartType=="bar"){if(isMyDashboard){space=[0,0,0,0];marginTopVal=null;}mychartwidth=chartWidth;if(chartContObj!=null){chartContObj.style.width="97%";
}}}if(isMyDashboard||(userSearch!=undefined&&userSearch)){marginbottom=null;}if(isMyDashboardHealthPieChart){space=[0,0,0,0];marginTopVal=null;}var pieChartLink=jsonData["pieChartLink"];if(pieChartLink!=null&&pieChartLink!=undefined&&pieChartLink=="false"){cur="default";}else{cur="pointer";}if(isJVMThreadPieChart){cur="default";
}if(enableDrilldownLink==false||enableDrilldownLink=="false"){cur="default";}var ismytooltip=jsonData["mytooltip"];if(!isMyDashboard&&(divTitle==true||divTitle=="true")){isHtmlTitle=true;marginTopVal=60;}var xlabelAlignObj=3;var seriesDataCenter=0;if(summaryChart!=undefined&&summaryChart!=null&&(summaryChart||summaryChart=="true")){xlabelAlignObj=0;
dataLblColor="#ffffff";seriesDataCenter=-2;}if(isAssetBarChart){yAxisLineWidth=0;offVal=8;barStyleAttrbs["yfontClr"]=((strSkin=="Dark"||strSkin=="dark"))?"#c0c0c0":"#969696";xLabel=jsonData["xAxisLabel"];tipColor=((strSkin=="Dark"||strSkin=="dark"))?"#c0c0c0":"#2a292a";setMinPointLength=10;}if(jsonData.offset!=undefined){offVal=jsonData.offset;
}var chartingOptions={chart:{height:mychartheight,width:mychartwidth,type:chartType,spacing:space,marginBottom:marginbottom,backgroundColor:barStyleAttrbs["bgColor"],plotBackgroundColor:barStyleAttrbs["plotBgColor"],plotBorderColor:barStyleAttrbs["gridLineColor"],marginTop:marginTopVal,events:{click:function(e){if(e.target.firstChild==null||e.target.firstChild==undefined){if(maxURL!="null"&&maxURL!="undefined"&&maxURL!=""&&maxURL!=undefined&&maxURL!="close"){loadMaximizedView(maxURL);
}else{if(maxURL=="close"){closeMaximizedView();}}}}}},title:{useHTML:isHtmlTitle,text:Ext.String.htmlDecode(chartTitle),offset:"",margin:15,y:set_top,style:{color:barStyleAttrbs["capFontClr"],fontFamily:barStyleAttrbs["capFontFmy"],fontSize:barStyleAttrbs["capFontSize"]}},subtitle:{text:subTitle,style:{color:barStyleAttrbs["capFontClr"],fontFamily:barStyleAttrbs["capFontFmy"],fontSize:barStyleAttrbs["capFontSize"]}},tooltip:{enabled:showToolTip,followPointer:false,useHTML:useHtmlValue,valueDecimals:4,shared:sharedVal,formatter:function(){var s="";
var val=Highcharts.numberFormat(this.y,4,".","");var val_ar=val.split(".");if(val_ar.length>1){if(val_ar[1]=="0000"){val=val_ar[0];}}if(isMyDashboardHealthPieChart){if(isInfraHealth){s+='<ul class="servicehealth_widget">';if(this.point!=null&&this.point.hasOwnProperty("toolTipArray")){var tooltipArr=this.point.toolTipArray;
if(!Ext.isEmpty(tooltipArr)){for(var vp in tooltipArr){if(enableClickEvent){var tooltipSerObj=tooltipArr[vp];s+='<li><a href="javascript:void(0);" onclick=\'javascript:goToCompListPage("'+tooltipSerObj.infraEntity_url+'")\' style="color:'+this.point.color+'" title='+Ext.String.htmlDecode(tooltipSerObj.infraEntity)+">"+Ext.String.htmlDecode(tooltipSerObj.infraEntity)+"</a></li>";
}else{var tooltipSerObj=tooltipArr[vp];s+='<li><a href="#" style="color:'+this.point.color+'" title='+Ext.String.htmlDecode(tooltipSerObj.infraEntity)+">"+Ext.String.htmlDecode(tooltipSerObj.infraEntity)+"</a></li>";}}}else{s+='<li><a href="#" style="color:'+this.point.color+'" title='+Ext.String.htmlDecode(this.point.name)+">"+Ext.String.htmlDecode(this.point.name)+"</a></li>";
}}else{s+='<li><a href="#" style="color:'+this.point.color+'" title='+Ext.String.htmlDecode(this.point.name)+">"+Ext.String.htmlDecode(this.point.name)+"</a></li>";}s+="</ul>";}else{s+='<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+"</b></span>";}}else{if(this.hasOwnProperty("points")&&!ismytooltip){$.each(this.points,function(i,point){if(chartType=="column"){if(isMyDashboard){var color=this.point.color;
var colorVal=point.series.color;var name=this.point.name;var nameVal=point.series.name;if(color==""||color=="null"||color=="undefined"||color==undefined){color=colorVal;}if(name==""||name=="null"||name=="undefined"||name==undefined){name=nameVal;}s+='<span style="color: '+color+'">'+name+":"+point.y+"</span><br>";
}else{if(isAssetBarChart){s='<span style="color:'+tipColor+'">'+this.point.name+'</span><br><span style="color:'+tipColor+'">'+this.point.y+"</span>";}else{s+='<span style="color: '+point.series.color+'">'+point.series.name+": "+""+point.y+"</span><br>";}}}else{var color=this.point.color;var colorVal=point.series.color;
var name=this.point.name;var nameVal=point.series.name;if(color==""||color=="null"||color=="undefined"||color==undefined){color=colorVal;}if(name==""||name=="null"||name=="undefined"||name==undefined){name=nameVal;}s+='<span style="color: '+color+'">'+name+":"+point.y+"</span><br>";}});}else{if(Ext.isEmpty(this.point)){if(this.x==""||this.x=="null"||this.x=="undefined"||this.x==undefined){s+='<b><span style="color:'+tipColor+'">'+val+"</span></b>";
}else{s+='<b><span style="color:'+tipColor+'">'+this.x+"  :  "+val+"</span></b>";}}else{if(ismytooltip){s+='<b><span style="color:'+tipColor+'">'+this.x+"  :  "+val+"</span></b>";}else{if(isNetflowDashboardPieChart){s+=(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'"><b >'+this.point.y+" ("+this.point.unit+")</b></span> ":'<span style="color:'+this.point.color+'">'+this.point.legendLabel+"</span>";
}else{if(!sharedVal){this.shared=false;s+='<span style="color:'+this.point.color+'">'+this.point.y+"</b></span>";}else{s+=(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+this.point.name+"</span> ":'<span style="color:'+this.point.color+'">'+this.point.legendLabel+"</span> ";
}}}}}}return s;}},yAxis:{max:maxVal,gridLineWidth:1,endOnTick:isEndOntick,lineWidth:yAxisLineWidth,startOnTick:true,gridLineColor:barStyleAttrbs["gridLineColor"],lineColor:barStyleAttrbs["gridLineColor"],labels:{formatter:function(){if(jsonData["fromPage"]=="MyDashboard"){var barVal;if(chartType!="column"){var val=Highcharts.numberFormat(this.value,4,".","");
val=(parseFloat(val));barVal=val;}else{var val=Highcharts.numberFormat(this.value,4,".","");val=(parseFloat(val));barVal=val;}return barVal;}else{var val=Highcharts.numberFormat(this.value,4,".","");val=(parseFloat(val));return val;}},style:{fontFamily:barStyleAttrbs["yfontFmy"],fontSize:barStyleAttrbs["yfontSize"],color:barStyleAttrbs["yfontClr"]}},title:{text:Ext.String.htmlDecode(yaxisTitle),style:{color:barStyleAttrbs["ylabelfontClr"],fontFamily:barStyleAttrbs["ylabelfontFmy"],fontSize:barStyleAttrbs["ylabelfontSize"],}},tickPositioner:function(min,max){if(!isStackedColumn&&!isStackedBar){var act=min,ticks=[];
this.tickAmount=1;var flag=false;var interval=this.tickInterval;var second=0;if(min==max){if(max>1){max=max+1;}else{if(max==0){max=max+1;second=0;flag=true;}else{max=max+0.1;}}}var cc=1;while(act<=max){if(cc==2&&flag){ticks.push(second);}else{ticks.push(act);}act+=interval;cc++;}if(!flag){ticks.push(act);
}return ticks;}}},xAxis:{categories:xLabel,min:0,tickWidth:tickWidth,gridLineWidth:0,gridLineColor:barStyleAttrbs["gridLineColor"],lineColor:barStyleAttrbs["gridLineColor"],lineWidth:1,tickPixelInterval:75,tickLength:tickLength,endOnTick:true,showFirstLabel:true,startOnTick:true,labels:{enabled:xAxislabelEnabled,rotation:rotateDegree,tickmarkPlacement:"on",y:rotYval,step:labelStep,style:{width:isLabelWidth,fontFamily:barStyleAttrbs["xfontFmy"],fontSize:barStyleAttrbs["xfontSize"],color:barStyleAttrbs["xfontClr"],whiteSpace:"nowrap"},formatter:function(){if(!Ext.isEmpty(mychartwidth)){mychartwidth=this.chart.chartWidth;
}var charLen=(!Ext.isEmpty(fromPage)&&(fromPage.toLowerCase()=="insideview"||fromPage.toLowerCase()=="virtualtab"||fromPage.toLowerCase()=="vlive"))?16:32;charLen=(fromPage=="dashboard")?20:16;var val=this.value;var val2=val.toString();if(isNetworkTab!=null&&isNetworkTab==true){return val;}if(val!=null){var firstChar=val2.charAt(0);
if(firstChar==firstChar.toUpperCase()){var defLength=11;if(isFromNetflowConversationTab){defLength=val2.length;}if(isMyDashboard){defLength=mychartwidth*0.04;defLength=Ext.util.Format.round(defLength,0);if(defLength<11){defLength=11;}}if(val.length>defLength){var val2=val.substring(defLength);if(val2.length>3){val=val.substring(0,defLength)+"...";
}}}else{var defLength=charLen;if(isMyDashboard){defLength=mychartwidth*0.06666;defLength=Ext.util.Format.round(defLength,0);if(defLength<16){defLength=16;}}if(val!=null&&val.length>defLength){var val2=val.substring(defLength);if(val2.length>3){val=val.substring(0,defLength)+"...";}}}}return val;}},title:{text:Ext.String.htmlDecode(xaxisTitle),offset:offVal,style:{fontFamily:barStyleAttrbs["xlabelfontFmy"],fontSize:barStyleAttrbs["xlabelfontSize"],color:barStyleAttrbs["xlabelfontClr"],},},},plotOptions:{pie:{borderWidth:0,size:"75%",allowPointSelect:true,cursor:cur,dataLabels:{connectorColor:"#C0C0C0",softConnector:false,enabled:true,distance:5,style:{color:barStyleAttrbs["fontColor"],fontFamily:barStyleAttrbs["fontFamily"],fontSize:"11px",textShadow:false,textOutline:false}},slicedOffset:0,tooltip:{valueDecimals:4,pointFormat:'<span style="color:{point.color}">{point.y}</span> ',formatter:function(){if(!Ext.isEmpty(this.point)){if(this.point.hasOwnProperty("legendLabel")){return(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+": <b>"+this.point.y+"</b></span> ":'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.legendLabel)+"</span>";
}}}},point:{events:{click:function(){if(enableDrilldownLink&&isMyDashboardHealthPieChart){var QString=this.options;if(QString!=null&&QString.hasOwnProperty("diagnosisUrl")){var diagnosisUrl=QString["diagnosisUrl"];var openInNewWindow=QString["openInNewWindow"];if(diagnosisUrl!=null&&diagnosisUrl!="-"){if(openInNewWindow){loadPopup(diagnosisUrl);
}else{wayToLayerModel(diagnosisUrl);}}}else{if(QString!=null&&QString.hasOwnProperty("state")){var state=QString["state"];if(state!=null&&state=="Available"){if(jsonData["Availble"]!=null){if(jsonData["availServersinfoArr"]!=null){lastvisible="network_fieldset_online";loadDistrPopup(state);}}}else{if(state!=null&&state=="NonAvailable"){if(jsonData["NonAvailble"]!=null){if(jsonData["nonAvailServersinfoArr"]!=null){lastvisible="network_fieldset_offline";
loadDistrPopup(state);}}}else{if(state!=null&&state=="Maintenance"){if(jsonData["Maintenance"]!=null){if(jsonData["maintenanceServersinfoArr"]!=null){lastvisible="network_fieldset_maintenance";loadDistrPopup(state);}}}}}}}}else{if(isNetflowDashboardPieChart){var this_=Ext.getCmp(container_Id).up().id;
loadDetailsTable(Ext.getCmp(container_Id).pieInterface,Ext.getCmp(container_Id).up().id);return false;}else{if(isNetflowProtocolPieChart){var QString=this.options;if(QString!=null&&QString.hasOwnProperty("diagnosisUrl")){var diagnosisUrl=QString["diagnosisUrl"];if(diagnosisUrl!=null&&diagnosisUrl!="-"){wayToLayerModelForNetflowsProtocols(diagnosisUrl);
}}return false;}else{if(isCiscoProtocolPieChart){return false;}}}}}},}},bar:{maxPointWidth:pointWidthVal,grouping:isGrouping,dataLabels:{color:barStyleAttrbs["fontColor"],fontFamily:barStyleAttrbs["fontFamily"],fontWeight:"400",fontSize:"11px",style:{textShadow:false,textOutline:false}},tooltip:{valueDecimals:4,pointFormat:tipFormat},cursor:cur,point:{events:{click:function(e){if(enableDrilldownLink&&(!Ext.isEmpty(e.point)&&enableClick)){var QString=e.point.linkUrl;
if(QString!=""||QString!="null"||QString!="undefined"||QString!=undefined){if(isMyDashboard){if(QString!="-"){var openInNewWindow=e.point.openInNewWindow;if(openInNewWindow){loadPopup(QString);}else{wayToLayerModel(QString);}}}else{document.location.href=QString;}}}else{if(fromPage=="vlive"){var maxViewId=jsonData["fullViewId"];
var resTokens=maxViewId.split(",");showFullview(resTokens[0],this.event,resTokens[2]);}}}}}},column:{borderWidth:0,pointPadding:0.01,stacking:stackingVal,dataLabels:{rotation:Rotation,style:{color:dataLblColor,fontFamily:"Roboto",fontSize:"11px",textShadow:false,textOutline:false}},cursor:cur,point:{events:{click:function(e){if(enableDrilldownLink&&(!Ext.isEmpty(e.point)&&enableClick)){var id_value=e.point.id;
if(id_value!=null&&id_value!=undefined&&id_value!=""){showHourlyGraph(id_value);}else{var QString=e.point.linkUrl;if(QString!=""||QString!="null"||QString!="undefined"||QString!=undefined){if(isMyDashboard){if(QString!="-"){var openInNewWindow=e.point.openInNewWindow;if(openInNewWindow){loadPopup(QString);
}else{wayToLayerModel(QString);}}}else{document.location.href=QString;}}}}}}}},series:{id:chartId,shadow:setShadow,borderWidth:0,stacking:stackingVal,dataLabels:{enabled:columnplotoptiondatalabelenabled,inside:insideVal,overflow:col_overflow,crop:col_crop,style:{textOutline:false,fontWeight:"400",fontFamily:barStyleAttrbs["fontFamily"],textShadow:false,textOutline:false},color:dataLblColor,formatter:function(){if(!Ext.isEmpty(fromPage)&&(((fromPage.toLowerCase()=="insideview"||fromPage.toLowerCase()=="virtualtab")&&isStateBar)||(fromPage.toLowerCase()=="sysdashboard"))){if(this.y==null||this.y=="null"){return"";
}var val=Highcharts.numberFormat(this.y,2);val=(parseFloat(val));if(isStackedBar&&val<=10){return"";}else{return val;}}else{if(this.y==null||this.y=="null"){return"";}var val=Highcharts.numberFormat(this.y,2);val=(parseFloat(val));if(isStackedBar&&val<=10){return"";}else{if(enablePercentage){return val+" %";
}else{return val;}}}}},states:{hover:{enabled:false}},minPointLength:setMinPointLength}},legend:{layout:legendLayout,width:(chartWidth-20),align:legAlign,verticalAlign:"top",y:legx,x:legy,itemMarginTop:itemMarginTopVal,itemMarginBottom:itemMarginBottomVal,enabled:showLegend,maxHeight:legendMaxHeight,itemStyle:{color:barStyleAttrbs["legFontClr"],fontFamily:barStyleAttrbs["legFontFmy"],fontSize:barStyleAttrbs["legFontSize"],},labelFormatter:function(){var retrunvar=Ext.String.htmlDecode(this.name);
if(retrunvar.length>30&&needLegendFormat=="true"){c=0;strval="";while(c<retrunvar.length){strval+=retrunvar.substring(c,c+30)+"<br>";c=c+30;}retrunvar=strval;}return retrunvar;},}};var myhtml='<table width="100%" height="80%"><tr><td align="center" valign="middle">'+errImgSrc+"</td></tr></table>";var chartContObj=document.getElementById(container_Id);
var chartData=[];var state_count=0;for(var sc=0;sc<jsonData["DataSet"].length;sc++){if(jsonData.DataSet[sc].data==""||jsonData.DataSet[sc].data=="null"||jsonData.DataSet[sc].data=="undefined"||jsonData.DataSet[sc].data==undefined){state_count+=1;}}drawChart=true;if(jsonData["DataSet"]==""||jsonData["DataSet"]=="null"||jsonData["DataSet"]=="undefined"||jsonData["DataSet"]==undefined||state_count==5){drawChart=false;
if(chartContObj!=null){if(!Ext.isEmpty(jsonData["measureTitle"])){var errHtml='<center><div style="padding:5px;border:0px solid red;font-weight:500;font-size:12px;"><b>'+jsonData["measureTitle"]+'</b></div><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
chartContObj.innerHTML=errHtml;}else{chartContObj.innerHTML='<center><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';}}}else{this.highchart=jQuery.extend(true,this.defaults,chartingOptions);
if(fromPage!=null&&fromPage=="sysdashboard"){this.highchart.plotOptions.series.point={events:{click:function(e){if(maxURL!="null"&&maxURL!="undefined"&&maxURL!=""&&maxURL!=undefined&&maxURL!="close"){loadMaximizedView(maxURL);}else{if(maxURL=="close"){closeMaximizedView();}}}}};}this.highchart.series=jsonData["DataSet"];
this.highchart.chart.renderTo=container_Id;}},drawChart:function(){if(drawChart){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
if(this.isFromMyDashboard){this.highchart=jQuery.extend(true,this.highchart,getMyDashboardThemeFor(strSkin));}else{this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));}new Highcharts.Chart(this.highchart);}}};return ErHighStockChart;}function getPieChartsforMyDashboard(container_Id,chartHeight,chartWidth){var drawChart=true;
var ErHighStockChart={highchart:null,defaults:{chart:{height:chartHeight,width:chartWidth,plotBorderWidth:0,plotBorderColor:"#C0C0C0",backgroundColor:"transparent",plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"xy",ignoreHiddenSeries:false,spacing:[10,10,10,10],events:{load:function(event){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,},navigator:{enabled:false},scrollbar:{enabled:false},labels:{itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},tooltip:{shared:true,valueDecimals:4,followPointer:true,style:{color:"#c0c0c0",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false},credits:{enabled:false},title:{text:"",offset:"",margin:0},series:{}},setData:function(jsonData,currentDateFormat,maxURL,ctype){var isMyDashboardPieChart=false;
var cursor="pointer";if(ctype!=null&&ctype=="myDashboardPieChart"){ctype="pie";isMyDashboardPieChart=true;}var showLegendStyle=jsonData["showLegendStyle"];var isDataLabelsEnabled=false;if(showLegendStyle!=null&&showLegendStyle.toLowerCase()=="none"){isDataLabelsEnabled=true;}var islegendEnabled=false;
var alignVal=null;var layoutVal=null;var verticalAlignVal=null;if(showLegendStyle!=null&&(showLegendStyle.toLowerCase()=="horizontal"||showLegendStyle.toLowerCase()=="vertical")){if(showLegendStyle.toLowerCase()=="horizontal"){islegendEnabled=true;alignVal="bottom";layoutVal="horizontal";verticalAlignVal="bottom";
}else{if(showLegendStyle.toLowerCase()=="vertical"){islegendEnabled=true;alignVal="right";layoutVal="vertical";verticalAlignVal="middle";}}}var isEndOntick=(Ext.isEmpty(jsonData["tick"]))?true:jsonData["tick"];jsonData=(!Ext.isEmpty(jsonData.dataXML))?jsonData.dataXML:jsonData;var toolTipFmt="";var chartType=(Ext.isEmpty(ctype))?"bar":ctype;
var setMinPointLength=0;var setPointWidth=null;var showChartTitle=jsonData["showChartTitle"];var blockId=jsonData["blockId"];var showMultiplePieChart=jsonData["showMultiplePieChart"];var barStyleAttrbs=new Object();barStyleAttrbs["fontFamily"]="Roboto";barStyleAttrbs["fontSize"]="10px";barStyleAttrbs["yFontClr"]="#636363";
barStyleAttrbs["xfontClr"]="#636363";barStyleAttrbs["yfontFmy"]="Roboto";barStyleAttrbs["xfontFmy"]="Roboto";barStyleAttrbs["yfontSize"]="10px";barStyleAttrbs["xfontSize"]="10px";barStyleAttrbs["xfontWgt"]="normal";barStyleAttrbs["yfontWgt"]="normal";barStyleAttrbs["ylabelFontClr"]="#636363";barStyleAttrbs["xlabelfontClr"]="#636363";
barStyleAttrbs["ylabelfontFmy"]="Roboto";barStyleAttrbs["xlabelfontFmy"]="Roboto";barStyleAttrbs["ylabelfontSize"]="10px";barStyleAttrbs["xlabelfontSize"]="10px";barStyleAttrbs["ylabelfontWgt"]="500";barStyleAttrbs["xlabelfontWgt"]="normal";barStyleAttrbs["legFontClr"]="#636363";barStyleAttrbs["legFontFmy"]="Roboto";
barStyleAttrbs["legFontSize"]="10px";barStyleAttrbs["legFontWgt"]="normal";barStyleAttrbs["capFontClr"]="#333333";barStyleAttrbs["capFontFmy"]="Roboto";barStyleAttrbs["capFontSize"]="12px";barStyleAttrbs["capFontWgt"]="500";barStyleAttrbs["LegendPosition"]="center";var yaxisTitle="",xLabel="",xSubLabel="",showLegend=false;
showLegend=(Ext.isEmpty(jsonData["showLegend"]))?false:jsonData["showLegend"];barStyleAttrbs["bgColor"]=jsonData["bgColor"];barStyleAttrbs["plotBgColor"]=jsonData["plotBgColor"];barStyleAttrbs["fontColor"]=jsonData["fontColor"];barStyleAttrbs["gridLineColor"]=jsonData["gridLineColor"];barStyleAttrbs["LegendFont "]=jsonData["LegendFont"];
xLabel=jsonData["xAxisLabel"];xSubLabel=jsonData["xAxisSubLabel"];if(xSubLabel==null||xSubLabel==""||xSubLabel==undefined){xSubLabel="";}if(Ext.isEmpty(jsonData["styles"])){barStyleAttrbs["fontFamily"]=jsonData["fontName"];barStyleAttrbs["fontSize"]=jsonData["fontsize"];yaxisTitle=jsonData["yAxisLabel"];
xaxisTitle=jsonData["xAxisLabelName"];barStyleAttrbs["LegendPosition"]=jsonData["LegendPosition"];if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);}}else{if(jsonData.hasOwnProperty("fontName")){barStyleAttrbs["fontFamily"]=jsonData["fontName"];}if(jsonData.hasOwnProperty("fontsize")){barStyleAttrbs["fontSize"]=jsonData["fontsize"];
}yaxisTitle=jsonData["yAxisLabel"];xaxisTitle=jsonData["xAxisLabelName"];barStyleAttrbs["LegendPosition"]=jsonData["LegendPosition"];if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);}var stylesJson=jsonData["styles"];if(!Ext.isEmpty(stylesJson["legendStyle"])){barStyleAttrbs["legFontClr"]=stylesJson["legendStyle"].COLOR;
barStyleAttrbs["legFontFmy"]=stylesJson["legendStyle"].FAMILY;barStyleAttrbs["legFontSize"]=stylesJson["legendStyle"].SIZE;barStyleAttrbs["legFontWgt"]=stylesJson["legendStyle"].WEIGHT;}if(!Ext.isEmpty(stylesJson["title"])){barStyleAttrbs["capFontClr"]=stylesJson["title"].COLOR;barStyleAttrbs["capFontFmy"]=stylesJson["title"].FAMILY;
barStyleAttrbs["capFontSize"]=stylesJson["title"].SIZE;barStyleAttrbs["capFontWgt"]=stylesJson["title"].WEIGHT;}}if(barStyleAttrbs["bgColor"]==null||barStyleAttrbs["bgColor"]==""||barStyleAttrbs["bgColor"]=="null"){barStyleAttrbs["bgColor"]="transparent";}if(barStyleAttrbs["plotBgColor"]==null||barStyleAttrbs["plotBgColor"]==""||barStyleAttrbs["plotBgColor"]=="null"){barStyleAttrbs["plotBgColor"]="#ffffff";
}if(barStyleAttrbs["fontColor"]==null||barStyleAttrbs["fontColor"]==""||barStyleAttrbs["fontColor"]=="null"){barStyleAttrbs["fontColor"]="#c0c0c0";}if(barStyleAttrbs["gridLineColor"]==null||barStyleAttrbs["gridLineColor"]==""||barStyleAttrbs["gridLineColor"]=="null"){barStyleAttrbs["gridLineColor"]="#C0C0C0";
}yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?"":yaxisTitle;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?"":xaxisTitle;legx=90,legy=100;legAlign="right";var itemMarginTopVal=5;var itemMarginBottomVal=5;var legendLayout="vertical";var legendMaxHeight=null;if(barStyleAttrbs["LegendFont"]==null||barStyleAttrbs["LegendFont"]==""||barStyleAttrbs["LegendFont"]=="null"){barStyleAttrbs["LegendFont"]="Roboto";
}var subTitle=(Ext.isEmpty(jsonData.subTitle))?"":jsonData.subTitle;yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?((!Ext.isEmpty(jsonData["yAxisLabel"]))?jsonData["yAxisLabel"]:""):yaxisTitle;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?((!Ext.isEmpty(jsonData["xAxisLabelName"]))?jsonData["xAxisLabelName"]:""):xaxisTitle;
xLabel=(xLabel==null||xLabel=="")?"":xLabel;legendWidth=(barStyleAttrbs["LegendPosition"]=="right")?190:300;needLegendFormat=(barStyleAttrbs["LegendPosition"]=="right")?"true":"false";maxLegendHeight=(barStyleAttrbs["LegendPosition"]=="right")?null:50;valign=(barStyleAttrbs["LegendPosition"]=="right")?"middle":"top";
var chartTitle="";var titlePosition=15;var showToolTip=true;chartTitle=jsonData["title"];var isHtmlTitle=(Ext.isEmpty(jsonData["useHtml"]))?false:jsonData["useHtml"];chartTitle=(chartTitle==null||chartTitle=="")?"":chartTitle;var marginTopVal=(chartType=="bar"&&chartTitle!="")?40:20;if(chartType!=null&&chartType=="column"){marginTopVal=50;
}var fromPage=jsonData["fromPage"];var chartContObj=document.getElementById(container_Id);var stackingVal="normal";var rotateDegree=0;var cur="pointer";var offVal=40;var Rotation=0;var setGroupPadding=-0.065;var setPointPadding=0.1;var rotYval=0;var rotXval=0;var data=jsonData["DataSet"];var enableClick=(Ext.isEmpty(jsonData["enableClick"]))?false:jsonData["enableClick"];
if(jsonData["enableClick"]!=null&&jsonData["enableClick"]!=undefined&&(jsonData["enableClick"]==false||jsonData["enableClick"]=="false")){cur="default";offVal=65;if(chartType!=null&&chartType=="column"){stackingVal=null;rotateDegree=-90;Rotation=0;rotYval=40;}}else{stackingVal=null;rotYval=6;}var insideVal=false;
barStyleAttrbs["plotBgColor"]="transparent";var tipColor=((strSkin=="Dark"||strSkin=="dark"))?"#c0c0c0":"#2a292a";var tipFormat=((strSkin=="Dark"||strSkin=="dark"))?'<span style="color:white">{point.y}</span> ':'<span style="color:{point.color}">{point.y}</span> ';if(chartType!=null&&chartType=="pie"){barStyleAttrbs["fontColor"]=(strSkin=="Light")?"#2a292a":"#c0c0c0";
strpointFormat="";if(chartTitle!=null&&chartTitle!=""){chartTitle=(Ext.isEmpty(jsonData["unit"]))?chartTitle:chartTitle+"("+jsonData["unit"]+")";}}else{strpointFormat="<b>:{point.y}</b>";}if(showChartTitle&&(jsonData!=null&&jsonData.hasOwnProperty("componentDrillDownURL"))){var componentDrillDownURL=jsonData["componentDrillDownURL"];
if(blockId!="null"&&blockId!="undefined"&&showMultiplePieChart){if(!Ext.isEmpty(componentDrillDownURL)&&componentDrillDownURL!="-"){isHtmlTitle=true;chartTitle="<a href='javascript:navigateMoreOptionsTo(\""+componentDrillDownURL+'","'+blockId+"\")'>"+chartTitle+"</a>";}}else{if(!Ext.isEmpty(componentDrillDownURL)&&componentDrillDownURL!="-"){isHtmlTitle=true;
chartTitle="<a href='javascript:goToLayerModel(\""+componentDrillDownURL+"\")'>"+chartTitle+"</a>";}}}if(!showChartTitle){chartTitle="";}if(data!=null&&data.length>=1){calx=(chartWidth/data.length)+40;var xx=data[0].data;if(xx.length<3){setGroupPadding=0.2;setPointPadding=0.4;}}var space=[10,10,10,10];
var marginbottom=null;var marginright=null;var mychartwidth=chartWidth;var mychartheight=chartHeight;var marginTop=null;if(isMyDashboardPieChart){space=[0,0,0,0];marginTopVal=null;}var enableDrilldownLink=true;if((jsonData["enableDrilldownLink"]!=null)&&!Ext.isEmpty(jsonData["enableDrilldownLink"])){enableDrilldownLink=jsonData["enableDrilldownLink"];
}if(enableDrilldownLink==false||enableDrilldownLink=="false"){cursor="default";}var ismytooltip=jsonData["mytooltip"];var chartingOptions={chart:{height:mychartheight,width:mychartwidth,type:chartType,spacing:space,marginBottom:marginbottom,backgroundColor:barStyleAttrbs["bgColor"],plotBackgroundColor:barStyleAttrbs["plotBgColor"],plotBorderColor:barStyleAttrbs["gridLineColor"],marginTop:marginTopVal,events:{click:function(e){if(e.target.firstChild==null||e.target.firstChild==undefined){if(maxURL!="null"&&maxURL!="undefined"&&maxURL!=""&&maxURL!=undefined&&maxURL!="close"){loadMaximizedView(maxURL);
}else{if(maxURL=="close"){closeMaximizedView();}}}}}},title:{useHTML:isHtmlTitle,text:Ext.String.htmlDecode(chartTitle),offset:"",y:titlePosition,style:{color:barStyleAttrbs["capFontClr"],fontFamily:barStyleAttrbs["capFontFmy"],fontSize:barStyleAttrbs["capFontSize"]}},subtitle:{text:subTitle,style:{color:barStyleAttrbs["capFontClr"],fontFamily:barStyleAttrbs["capFontFmy"],fontSize:barStyleAttrbs["capFontSize"]}},tooltip:{enabled:showToolTip,valueDecimals:4,formatter:function(){var s="";
var val=Highcharts.numberFormat(this.y,4,".","");var val_ar=val.split(".");if(val_ar.length>1){if(val_ar[1]=="0000"){val=val_ar[0];}}if(isMyDashboardPieChart){s+='<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+"</b></span>";}return s;},style:{width:"200px",whiteSpace:"normal"}},plotOptions:{pie:{borderWidth:0,allowPointSelect:true,cursor:cursor,showInLegend:true,startAngle:0,endAngle:360,size:"75%",innerSize:"50%",dataLabels:{enabled:true,connectorColor:"#C0C0C0",softConnector:false,distance:-25,style:{textOutline:false,textShadow:false},formatter:function(){var charLen=(!Ext.isEmpty(fromPage)&&(fromPage.toLowerCase()=="insideview"||fromPage.toLowerCase()=="virtualtab"||fromPage.toLowerCase()=="vlive"))?16:32;
var val=Ext.String.htmlDecode(this.point.name);var defLength=16;if(isMyDashboardPieChart){if(val!=null){if(val.indexOf(":")>0){val=val.substring(val.lastIndexOf(":")+1);if(val.lastIndexOf("%")>0){var valFloat=parseFloat(val);var valRound=Math.round(valFloat);if(valRound<10){val="";}}}}}return val;}},slicedOffset:0,tooltip:{valueDecimals:4,pointFormat:'<span style="color:{point.color}">{point.y}</span> ',formatter:function(){if(!Ext.isEmpty(this.point)){if(this.point.hasOwnProperty("legendLabel")){return(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+": <b>"+this.point.y+"</b></span> ":'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.legendLabel)+"</span>";
}}}},point:{events:{click:function(){if(enableDrilldownLink){var QString=this.options;if(QString!=null&&QString.hasOwnProperty("diagnosisUrl")){var diagnosisUrl=QString["diagnosisUrl"];var openInNewWindow=QString["openInNewWindow"];if(diagnosisUrl!=null&&diagnosisUrl!="-"){if(openInNewWindow){loadPopup(diagnosisUrl);
}else{wayToLayerModel(diagnosisUrl);}}}else{if(QString!=null&&QString.hasOwnProperty("state")){var state=QString["state"];if(state!=null&&state=="Available"){if(jsonData["Availble"]!=null){if(jsonData["availServersinfoArr"]!=null){lastvisible="network_fieldset_online";loadDistrPopup(state);}}}else{if(state!=null&&state=="NonAvailable"){if(jsonData["NonAvailble"]!=null){if(jsonData["nonAvailServersinfoArr"]!=null){lastvisible="network_fieldset_offline";
loadDistrPopup(state);}}}else{if(state!=null&&state=="Maintenance"){if(jsonData["Maintenance"]!=null){if(jsonData["maintenanceServersinfoArr"]!=null){lastvisible="network_fieldset_maintenance";loadDistrPopup(state);}}}}}}}}}},}},series:{borderWidth:0,stacking:stackingVal,groupPadding:setGroupPadding,pointPadding:setPointPadding,dataLabels:{enabled:true,inside:insideVal,style:{fontWeight:"500",color:"#FFFFFF",fontSize:"10px",textOutline:false,textShadow:false}},states:{hover:{enabled:false}},minPointLength:setMinPointLength}},legend:{itemMarginBottom:5,align:alignVal,layout:layoutVal,verticalAlign:verticalAlignVal,enabled:islegendEnabled,labelFormatter:function(){var retrunvar=Ext.String.htmlDecode(this.legendName);
if(retrunvar.length>30&&needLegendFormat=="true"){c=0;strval="";while(c<retrunvar.length){strval+=retrunvar.substring(c,c+30)+"<br>";c=c+30;}retrunvar=strval;}return retrunvar;},}};var myhtml='<table width="100%" height="80%"><tr><td align="center" valign="middle">'+errImgSrc+"</td></tr></table>";var chartContObj=document.getElementById(container_Id);
var chartData=[];var state_count=0;for(var sc=0;sc<jsonData["DataSet"].length;sc++){if(jsonData.DataSet[sc].data==""||jsonData.DataSet[sc].data=="null"||jsonData.DataSet[sc].data=="undefined"||jsonData.DataSet[sc].data==undefined){state_count+=1;}}if(jsonData["DataSet"]==""||jsonData["DataSet"]=="null"||jsonData["DataSet"]=="undefined"||jsonData["DataSet"]==undefined||state_count==5){drawChart=false;
if(chartContObj!=null){if(!Ext.isEmpty(jsonData["measureTitle"])){var errHtml='<center><div style="padding:5px;border:0px solid red;font-weight:500;font-size:12px;"><b>'+jsonData["measureTitle"]+'</b></div><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
chartContObj.innerHTML=errHtml;}else{chartContObj.innerHTML='<center><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';}}}else{this.highchart=jQuery.extend(true,this.defaults,chartingOptions);
this.highchart.series=jsonData["DataSet"];this.highchart.chart.renderTo=container_Id;}},drawChart:function(){if(drawChart){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
if(this.highchart.chart.height<250){this.highchart.plotOptions.series.dataLabels.enabled=false;}else{this.highchart.plotOptions.series.dataLabels.enabled=true;}this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));new Highcharts.Chart(this.highchart);}}};return ErHighStockChart;}function getPieChartsforSLA(g,b,d){var a=true;
var f={highchart:null,defaults:{chart:{height:b,width:d,plotBorderWidth:0,plotBorderColor:"#C0C0C0",backgroundColor:"transparent",plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"xy",ignoreHiddenSeries:false,spacing:[10,10,10,10],events:{load:function(h){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,},navigator:{enabled:false},scrollbar:{enabled:false},labels:{itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},tooltip:{shared:true,valueDecimals:4,followPointer:true,style:{color:"#c0c0c0",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false},credits:{enabled:false},title:{text:"",offset:"",margin:0},series:{}},setData:function(I,P,H,S){var l="pointer";
var j="";var G=(Ext.isEmpty(S))?"bar":S;var n=0;var M=null;var D=new Object();D["fontFamily"]="Roboto";D["fontSize"]="10px";D["yFontClr"]="#636363";D["xfontClr"]="#636363";D["yfontFmy"]="Roboto";D["xfontFmy"]="Roboto";D["yfontSize"]="10px";D["xfontSize"]="10px";D["xfontWgt"]="normal";D["yfontWgt"]="normal";
D["ylabelFontClr"]="#636363";D["xlabelfontClr"]="#636363";D["ylabelfontFmy"]="Roboto";D["xlabelfontFmy"]="Roboto";D["ylabelfontSize"]="10px";D["xlabelfontSize"]="10px";D["ylabelfontWgt"]="500";D["xlabelfontWgt"]="normal";D["legFontClr"]="#636363";D["legFontFmy"]="Roboto";D["legFontSize"]="10px";D["legFontWgt"]="normal";
D["capFontClr"]="#333333";D["capFontFmy"]="Roboto";D["capFontSize"]="12px";D["capFontWgt"]="500";D["LegendPosition"]="center";if(D["bgColor"]==null||D["bgColor"]==""||D["bgColor"]=="null"){D["bgColor"]="transparent";}if(D["plotBgColor"]==null||D["plotBgColor"]==""||D["plotBgColor"]=="null"){D["plotBgColor"]="#ffffff";
}if(D["fontColor"]==null||D["fontColor"]==""||D["fontColor"]=="null"){D["fontColor"]="#c0c0c0";}if(D["gridLineColor"]==null||D["gridLineColor"]==""||D["gridLineColor"]=="null"){D["gridLineColor"]="#C0C0C0";}legx=90,legy=100;legAlign="right";var U=5;var w=5;var K="vertical";var z=null;if(D["LegendFont"]==null||D["LegendFont"]==""||D["LegendFont"]=="null"){D["LegendFont"]="Roboto";
}legendWidth=(D["LegendPosition"]=="right")?190:300;needLegendFormat=(D["LegendPosition"]=="right")?"true":"false";maxLegendHeight=(D["LegendPosition"]=="right")?null:50;valign=(D["LegendPosition"]=="right")?"middle":"top";var x=(G=="bar"&&chartTitle!="")?40:20;var v=document.getElementById(g);var u="normal";
var m=0;var r="pointer";var F=40;var k=0;var O=-0.065;var B=0.1;var R=0;var E=0;var q=false;D["plotBgColor"]="transparent";var C=((strSkin=="Dark"||strSkin=="dark"))?"#c0c0c0":"#2a292a";var T=((strSkin=="Dark"||strSkin=="dark"))?'<span style="color:white">{point.y}</span> ':'<span style="color:{point.color}">{point.y}</span> ';
if(G!=null&&G=="pie"){D["fontColor"]=(strSkin=="Light")?"#2a292a":"#c0c0c0";strpointFormat="";}else{strpointFormat="<b>:{point.y}</b>";}var Q=[10,10,10,10];var o=null;var t=null;var s=d;var h=b;var N=null;var J={chart:{height:h,width:s,type:G,spacing:Q,marginBottom:o,backgroundColor:D["bgColor"],plotBackgroundColor:D["plotBgColor"],plotBorderColor:D["gridLineColor"],marginTop:x,},title:{offset:"",margin:15,style:{color:D["capFontClr"],fontFamily:D["capFontFmy"],fontSize:D["capFontSize"]}},subtitle:{style:{color:D["capFontClr"],fontFamily:D["capFontFmy"],fontSize:D["capFontSize"]}},tooltip:{valueDecimals:4,formatter:function(){var V="";
var X=Highcharts.numberFormat(this.y,4,".","");var W=X.split(".");if(W.length>1){if(W[1]=="0000"){X=W[0];}}V+='<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+"</b></span>";return V;},style:{width:"200px",whiteSpace:"normal"}},plotOptions:{pie:{borderWidth:0,allowPointSelect:true,cursor:l,showInLegend:true,startAngle:0,endAngle:360,size:"75%",innerSize:"50%",dataLabels:{enabled:true,connectorColor:"#C0C0C0",softConnector:false,distance:-25,style:{textOutline:false,textShadow:false},formatter:function(){var V=Ext.String.htmlDecode(this.point.name);
return V;}},slicedOffset:0,tooltip:{valueDecimals:4,pointFormat:'<span style="color:{point.color}">{point.y}</span> ',formatter:function(){if(!Ext.isEmpty(this.point)){if(this.point.hasOwnProperty("legendLabel")){return(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+": <b>"+this.point.y+"</b></span> ":'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.legendLabel)+"</span>";
}}}},point:{events:{click:function(){}},}},series:{borderWidth:0,stacking:u,groupPadding:O,pointPadding:B,dataLabels:{enabled:true,inside:q,style:{fontWeight:"500",color:"#FFFFFF",fontSize:"10px",textOutline:false,textShadow:false}},states:{hover:{enabled:false}},minPointLength:n}},legend:{itemMarginBottom:5,align:null,layout:null,verticalAlign:null,enabled:false,labelFormatter:function(){var V=Ext.String.htmlDecode(this.legendName);
if(V.length>30&&needLegendFormat=="true"){c=0;strval="";while(c<V.length){strval+=V.substring(c,c+30)+"<br>";c=c+30;}V=strval;}return V;},}};var L='<table width="100%" height="80%"><tr><td align="center" valign="middle">'+errImgSrc+"</td></tr></table>";var v=document.getElementById(g);var A=[];this.highchart=jQuery.extend(true,this.defaults,J);
this.highchart.series=I["DataSet"];this.highchart.chart.renderTo=g;},drawChart:function(){if(a){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
if(this.highchart.chart.height<250){this.highchart.plotOptions.series.dataLabels.enabled=false;}else{this.highchart.plotOptions.series.dataLabels.enabled=true;}this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));new Highcharts.Chart(this.highchart);}}};return f;}function getHighStockAreaChartForMyDashboard(j,d,k,f,g){var h=true;
var a;var b=false;var n=new Date();var l=(strSkin=="Light")?"#2a292a":"#c0c0c0";var m={highchart:null,isExternalIntegrationWidget:false,defaults:{chart:{plotBorderWidth:0,plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"x",reflow:false,width:k,backgroundColor:"transparent",trackByArea:true},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},navigator:{enabled:false},yAxis:{border:0,lineWidth:0,gridLineWidth:1,gridLineColor:"#525252",tickPixelInterval:50,labels:{align:"right",x:-3,y:6,formatter:function(){return(this.value>0?" ":"")+this.value;
},style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px"},},showLastLabel:true,},plotOptions:{series:{fillOpacity:0.9,states:{hover:{enabled:false}},connectNulls:false,smoothed:true,lineWidth:2,marker:{enabled:false}},line:{shadow:false,linewidth:10}},scrollbar:{enabled:false},legend:{enabled:true,verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:l,fontFamily:"Roboto",fontSize:"11px",},symbolWidth:15},labels:{itemStyle:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",},},tooltip:{},exporting:{enabled:false,chartOptions:{title:{text:""}}},credits:{enabled:false},xAxis:{border:0,lineWidth:0,minPadding:0.02,maxPadding:0.02,type:"datetime",gridLineWidth:0,gridLineColor:"#525252",ordinal:false,labels:{y:4,x:4,align:"center",style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px"},overflow:"justify",maxStaggerLines:7,showLastLabel:true,showFirstLabel:false,startOnTick:true,useHTML:false,tickPixelInterval:50,formatter:function(){return Highcharts.dateFormat("",this.value);
}},title:{enabled:true,offset:""}},series:g},setData:function(R,ad,P,ah,O){var G=this.isExternalIntegrationWidget;var Y=new Date();var t=(strSkin=="Light")?"#f7f7f7":"#828282";var q="";var K="line";q=tooltipDateFormate(ad);var E="";ymax=R["max"];var aa=false;if(R!=null&&R.hasOwnProperty("isFromCustomYMax")){aa=R["isFromCustomYMax"];
}ymin=0;fontFamily=R["fontName"];fontSize=R["fontsize"];startTime=R["xmin"];LegendPosition=R["legendPosition"];xLabel=R["axislabel"];LegendFont=R["LegendFont"];var U=R["fmts"];fontFamily="Roboto";LegendFont="Roboto";xLabel=(xLabel==null||xLabel=="")?"":xLabel;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;
fontSize=(fontSize==null||fontSize=="")?"11px":fontFamily+"px";startTime=(startTime==null||startTime=="")?null:startTime;LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;U=(U==null||U=="")?"HH:mm":U;
E=getTimeLineOutputFormat(U);legendWidth=(LegendPosition=="right")?150:300;maxLegendHeight=(LegendPosition=="right")?null:50;valign=(LegendPosition=="right")?"middle":"top";legendLayout=(LegendPosition=="right")?"vertical":"horizontal";chartTitle=R["title"];enableExport=true;lessWidth=55;var w=R["DataSet"].length;
var L=(w<=2)?200:0;var ag=R["chartTitle"];var ab="";if(!Ext.isEmpty(R["fromPage"])){ab=R["fromPage"];}var N=(ab=="seum")?true:false;if(O=="bottom"){valign="middle";y=5;legendWidth=100;enableExport=false;legendLayout="right";LegendPosition="center";maxLegendHeight=20;var A=chartTitle.split(":");if(A!=null&&A!=undefined&&A.length>0){chartTitle=chartTitle.substring(chartTitle.lastIndexOf(":")+1);
}}if(Ext.isEmpty(ag)){ag=chartTitle;}if(w<=3){valign="top";y=20;if(O=="bottom"){legendWidth=200;L=(w<=2)?100:0;}else{legendWidth=500;L=200;}LegendPosition="";legendLayout="horizontal";maxLegendHeight=40;}else{y=5;valign="middle";legendWidth=150;LegendPosition="right";legendLayout="vertical";maxLegendHeight=null;
}if(ah!=undefined&&!ah){xLabel="";}var o="datetime";var ac=null;if(R!=null&&R.hasOwnProperty("isStackedArea")){var ae=R["isStackedArea"];if(ae){ac="normal";}}var r=3;var Z=false;var z=null;var M=true;var F=R["legendEnabled"];var u=R["xAxisDisplay"];M=F;M=(Ext.isEmpty(M))?true:M;var af="";var C="";var H=false;
var X=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")||(ac!=null&&ac=="normal")){X=0;ymin=null;ymax=null;}if(ymin!=null&&ymax!=null&&(ymin==ymax)){ymax=ymin+1;}var S=Ext.ComponentQuery.query("#showLegend")[0];if(!Ext.isEmpty(Ext.getCmp("showLegend"))){H=Ext.getCmp("showLegend").getValue();
b=true;}if(S!="undefined"&&S!=undefined){H=S.getValue();}H=(N)?true:H;var D=270;if(U=="%H:%M"){af=33;C=60;}else{af=51;C=75;D=-45;}if(u=="horizontal"){af=13;C=5;D=2;}Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});var V=true;if((R["enableDrilldownLink"]!=null)&&!Ext.isEmpty(R["enableDrilldownLink"])){V=R["enableDrilldownLink"];
}var v="pointer";if(V==false||V=="false"){v="default";}var Q=R["isTransparentAreaChart"];var W=0.9;var s=new Object();if(aa){s={max:ymax,min:ymin,minPadding:X,title:{text:"",},tickPositioner:function(aj,x){var al=[],ai=aj,ak=Math.round((x-aj)/4);while(ai<x-ak/2){al.push(Math.round(ai));ai+=ak;}al.push(Math.round(x));
return al;}};}else{s={max:ymax,min:ymin,minPadding:X,title:{text:"",}};}var T={chart:{marginTop:5,events:{click:function(x){if(x.srcElement.firstChild==null||x.srcElement.firstChild==undefined){if(P!="null"&&P!="undefined"&&P!=""&&P!=undefined&&P!="close"){loadMaximizedView(P);}else{if(P=="close"){closeMaximizedView();
}}}},load:function(){}}},tooltip:{enabled:true},tooltip:{xDateFormat:q,valueDecimals:4,itemStyle:{color:l,},formatter:function(){if(!Ext.isEmpty(this.point)){var x="";x='<span style="color:'+l+'">'+Highcharts.dateFormat(q,this.point.x,true)+"</span><br/>";var aj=Highcharts.numberFormat(this.point.y,4,".","");
var ai=aj.split(".");if(ai.length>1){if(ai[1]=="0000"){aj=ai[0];}}if(this.point.series.name!=""&&this.point.series.name!=undefined&&M){if(G){if(this.point.name!=""){x+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.name)+" : "+Ext.String.htmlDecode(this.point.series.name)+" : "+aj+"</span></b><br/>";
}else{x+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.series.name)+" :  "+aj+"</span></b><br/>";}}else{x+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.series.name)+" :  "+aj+"</span></b><br/>";}}return x;}}},title:{text:Ext.String.htmlDecode(chartTitle),style:{color:"#c0c0c0",fontWeight:"500",fontFamily:"Roboto",fontSize:"12px",}},yAxis:s,xAxis:{type:o,labels:{x:0,y:af-10,rotation:D,formatter:function(){return Highcharts.dateFormat(U,this.value);
}},title:{text:Ext.String.htmlDecode(xLabel),offset:C,style:{color:"#c0c0c0",fontFamily:fontFamily,fontSize:"11px",},}},trackByArea:true,plotOptions:{series:{threshold:null,fillOpacity:W,marker:{enabled:Z,},states:{hover:{enabled:true}},stacking:ac,cursor:v,pointStart:startTime,events:{click:function(x){if(V&&this.hasOwnProperty("userOptions")){if(this.userOptions.layerModelUrl!="-"){wayToLayerModel(this.userOptions.layerModelUrl);
}}}}},scatter:{tooltip:z,},},legend:{enabled:H,verticalAlign:valign,width:legendWidth,align:LegendPosition,maxHeight:maxLegendHeight,y:y,itemStyle:{fontFamily:LegendFont,},labelFormatter:function(){var ai=Ext.String.htmlDecode(this.name);if(ai!=""&&ai!="undefined"&&ai!="infinity"){ai=this.name;}else{ai="null";
}var al=ai;if(valign=="middle"){var ak="";if(al.length>=20){ak=al.substring(0,20);var aj=al.substring(20);aj=aj.trim();while(aj.length>20){ak=ak+"<br>"+aj.substring(0,20);aj=aj.substring(20);}if(aj.length>2){var x=aj.substring(0,2);if(x.indexOf(" ")>-1){ak=al.substring(0,22);}}ak=ak+"<br>"+aj;}else{ak=al;
}}else{ak=ai;}return ak;}},navigation:{buttonOptions:{x:20}},exporting:{enabled:enableExport,chartOptions:{title:{text:Ext.String.htmlDecode(ag)}},buttons:{contextButton:{menuItems:menuItemArray,theme:{fill:t,states:{hover:{fill:t}}}}}}};var B=document.getElementById(j);if(B==null||B==undefined){B=Ext.getCmp(j);
}h=true;var I=[];if(R["DataSet"]==""||R["DataSet"]=="null"||R["DataSet"]=="undefined"||R["DataSet"]==undefined){h=false;if(B!=null){if(R.hasOwnProperty("NoMeasAvailableMsg")){var J=R["NoMeasAvailableMsg"];if(J!=null&&J!=""){J='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+J+"</div></div></div>";
}else{J='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">No Measures Available</div></div></div>';}B.innerHTML=J;}else{B.innerHTML=myImgHtml;
}}}else{this.highchart=jQuery.extend(true,this.defaults,T);this.highchart.series=R["DataSet"];this.highchart.chart.renderTo=j;}},drawErrorMsg:function(r){var o='<center><div style="margin:20% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div class="commonErrorMsgText">No data found</div></div></center>';
var q=document.getElementById(r);if(q!=null){q.innerHTML=o;}},drawChart:function(){var o=new Date();if(h){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});this.highchart=jQuery.extend(true,this.highchart,getMyDashboardThemeFor(strSkin));
new Highcharts.Chart(this.highchart,function(q){if(!b){jQuery(".showLegend").click(function(){q.legendToggle();});}else{jQuery("#showLegend").click(function(){q.legendToggle();});}});}}};return m;}function getHighChartsForMyDashboard(h,d,j,f){var g=true;var a;var b=false;var l=new Date();var k={highchart:null,isExternalIntegrationWidget:false,defaults:{chart:{plotBorderWidth:0,spacingBottom:0,plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"x",backgroundColor:"transparent",events:{load:function(m){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},navigator:{enabled:false},yAxis:[{border:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:50,opposite:true,labels:{formatter:function(){return(this.value>0?" ":"")+this.value;
},style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,},{border:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:50,labels:{formatter:function(){return(this.value>0?" ":"")+this.value;},style:{color:"black",fontFamily:"Roboto",fontSize:"12px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,}],plotOptions:{series:{fillOpacity:0.9,states:{hover:{enabled:true,lineWidth:2,}},connectNulls:false,smoothed:true,lineWidth:2,marker:{enabled:false}},line:{shadow:false,linewidth:10}},scrollbar:{enabled:false},legend:{enabled:true,verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",},symbolWidth:15},labels:{itemStyle:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false,chartOptions:{title:{text:""}}},credits:{enabled:false},xAxis:{border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,type:"datetime",gridLineWidth:0,gridLineColor:"#525252",ordinal:false,labels:{y:4,x:4,align:"center",style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:false,startOnTick:false,useHTML:false,tickPixelInterval:50,formatter:function(){return Highcharts.dateFormat("",this.value);
}},title:{enabled:true,offset:""}},series:{marker:{enabled:false,states:{hover:{enabled:true,lineWidthPlus:0}}},dataGrouping:{enabled:false}}},setData:function(U,ai,T,ao,S){var J=this.isExternalIntegrationWidget;var I=false;if(U!=null&&U.hasOwnProperty("isDDWidget")){I=U["isDDWidget"];}var ab=new Date();
var t=(strSkin=="Light")?"#f7f7f7":"#828282";var o="";var P="line";o=tooltipDateFormate(ai);var G="";ymax=U["max"];var af=false;if(U!=null&&U.hasOwnProperty("isFromCustomYMax")){af=U["isFromCustomYMax"];}ymin=0;var ac=U["isTrendGraph"];if(Ext.isEmpty(ac)){ac=false;}fontFamily=U["fontName"];fontSize=U["fontsize"];
startTime=U["xmin"];LegendPosition=U["legendPosition"];xLabel=U["axislabel"];LegendFont=U["LegendFont"];var X=U["fmts"];fontFamily="Roboto";LegendFont="Roboto";xLabel=(xLabel==null||xLabel=="")?"":xLabel;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;fontSize=(fontSize==null||fontSize=="")?"11px":fontFamily+"px";
startTime=(startTime==null||startTime=="")?null:startTime;LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;X=(X==null||X=="")?"HH:mm":X;var A=(ac==true)?2:4;G=getTimeLineOutputFormat(X);
legendWidth=(LegendPosition=="right")?150:300;maxLegendHeight=(LegendPosition=="right")?null:50;valign=(LegendPosition=="right")?"middle":"top";legendLayout=(LegendPosition=="right")?"vertical":"horizontal";isThresholdLine=(!Ext.isEmpty(U["isThresholdComparison"]))?U["isThresholdComparison"]:false;chartTitle=U["title"];
enableExport=true;lessWidth=55;plotPanelColor="#C0C0C0";if(!Ext.isEmpty(U["styles"])){plotPanelColor=(!Ext.isEmpty(U["styles"]["panelLineStyle"]))?U["styles"]["panelLineStyle"].COLOR:"#C0C0C0";}xlineWidth=1;xGridLineWidth=1;ylineWidth=1;yGridLineWidth=1;if(isThresholdLine){ylineWidth=1;yGridLineWidth=0;
xlineWidth=1;xGridLineWidth=1;}var z=U["DataSet"].length;var ak="rgba(255, 255, 255, 0.85)";ak=(z==1)?U["DataSet"][0]["color"]:ak;var Q=(z<=2)?200:0;var an=U["chartTitle"];var L=0;if(U.hasOwnProperty("dispNegatives")&&U["dispNegatives"]==true){L=null;}var aa=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){aa=0;
L=null;ymax=null;}if(L!=null&&ymax!=null&&(L==ymax)){ymax=L+1;}if(S=="bottom"){valign="middle";y=5;legendWidth=100;enableExport=false;legendLayout="right";LegendPosition="center";maxLegendHeight=20;var C=chartTitle.split(":");if(C!=null&&C!=undefined&&C.length>0){chartTitle=chartTitle.substring(chartTitle.lastIndexOf(":")+1);
}}if(Ext.isEmpty(an)){an=chartTitle;}if(z<=3){valign="top";y=20;if(S=="bottom"){legendWidth=200;Q=(z<=2)?100:0;}else{legendWidth=500;Q=200;}LegendPosition="";legendLayout="horizontal";maxLegendHeight=40;}else{y=5;valign="middle";legendWidth=150;LegendPosition="right";legendLayout="vertical";maxLegendHeight=null;
}if(ao!=undefined&&!ao){xLabel="";}var n="datetime";var ah=null;var r=3;var ae=false;var B=null;var R=true;var H=U["legendEnabled"];R=H;var aj="";var E="";var K=false;var V=Ext.ComponentQuery.query("#showLegend")[0];if(!Ext.isEmpty(Ext.getCmp("showLegend"))){K=Ext.getCmp("showLegend").getValue();b=true;
}if(V!="undefined"&&V!=undefined){K=V.getValue();}var F=270;if(X=="%H:%M"){aj=33;E=60;}else{aj=51;E=75;F=-45;}Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});var Z=true;if((U["enableDrilldownLink"]!=null)&&!Ext.isEmpty(U["enableDrilldownLink"])){Z=U["enableDrilldownLink"];
}var v="pointer";if(Z==false||Z=="false"){v="default";}var N=((strSkin=="light"||strSkin=="Light"))?"#606060":"#c0c0c0";var am=((strSkin=="light"||strSkin=="Light"))?"#e1e1e1":"#666666";var s=null;var q=U["yAxisLblsArr"];if(q!=null&&!Ext.isEmpty(q)){var w=U["isSameUnitForSeries"];var ag=U["isSingleMetricAndPercentageUnit"];
if(!af&&(Ext.isEmpty(ag)||!ag)){ymax=null;}if(q.length>1){s=new Array();for(var al=0;al<q.length;al++){var m=null;var u=N;var ad=q[al];if(!w){m=ad["yAxisLbl"];u=ad["color"];}else{m=ad["yAxisLbl"];if(m!=undefined&&m=="%"){m="Percentage (%)";}else{m="("+m+")";}}if(al!=1){s.push({max:ymax,opposite:true,min:L,minPadding:aa,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontWeight:"normal",fontFamily:"Roboto",fontSize:"11px",},align:"left",x:10,y:3,formatter:function(){var x=Highcharts.numberFormat(this.value,A,".","");
x=(parseFloat(x));return x;}},title:{text:m,rotation:270,x:4,style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",}},gridLineColor:am,lineColor:am,minorGridLineColor:am,tickColor:am});}else{s.push({max:ymax,min:L,minPadding:aa,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontWeight:"normal",fontFamily:"Roboto",fontSize:"11px",},align:"right",x:-10,y:3,formatter:function(){var x=Highcharts.numberFormat(this.value,A,".","");
x=(parseFloat(x));return x;}},title:{text:m,rotation:270,x:-5,style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",}},gridLineColor:am,lineColor:am,minorGridLineColor:am,tickColor:am});}}}else{s=new Object();var ad=q[0];var m=ad["yAxisLbl"];if(w){if(m!=undefined&&m=="%"){m="Percentage (%)";
}else{m="("+m+")";}}if(af){s={max:ymax,min:L,minPadding:aa,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontWeight:"normal",fontFamily:"Roboto",fontSize:"11px",},align:"right",x:-10,y:3,formatter:function(){var x=Highcharts.numberFormat(this.value,A,".","");
x=(parseFloat(x));return x;}},tickPositioner:function(aq,x){var at=[],ap=aq,ar=Math.round((x-aq)/4);while(ap<x-ar/2){at.push(Math.round(ap));ap+=ar;}at.push(Math.round(x));return at;},title:{text:m,rotation:270,x:-5,style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",}},gridLineColor:am,lineColor:am,minorGridLineColor:am,tickColor:am};
}else{s={max:ymax,min:L,minPadding:aa,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontWeight:"normal",fontFamily:"Roboto",fontSize:"11px",},align:"right",x:-10,y:3,formatter:function(){var x=Highcharts.numberFormat(this.value,A,".","");
x=(parseFloat(x));return x;}},title:{text:m,rotation:270,x:-5,style:{color:((strSkin=="light"||strSkin=="Light"))?"#969696":"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",}},gridLineColor:am,lineColor:am,minorGridLineColor:am,tickColor:am};}}}var W={chart:{spacing:[0,0,0,0],events:{click:function(ap){if(!Ext.isEmpty(ap.srcElement)&&(ap.srcElement.firstChild==null||ap.srcElement.firstChild==undefined)){if(T!="null"&&T!="undefined"&&T!=""&&T!=undefined&&T!="close"){loadMaximizedView(T);
}else{if(T=="close"){closeMaximizedView();}}}if(!Ext.isEmpty(jQuery(ap.target)[0])){var x=(jQuery(ap.target)[0].textContent);if(x.indexOf("Reset")>-1){zoomPageRefresh(false);}}}},load:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");
},selection:function(x){if(x.xAxis){if(!Ext.isEmpty(x.xAxis[0])){var ap=x.xAxis[0].axis.zoomEnabled;if(ap||ap=="true"){zoomPageRefresh(true);}}}}},tooltip:{enabled:true,xDateFormat:o,valueDecimals:A,itemStyle:{color:N,},borderWidth:1,formatter:function(){if(!Ext.isEmpty(this.point)){var x="";x='<span style="color:'+N+'">'+Highcharts.dateFormat(o,this.point.x,true)+"</span><br/>";
var aq=Highcharts.numberFormat(this.point.y,A,".","");var ap=aq.split(".");if(ap.length>1){if(ap[1]=="0000"){aq=ap[0];}}if(this.point.series.name!=""&&this.point.series.name!=undefined&&R){if(J){if(this.point.name!=""){x+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.name)+" : "+Ext.String.htmlDecode(this.point.series.name)+" : "+aq+"</span></b><br/>";
}else{x+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.series.name)+" :  "+aq+"</span></b><br/>";}}else{if(I){if(this.point.name!=""){x+='<b><span style="color:'+this.point.series.color+'">'+this.point.name+" : "+aq+"</span></b><br/>";}}else{x+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.series.name)+" :  "+aq+"</span></b><br/>";
}}}return x;}}},title:{text:Ext.String.htmlDecode(chartTitle),style:{color:"#c0c0c0",fontFamily:fontFamily,fontSize:"12px",}},yAxis:s,xAxis:{type:n,labels:{x:0,y:aj-10,rotation:F,formatter:function(){return Highcharts.dateFormat(X,this.value);}},title:{text:Ext.String.htmlDecode(xLabel),offset:E,style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",},}},plotOptions:{series:{fillOpacity:0.9,marker:{enabled:ae,states:{hover:{enabled:true,lineWidthPlus:0}}},stacking:null,pointStart:startTime,cursor:v,events:{click:function(x){if(Z&&this.hasOwnProperty("userOptions")){if(this.userOptions.layerModelUrl!="-"){wayToLayerModel(this.userOptions.layerModelUrl);
}}}}},scatter:{tooltip:B,},},legend:{enabled:K,verticalAlign:valign,width:legendWidth,align:LegendPosition,maxHeight:maxLegendHeight,y:y,backgroundColor:ak,style:{color:N,padding:10,fontFamily:fontFamily,fontSize:"12px",},itemStyle:{fontFamily:LegendFont,},labelFormatter:function(){var ap=Ext.String.htmlDecode(this.name);
if(ap!=""&&ap!="undefined"&&ap!="infinity"){ap=this.name;}else{ap="null";}var at=ap;if(valign=="middle"){var ar="";if(at.length>=20){ar=at.substring(0,20);var aq=at.substring(20);aq=aq.trim();while(aq.length>20){ar=ar+"<br>"+aq.substring(0,20);aq=aq.substring(20);}if(aq.length>2){var x=aq.substring(0,2);
if(x.indexOf(" ")>-1){ar=at.substring(0,22);}}ar=ar+"<br>"+aq;}else{ar=at;}}else{ar=ap;}return ar;}},navigation:{buttonOptions:{x:20}},exporting:{enabled:enableExport,chartOptions:{title:{text:Ext.String.htmlDecode(an)}},buttons:{contextButton:{menuItems:menuItemArray,theme:{fill:t,states:{hover:{fill:t}}}}}},};
var D=document.getElementById(h);if(D==null||D==undefined){D=Ext.getCmp(h);}var M=[];var Y=0;g=true;if(U["DataSet"]==""||U["DataSet"]=="null"||U["DataSet"]=="undefined"||U["DataSet"]==undefined){g=false;if(D!=null){if(U.hasOwnProperty("NoMeasAvailableMsg")){var O=U["NoMeasAvailableMsg"];if(O!=null&&O!=""){O='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">'+O+"</div></div></div>";
}else{O='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">No Measures Available</div></div></div>';}D.innerHTML=O;}else{D.innerHTML=myImgHtml;
}}}else{this.highchart=jQuery.extend(true,this.defaults,W);this.highchart.chart.marginTop=5;this.highchart.chart.spacingLeft=7;this.highchart.chart.spacingRight=7;this.highchart.series=U["DataSet"];this.highchart.chart.renderTo=h;}D=null;delete D;},drawChart:function(){if(g){Highcharts.setOptions({lang:{thousandsSep:""}});
Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.column.prototype.drawLegendSymbol;Highcharts.seriesTypes.spline.prototype.drawLegendSymbol=Highcharts.seriesTypes.column.prototype.drawLegendSymbol;
this.highchart=jQuery.extend(true,this.highchart,getMyDashboardCombinationTheme(strSkin));new Highcharts.Chart(this.highchart,function(m){if(!b){jQuery(".showLegend").click(function(){m.legendToggle();});}else{jQuery("#showLegend").click(function(){m.legendToggle();});}});}}};return k;}function getHighCharts(f,a,d,b){getHighCharts(f,a,d,b,null);
}function getHighCharts(j,d,k,f,g){var h=true;var a;var b=false;var l=false;var m={highchart:null,redirectObj:g,defaults:{chart:{plotBorderWidth:0,plotBorderColor:"#C0C0C0",backgroundColor:"#ffffff",plotBackgroundColor:"white",ignoreHiddenSeries:false,spacing:[20,5,0,5],plotShadow:false,shadow:false,zoomType:"x",width:k,height:d,backgroundColor:"transparent",events:{load:function(n){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},lang:{contextButtonTitle:"Print/Download Chart"},navigator:{enabled:false},yAxis:{border:0,minPadding:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:50,labels:{formatter:function(){return(this.value>0?" ":"")+this.value;
},style:{color:"black",fontFamily:"Calibri",fontSize:"12px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,},plotOptions:{series:{states:{hover:{fillOpacity:0.9,enabled:true,lineWidth:2.5,}},connectNulls:false,smoothed:true,lineWidth:2,marker:{enabled:false}},line:{shadow:false,linewidth:10}},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:0,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"black",fontFamily:"Calibri",fontSize:"12px",},symbolWidth:15,symbolRadius:0},labels:{itemStyle:{color:"black",fontFamily:"Calibri",fontSize:"12px",}},tooltip:{shared:true,borderColor:"black",valueDecimals:4,style:{color:"black",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false,chartOptions:{title:{text:""}}},credits:{enabled:false},xAxis:{border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,type:"datetime",ordinal:false,labels:{rotation:270,style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"10px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:false,startOnTick:false,useHTML:false,tickPixelInterval:75,},title:{enabled:true,offset:""}},series:{marker:{enabled:false,states:{hover:{enabled:true,lineWidthPlus:0,}}},dataGrouping:{enabled:false}}},setData:function(aE,at,X,ay,aw){var ai="Roboto";
var R="#c0c0c0";var L="11";var q="500";var aq="";var K="line";var Q=(strSkin=="Light")?"#f7f7f7":"#828282";var r=new Object();r["titleFontFamily"]="Roboto";r["titleFontSize"]="12px";r["titleFontClr"]="#333333";r["titleFontWgt"]="500";r["axisFontFamily"]="Roboto";r["axisFontClr"]="#c0c0c0";r["axisFontSize"]="11px";
r["axisFontWgt"]="normal";r["legFontFamily"]="Roboto";r["legFontClr"]="#2a292a";r["legFontSize"]="11px";r["legFontWgt"]="normal";try{if(Ext.isEmpty(g)||Ext.isEmpty(g.containsDD)){for(var Y in aE["DataSet"]){aE["DataSet"][Y].cursor="";}}}catch(u){for(var Y in aE["DataSet"]){aE["DataSet"][Y].cursor="";
}}var J=aE["chartFileName"];var I=aE["legVerAlign"];var F=aE["clusterView"];var G=aE["legVerAlignforUserD"];var av=aE["legVerAlignWBottom"];var aH=new Date();var Z=Ext.Date.format(aH,"m.d.Y.H.i.s");aq=tooltipDateFormate(at);var aA="";ymax=aE["max"];ymin=0;var E=(Ext.isEmpty(aE["useHtml"]))?false:aE["useHtml"];
fontFamily=aE["fontName"];fontSize=aE["fontsize"];startTime=aE["xmin"];LegendPosition=aE["legendPosition"];xLabel=aE["axislabel"];var ax=aE["yAxisLabel"];LegendFont=aE["LegendFont"];xAxisDisplay=aE["xAxisDisplay"];var aJ=aE["fmts"];fontFamily="Roboto";LegendFont="Roboto";xLabel=(xLabel==null||xLabel==""||xLabel==undefined)?"":xLabel;
ax=(ax==null||ax=="")?"":ax;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;fontSize=(fontSize==null||fontSize=="")?"11px":fontFamily+"px";startTime=(startTime==null||startTime=="")?null:startTime;LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;
LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;aJ=(aJ==null||aJ=="")?"HH:mm":aJ;aA=getTimeLineOutputFormat(aJ);legendWidth=(LegendPosition=="right")?150:300;maxLegendHeight=(LegendPosition=="right")?null:50;valign=(LegendPosition=="right")?"middle":"top";legendLayout=(LegendPosition=="right")?"vertical":"horizontal";
isThresholdLine=(!Ext.isEmpty(aE["isThresholdComparison"]))?aE["isThresholdComparison"]:false;chartTitle=aE["title"];var o=aE["isAxisTimeReq"];if(o!=undefined){ay=o;}enableExport=true;lessWidth=55;E=(aE["DataSet"].length>10)?true:false;var ag=aE["isServiceBusDash"];var n=aE["fromVirtual"];if(ymax!=null&&ymax!=undefined&&ymax!=""){try{if(parseFloat(ymax)>75&&parseFloat(ymax)<=100){ymax="100";
}else{ymax=(!isThresholdLine&&ymax==0)?1:null;}}catch(V){ymax=(!isThresholdLine&&ymax==0)?1:null;}}else{ymax=(!isThresholdLine&&ymax==0)?1:null;}var af="",U="",am="",x="",W="",aI="",ar="",aF="";if(!Ext.isEmpty(aE["styles"])){var A=aE["styles"];if(!Ext.isEmpty(A["axisLabelStyle"])){af=A["axisLabelStyle"].FAMILY;
U=A["axisLabelStyle"].COLOR;am=A["axisLabelStyle"].SIZE;x=A["axisLabelStyle"].WEIGHT;}if(!Ext.isEmpty(A["timeLabelStyle"])){r["axisFontFamily"]=A["timeLabelStyle"].FAMILY;r["axisFontClr"]=A["timeLabelStyle"].COLOR;r["axisFontSize"]=A["timeLabelStyle"].SIZE;r["axisFontWgt"]=A["timeLabelStyle"].WEIGHT;
}if(!Ext.isEmpty(A["titleSty"])){r["titleFontClr"]=A["titleSty"].COLOR;r["titleFontFamily"]=A["titleSty"].FAMILY;r["titleFontSize"]=A["titleSty"].SIZE;r["titleFontWgt"]=A["titleSty"].WEIGHT;}if(!Ext.isEmpty(A["legendSty"])){r["legFontFamily"]=A["legendSty"].FAMILY;r["legFontClr"]=A["legendSty"].COLOR;
r["legFontSize"]=A["legendSty"].SIZE;r["legFontWgt"]=A["legendSty"].WEIGHT;}plotPanelColor=(!Ext.isEmpty(aE["styles"]["panelLineStyle"]))?aE["styles"]["panelLineStyle"].COLOR:"#C0C0C0";}else{plotPanelColor="#C0C0C0";}xlineWidth=0;xGridLineWidth=0;ylineWidth=1;yGridLineWidth=0;if(isThresholdLine){ylineWidth=1;
yGridLineWidth=0;xlineWidth=1;xGridLineWidth=1;}else{ylineWidth=1;yGridLineWidth=0;xlineWidth=1;xGridLineWidth=1;}af=(Ext.isEmpty(af))?ai:af;U=(Ext.isEmpty(U))?R:U;am=(Ext.isEmpty(am))?L:am;x=(Ext.isEmpty(x))?q:x;var aB="rgba(255, 255, 255, 0.85)";var S=aE["DataSet"].length;var aC=aE["DataSet"].length;
aB=(S==1)?aE["DataSet"][0]["color"]:aB;var z=(S<=2)?200:0;var ac=aE["exportTitle"];var aG=false;aG=aE["enableTitle"];chartTitle=(aG)?aE["title"]:"";var ae="";if(!Ext.isEmpty(aE["fromPage"])){ae=aE["fromPage"];}var N=(ae=="seum")?true:false;if(aw=="bottom"){valign="middle";y=5;legendWidth=100;enableExport=false;
legendLayout="right";LegendPosition="center";maxLegendHeight=20;var ap=chartTitle.split(":");if(ap!=null&&ap!=undefined&&ap.length>0){chartTitle=chartTitle.substring(chartTitle.lastIndexOf(":")+1);}}if(Ext.isEmpty(ac)){ac=chartTitle;}J=(Ext.isEmpty(J))?ac:J;J=J+" "+Z;if(S<=3){valign="top";y=(Ext.isEmpty(aE["smallGraph"]))?-5:0;
if(aw=="bottom"){legendWidth=0;z=(S<=2)?100:0;}else{legendWidth=0;z=200;}LegendPosition="center";legendLayout="horizontal";maxLegendHeight=40;y=(Ext.isEmpty(aE["smallGraph"])&&N)?2:y;if(ag!=null&&ag=="true"){valign="top";y=-35;}if(I!=undefined&&I!=null&&(I=="true"||I)){valign="top";if(F!=undefined&&F!=null&&(F=="true"||F)){y=-35;
}else{y=-10;}}if(G!=undefined&&G!=null&&(G=="true"||G)){valign="top";y=-40;}}else{y=5;valign="middle";legendWidth=180;LegendPosition="right";legendLayout="vertical";maxLegendHeight=null;}if(ay!=undefined&&!ay){xLabel="";if((ag!=undefined&&ag)||(n!=undefined&&n)){ax="";}}var t="datetime";var ad=null;var H=3;
var ak=false;var C=null;var aL=true;var ab=aE["legendEnabled"];var ah=aE["isSysDashboard"];var v=aE["isNetflowDashboard"];var aD=aE["isNetscalerTopology"];aL=ab;var B=0;var T="";var s=true;var an=90;var al=Ext.ComponentQuery.query("#showLegend").length;var ao=Ext.ComponentQuery.query("#showLegend")[(al-1)];
if(!Ext.isEmpty(Ext.getCmp("showLegend"))){s=Ext.getCmp("showLegend").getValue();b=true;}if(ao!="undefined"&&ao!=undefined){s=ao.getValue();}s=(N)?true:s;aL=(N)?true:aL;l=s;if(ah!=null&&ah){s=true;maxLegendHeight="200px";legendWidth=100;}if((ag!=null&&ag=="true")&&(!ab)){s=false;b=true;}if(ag!=null&&ag=="true"){an=25;
}if(av!=undefined&&av!=null&&(av=="true"||av)){an=50;y=(Ext.isEmpty(aE["smallGraph"]))?null:-35;}if(aJ=="%H:%M"){B=10;T=60;}else{B=6;T=75;}rotVal=270;if(xAxisDisplay=="horizontal"){B=13;T=5;rotVal=2;}var O=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){O=0;
ymin=null;ymax=null;}if(ymin!=null&&ymax!=null&&(ymin==ymax)){ymax=ymin+1;}var D=(!Ext.isEmpty(aE["showLastLabel"]))?aE["showLastLabel"]:true;var az=(Ext.isEmpty(aE["isLookBack"]))?false:aE["isLookBack"];legendWidth=(az)?200:legendWidth;Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});
var M=0;if(v){s=false;y=0;yGridLineWidth=xGridLineWidth;ylineWidth=0;xlineWidth=0;xGridLineWidth=0;M=1;xLabel="";}var aj=null;if(aD){s=false;enableExport=false;aj=10;B=10;}var aa=false;if(F!=undefined&&F!=null&&(F=="true"||F)){aa=true;}var w=((strSkin=="light"||strSkin=="Light"))?"#606060":"#c0c0c0";
var au={chart:{plotBorderColor:plotPanelColor,marginBottom:an,marginRight:aj,events:{selection:function(aN){var aO,aM;if(aN.xAxis){if(Highcharts.numberFormat(aN.xAxis[0].min,2)>0){isZoomMeasureGraph=true;}}else{isZoomMeasureGraph=false;}},click:function(aN){try{if(this.series.userOptions.cursor=="pointer"&&g.containsDD!=undefined&&g.containsDD!=null&&(g.containsDD==true||g.containsDD=="true")){redirectToDDTabOnThisTimeline(g,this);
}}catch(aM){}if(X=="close^eg^hasTitle"){return false;}if(!Ext.isEmpty(aN.srcElement)&&(aN.srcElement.firstChild==null||aN.srcElement.firstChild==undefined)){if(!aa&&X!="null"&&X!="undefined"&&X!=""&&X!=undefined&&X!="close"){loadMaximizedView(X);}else{if(X=="close"){closeMaximizedView();}}}},load:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},tooltip:{xDateFormat:aq,valueDecimals:4,backgroundColor:aB,borderWidth:1,shared:true,formatter:function(){var aM=this.points||splat(this),aN=aM[0].series,aO;aM.sort(function(aQ,aP){return((aQ.y>aP.y)?-1:((aQ.y<aP.y)?1:0));});var aO="";
if(S==1||(strSkin=="Dark"||strSkin=="dark")){aO='<span style="color:white">'+Highcharts.dateFormat(aq,this.x,true)+"</span><br/>";}else{aO="<span>"+Highcharts.dateFormat(aq,this.x,true)+"</span><br/>";}jQuery.each(this.points,function(aQ,aP){var aS=Highcharts.numberFormat(aP.y,4,".","");var aR=aS.split(".");
if(aR.length>1){if(aR[1]=="0000"){aS=aR[0];}}if(aP.series.name!=""&&aP.series.name!=undefined&&aL){if(S==1){aO+='<b><span style="color:white">'+Ext.String.htmlDecode(aP.series.name)+" :  "+aS+"</span></b><br/>";}else{aO+='<b><span style="color:'+this.series.color+'">'+Ext.String.htmlDecode(aP.series.name)+"  :  "+aS+"</span></b><br/>";
}}else{aO+='<br/> <b><span style="color:white">'+aS+"</span></b><br/>";}});return aO;}},title:{text:Ext.String.htmlDecode(chartTitle),style:{color:r["titleFontClr"],fontFamily:r["titleFontFamily"],fontSize:r["titleFontSize"]}},yAxis:{max:ymax,min:ymin,minPadding:O,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{align:"right",x:-10,y:3,formatter:function(){var aN=Highcharts.numberFormat(this.value,4,".","");
var aM=aN.split(".");if(aM!=null&&aM.length>1){if(parseInt(aM[1])>=parseInt("0001")){aN=Highcharts.numberFormat(this.value,5,".","");aN=(parseFloat(aN));}else{aN=(parseFloat(aN));}}else{aN=(parseFloat(aN));}return aN;},style:{color:r["axisFontClr"],fontFamily:r["axisFontFamily"],fontSize:r["axisFontSize"]}},title:{text:Ext.String.htmlDecode(ax),style:{color:U,fontFamily:af,fontSize:am+"px"}}},xAxis:{type:t,lineWidth:xlineWidth,gridLineWidth:xGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,tickWidth:M,tickLength:0,endOnTick:true,showLastLabel:D,labels:{y:B,rotation:rotVal,style:{color:r["axisFontClr"],fontFamily:r["axisFontFamily"],fontSize:r["axisFontSize"]},formatter:function(){return Highcharts.dateFormat(aJ,this.value);
}},title:{text:Ext.String.htmlDecode(xLabel),offset:T,style:{color:U,fontFamily:af,fontSize:am+"px"}}},plotOptions:{series:{threshold:null,marker:{enabled:ak,states:{hover:{enabled:true,lineWidthPlus:0}}},stacking:ad,pointStart:startTime,point:{events:{click:function(aN){try{if(this.series.userOptions.cursor=="pointer"&&g.containsDD!=undefined&&g.containsDD!=null&&(g.containsDD==true||g.containsDD=="true")){redirectToDDTabOnThisTimeline(g,this);
}}catch(aM){}if(X=="close^eg^hasTitle"){return false;}if(!Ext.isEmpty(aN.srcElement)&&(aN.srcElement.firstChild==null||aN.srcElement.firstChild==undefined)){if(!aa&&X!="null"&&X!="undefined"&&X!=""&&X!=undefined&&X!="close"){loadMaximizedView(X);}else{if(X=="close"){closeMaximizedView();}}}}}}},scatter:{tooltip:C,}},legend:{enabled:s,verticalAlign:valign,layout:legendLayout,width:legendWidth,align:LegendPosition,maxHeight:maxLegendHeight,y:y,useHTML:true,itemStyle:{color:w,fontWeight:r["legFontWgt"],fontFamily:r["legFontFamily"],fontSize:r["legFontSize"]},labelFormatter:function(){var aN=Ext.String.htmlDecode(this.name);
if(aN!=""&&aN!="undefined"&&aN!="infinity"){aN=this.name;}else{aN="null";}var aQ=aN;if(valign=="middle"&&!az){var aP="";if(aQ.length>=20){aP=aQ.substring(0,20);var aO=aQ.substring(20);aO=aO.trim();while(aO.length>20){aP=aP+"<br>"+aO.substring(0,20);aO=aO.substring(20);}if(aO.length>2){var aM=aO.substring(0,2);
if(aM.indexOf(" ")>-1){aP=aQ.substring(0,22);}}aP=aP+"<br>"+aO;}else{aP=aQ;}}else{aP=aN;}aP="<span style='color:"+w+";font-weight:"+r["legFontWgt"]+";font-family:"+r["legFontFamily"]+";font-size:"+r["legFontSize"]+";display:block;'>"+aP+"</span>";return aP;}},navigation:{buttonOptions:{x:3}},exporting:{enabled:enableExport,filename:J,chartOptions:{title:{text:Ext.String.htmlDecode(ac)}},buttons:{contextButton:{menuItems:menuItemArray,theme:{fill:Q,states:{hover:{fill:Q}}}}}}};
var P=document.getElementById(j);if(P==null||P==undefined){P=Ext.getCmp(j);}this.highchart=jQuery.extend(true,this.defaults,au);var aK=[];var aC=0;if(aE["DataSet"]==""||aE["DataSet"]=="null"||aE["DataSet"]=="undefined"||aE["DataSet"]==undefined){h=false;if(P!=null){P.innerHTML='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">No measures available!</div></div></div>';
}}else{this.highchart.series=aE["DataSet"];this.highchart.chart.renderTo=j;}},drawChart:function(){if(h){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));new Highcharts.Chart(this.highchart,function(n){if(!b){jQuery(".showLegend").click(function(){if(!Ext.isEmpty(Ext.getCmp("er_zoom_checkbox"))&&Ext.getCmp("er_zoom_checkbox")!=null&&Ext.getCmp("er_zoom_checkbox")!=undefined){try{var o=Ext.getCmp("er_zoom_checkbox").getChecked();
if(o!=null&&o.length>0){n.legendShow();}else{n.legendHide();}}catch(q){var o=Ext.getCmp("er_chart_checkbox").checked;if(o!=null&&o){n.legendShow();}else{if(o!=null&&!o){n.legendHide();}}}}else{if(!Ext.isEmpty(Ext.getCmp("er_chart_checkbox"))&&Ext.getCmp("er_chart_checkbox")!=null&&Ext.getCmp("er_chart_checkbox")!=undefined){try{var o=Ext.getCmp("er_chart_checkbox").getChecked();
if(o!=null&&o.length>0){n.legendShow();}else{n.legendHide();}}catch(q){var o=Ext.getCmp("er_chart_checkbox").checked;if(o!=null&&o){n.legendShow();}else{if(o!=null&&!o){n.legendHide();}}}}else{n.legendToggle();}}});}else{jQuery("#showLegend").click(function(){if(!Ext.isEmpty(Ext.getCmp("er_zoom_checkbox"))&&Ext.getCmp("er_zoom_checkbox")!=null&&Ext.getCmp("er_zoom_checkbox")!=undefined){try{var o=Ext.getCmp("er_zoom_checkbox").getChecked();
if(o!=null&&o.length>0){n.legendShow();}else{n.legendHide();}}catch(q){var o=Ext.getCmp("er_chart_checkbox").checked;if(o!=null&&o){n.legendShow();}else{if(o!=null&&!o){n.legendHide();}}}}else{if(!Ext.isEmpty(Ext.getCmp("er_chart_checkbox"))&&Ext.getCmp("er_chart_checkbox")!=null&&Ext.getCmp("er_chart_checkbox")!=undefined){try{var o=Ext.getCmp("er_chart_checkbox").getChecked();
if(o!=null&&o.length>0){n.legendShow();}else{n.legendHide();}}catch(q){var o=Ext.getCmp("er_chart_checkbox").checked;if(o!=null&&o){n.legendShow();}else{if(o!=null&&!o){n.legendHide();}}}}else{n.legendToggle();}}});}});}}};return m;}function getHighChartsForLiveGraph(k,d,g,f){var b=true;var j;var h=false;
var a={highchart:null,defaults:{chart:{plotBorderWidth:0,plotBorderColor:"#e5e5e5",backgroundColor:"#ffffff",plotBackgroundColor:"white",ignoreHiddenSeries:false,spacing:[10,5,5,5],plotShadow:false,shadow:false,zoomType:"x",width:g,height:d,backgroundColor:"transparent"},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},lang:{contextButtonTitle:"Print/Download Chart"},navigator:{enabled:false},yAxis:{border:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:50,labels:{align:"right",x:-3,y:6,formatter:function(){return(this.value>0?" ":"")+this.value;
},style:{color:"black",fontFamily:"Calibri",fontSize:"12px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,},plotOptions:{series:{states:{hover:{enabled:true,lineWidth:2,}},connectNulls:true,smoothed:true,lineWidth:2,marker:{enabled:false}},line:{shadow:false,linewidth:10}},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"black",fontFamily:"Calibri",fontSize:"12px",},symbolWidth:15,symbolRadius:0},labels:{itemStyle:{color:"black",fontFamily:"Calibri",fontSize:"12px",}},tooltip:{shared:true,borderColor:"black",valueDecimals:4,style:{color:"black",padding:10,fontFamily:"Roboto",fontweight:"500",fontSize:"11px",},},exporting:{enabled:false,chartOptions:{title:{text:""}}},credits:{enabled:false},xAxis:{border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,type:"datetime",ordinal:false,labels:{rotation:270,style:{color:"#636363",fontFamily:"Roboto",fontSize:"10px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:true,startOnTick:false,useHTML:false,tickPixelInterval:50,},title:{enabled:true,offset:""}},series:{marker:{enabled:false,states:{hover:{enabled:true,lineWidth:3,}}},dataGrouping:{enabled:false}}},setData:function(S,ah,R,ao,Q,ac){var an=ac;
var ag="Roboto";var Z="#636363";var H="11";var N="500";var m="";var L="line";var r=(strSkin=="Light")?"#f7f7f7":"#828282";m=tooltipDateFormate(ah);var D="";ymax=S["max"];ymin=0;fontFamily=S["fontName"];fontSize=S["fontsize"];startTime=S["xmin"];LegendPosition=S["legendPosition"];xLabel=S["axislabel"];
LegendFont=S["LegendFont"];xAxisDisplay=S["xAxisDisplay"];var V=S["fmts"];fontFamily="Roboto";LegendFont="Roboto";xLabel=(xLabel==null||xLabel=="")?"":xLabel;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;fontSize=(fontSize==null||fontSize=="")?"11px":fontFamily+"px";startTime=(startTime==null||startTime=="")?null:startTime;
LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;V=(V==null||V=="")?"HH:mm":V;D=getTimeLineOutputFormat(V);legendWidth=(LegendPosition=="right")?150:300;maxLegendHeight=(LegendPosition=="right")?null:50;
valign=(LegendPosition=="right")?"middle":"top";legendLayout=(LegendPosition=="right")?"vertical":"horizontal";chartTitle=S["title"];var t=S["isAxisTimeReq"];if(t!=undefined){ao=t;}var v=S["yAxisTitle"];enableExport=true;lessWidth=55;var W="",ai="",J="",z="",ap="",am="",n="",Y="";var s=new Object();s["titleFontFamily"]="Roboto";
s["titleFontSize"]="12px";s["titleFontClr"]="#333333";s["titleFontWgt"]="500";s["axisFontFamily"]="Roboto";s["axisFontClr"]="#636363";s["axisFontSize"]="10px";s["axisFontWgt"]="normal";if(!Ext.isEmpty(S["styles"])){var E=S["styles"];if(!Ext.isEmpty(E["axisLabelStyle"])){W=E["axisLabelStyle"].FAMILY;ai=E["axisLabelStyle"].COLOR;
J=E["axisLabelStyle"].SIZE;z=E["axisLabelStyle"].WEIGHT;}if(!Ext.isEmpty(E["timeLabelStyle"])){s["axisFontFamily"]=E["timeLabelStyle"].FAMILY;s["axisFontClr"]=E["timeLabelStyle"].COLOR;s["axisFontSize"]=E["timeLabelStyle"].SIZE;s["axisFontWgt"]=E["timeLabelStyle"].WEIGHT;}if(!Ext.isEmpty(E["titleSty"])){s["titleFontClr"]=E["titleSty"].COLOR;
s["titleFontFamily"]=E["titleSty"].FAMILY;s["titleFontSize"]=E["titleSty"].SIZE;s["titleFontWgt"]=E["titleSty"].WEIGHT;}}plotPanelColor=(!Ext.isEmpty(S["panelLineStyle"]))?S["panelLineStyle"].COLOR:"#e5e5e5";isThresholdLine=(!Ext.isEmpty(S["isThresholdComparison"]))?S["isThresholdComparison"]:false;xlineWidth=0;
xGridLineWidth=0;ylineWidth=0;yGridLineWidth=0;if(isThresholdLine){ylineWidth=0;yGridLineWidth=0;xlineWidth=1;xGridLineWidth=1;}else{ylineWidth=0;yGridLineWidth=0;xlineWidth=1;xGridLineWidth=1;}W=(Ext.isEmpty(W))?ag:W;ai=(Ext.isEmpty(ai))?Z:ai;J=(Ext.isEmpty(J))?H:J;z=(Ext.isEmpty(z))?N:z;ap=(Ext.isEmpty(ap))?ag:ap;
am=(Ext.isEmpty(am))?Z:am;n=(Ext.isEmpty(n))?"10":n;Y=(Ext.isEmpty(Y))?"regular":Y;var ab=false;ab=S["enableTitle"];chartTitle=(ab)?S["title"]:"";var ak="rgba(255, 255, 255, 0.85)";var u=S["DataSet"].length;var X=S["DataSet"].length;if(u==1){var K=(Ext.isEmpty(S["colors"][0]))?"#3e48bb":S["colors"][0];
ak=(Ext.isEmpty(S["DataSet"][0]["color"]))?K:S["DataSet"][0]["color"];}var M=(u<=2)?200:0;var al=S["chartTitle"];var ae="";if(!Ext.isEmpty(S["fromPage"])){ae=S["fromPage"];}var P=(ae=="seum")?true:false;if(Q=="bottom"){valign="middle";y=5;legendWidth=100;enableExport=false;legendLayout="right";LegendPosition="center";
maxLegendHeight=20;var A=chartTitle.split(":");if(A!=null&&A!=undefined&&A.length>0){chartTitle=chartTitle.substring(chartTitle.lastIndexOf(":")+1);}}if(Ext.isEmpty(al)){al=chartTitle;}if(u<=3){valign="top";y=-10;if(Q=="bottom"){legendWidth=200;M=(u<=2)?100:0;}else{legendWidth=0;M=200;}LegendPosition="center";
legendLayout="horizontal";maxLegendHeight=40;}else{y=5;valign="middle";legendWidth=150;LegendPosition="right";legendLayout="vertical";maxLegendHeight=null;}if(ao!=undefined&&!ao){xLabel="";}var l="datetime";var af=null;var q=2;var ad=false;var x=null;var O=true;var F=S["legendEnabled"];O=F;var aj="";
var C="";var G=false;var T=Ext.ComponentQuery.query("#showLegend")[0];var o=S["legendEmpty"];var w=true;if(o!=undefined&&o!=null&&(o=="true"||o==true)){w=false;}if(w){if(!Ext.isEmpty(Ext.getCmp("showLegend"))){G=Ext.getCmp("showLegend").getValue();h=true;}if(T!="undefined"&&T!=undefined){G=T.getValue();
}G=(P)?true:G;}if(V=="%H:%M"){aj=7;C=60;}else{aj=5;C=100;}rotVal=270;if(xAxisDisplay=="horizontal"){aj=13;C=5;rotVal=2;}var aa=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){aa=0;ymin=null;ymax=null;}if(ymin!=null&&ymax!=null&&(ymin==ymax)){ymax=ymin+1;
}Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});var U={chart:{plotBorderColor:plotPanelColor,point:{events:{click:function(aq){if(R!="null"&&R!="undefined"&&R!=""&&R!=undefined&&R!="close"){loadMaximizedView(R);}else{if(R=="close"){closeMaximizedView();}}}}},events:{load:function(av){var au=this.series[0];
if(R!="close"){var ar=R;var at=ar.split("?");var aq=at[0]+"?refRate="+ac+"&"+at[1];ar=aq;setInterval(function(){var aw=[];Ext.Ajax.request({url:ar,method:"GET",disableCaching:false,success:function(ay){var ax=Ext.decode(ay.responseText);if(!Ext.isEmpty(ax.DataSet[0])){var aA=ax.DataSet[0].data;for(var az=0;
az<aA.length;az++){au.addPoint(aA[0],true,false);}}}});},an);}jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","7");jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},tooltip:{xDateFormat:m,valueDecimals:4,backgroundColor:ak,formatter:function(){var aq="";if(u==1||(strSkin=="Dark"||strSkin=="dark")){aq='<span style="color:white">'+Highcharts.dateFormat(m,this.x,true)+"</span><br>";
}else{aq="<span>"+Highcharts.dateFormat(m,this.x,true)+"</span><br>";}jQuery.each(this.points,function(at,ar){var av=Highcharts.numberFormat(ar.y,4,".","");var au=av.split(".");if(au.length>1){if(au[1]=="0000"){av=au[0];}}if(ar.series.name!=""&&ar.series.name!=undefined&&O){if(u==1){aq+='<br/><b><span style="color:white">'+Ext.String.htmlDecode(ar.series.name)+" :  "+av+"</span></b>";
}else{aq+='<br/><b><span style="color:'+this.series.color+'">'+Ext.String.htmlDecode(ar.series.name)+"  :  "+av+"</span></b>";}}else{aq+="<br/> <b>"+av+"</b>";}});return aq;}},title:{text:Ext.String.htmlDecode(chartTitle),style:{color:s["titleFontClr"],fontFamily:s["titleFontFamily"],fontSize:s["titleFontSize"]}},yAxis:{max:ymax,min:ymin,minPadding:aa,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,labels:{align:"right",x:-10,y:3,style:{color:s["axisFontClr"],fontFamily:s["axisFontFamily"],fontSize:s["axisFontSize"]}},title:{text:Ext.String.htmlDecode(v),color:ai,fontFamily:W,fontSize:J+"px"}},xAxis:{type:l,lineWidth:xlineWidth,gridLineWidth:xGridLineWidth,startOnTick:true,endOnTick:true,tickLength:0,labels:{y:aj,rotation:rotVal,style:{color:s["axisFontClr"],fontFamily:s["axisFontFamily"],fontSize:s["axisFontSize"]},formatter:function(){return Highcharts.dateFormat(V,this.value);
}},title:{text:Ext.String.htmlDecode(xLabel),offset:C,y:-13,style:{color:ai,fontFamily:W,fontSize:J+"px"}}},plotOptions:{series:{connectNulls:true,lineWidth:2,marker:{enabled:ad,states:{hover:{enabled:true,lineWidth:4}}},stacking:af,pointStart:startTime,point:{events:{click:function(aq){if(R!="null"&&R!="undefined"&&R!=""&&R!=undefined&&R!="close"){loadMaximizedView(R);
}else{if(R=="close"){closeMaximizedView();}}}}}},scatter:{tooltip:x,}},legend:{enabled:G,verticalAlign:valign,width:legendWidth,align:LegendPosition,maxHeight:maxLegendHeight,y:y,itemStyle:{fontFamily:LegendFont,},labelFormatter:function(){var ar=Ext.String.htmlDecode(this.name);if(ar!=""&&ar!="undefined"&&ar!="infinity"){ar=this.name;
}else{ar="null";}var av=ar;if(valign=="middle"){var au="";if(av.length>=20){au=av.substring(0,20);var at=av.substring(20);at=at.trim();while(at.length>20){au=au+"<br>"+at.substring(0,20);at=at.substring(20);}if(at.length>2){var aq=at.substring(0,2);if(aq.indexOf(" ")>-1){au=av.substring(0,22);}}au=au+"<br>"+at;
}else{au=av;}}else{au=ar;}return au;}},navigation:{buttonOptions:{x:20}},exporting:{enabled:enableExport,chartOptions:{title:{text:Ext.String.htmlDecode(al)}},buttons:{contextButton:{menuItems:menuItemArray,theme:{fill:r,states:{hover:{fill:r}}}}}}};var B=document.getElementById(k);if(B==null||B==undefined){B=Ext.getCmp(k);
}this.highchart=jQuery.extend(true,this.defaults,U);var I=[];var X=0;if(S["DataSet"]==""||S["DataSet"]=="null"||S["DataSet"]=="undefined"||S["DataSet"]==undefined){b=false;if(B!=null){B.innerHTML='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" width="70%" src="/final/images/clear.png" border="0" /></div><div >No measures available</div></div></center>';
}}else{this.highchart.series=S["DataSet"];this.highchart.chart.renderTo=k;}},drawChart:function(){if(b){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));new Highcharts.Chart(this.highchart,function(l){if(!h){jQuery(".showLegend").click(function(){if(!Ext.isEmpty(Ext.getCmp("er_chart_checkbox"))&&Ext.getCmp("er_chart_checkbox")!=null&&Ext.getCmp("er_chart_checkbox")!=undefined){var m=Ext.getCmp("er_chart_checkbox").getChecked();
if(m!=null&&m.length>0){l.legendShow();}else{l.legendHide();}}else{l.legendToggle();}});}else{jQuery("#showLegend").click(function(){if(!Ext.isEmpty(Ext.getCmp("er_chart_checkbox"))&&Ext.getCmp("er_chart_checkbox")!=null&&Ext.getCmp("er_chart_checkbox")!=undefined){var m=Ext.getCmp("er_chart_checkbox").getChecked();
if(m!=null&&m.length>0){l.legendShow();}else{l.legendHide();}}else{l.legendToggle();}});}});}}};return a;}function getFormat(f,b){if(b=="middle"){var d="";if(f.length>=20){d=f.substring(0,20);var a=f.substring(20);a=a.trim();while(a.length>20){d=d+"<br>"+a.substring(0,20);a=a.substring(20);}d=d+"<br>"+a;
}else{d=f;}}else{d=f;}return d;}function tooltipDateFormate(h){var d=h;var l="";if(d!="null"&&d!="undefined"&&d!=""&&d!=undefined){d=d.toLowerCase();var f=" ";var a=new Array();if(d.indexOf("-")>-1){f="-";}else{if(d.indexOf("/")>-1){f="/";}else{if(d.indexOf(".")>-1){f=".";}}}var g=d.split(f);if(g!=null&&g.length>0){for(var k=0;
k<g.length;k++){var j=g[k];var b=j;if(j!=null&&j.indexOf("d")>-1){if(j!=null&&j=="d"){b="%e";}else{if(j!=null&&j=="dd"){b="%d";}else{if(j!=null&&j=="dd,"){b="%d,";}}}}else{if(j!=null&&j.indexOf("m")>-1){if(j!=null&&j=="m"){b="%m";}else{if(j!=null&&j=="mm"){b="%m";}else{if(j!=null&&j=="mmm"){b="%b";}}}}else{if(j!=null&&j.indexOf("y")>-1){if(j!=null&&j=="yy"){b="%y";
}else{if(j!=null&&j=="yyyy"){b="%Y";}}}}}a[k]=b;}}if(a!=null&&a.length>0){for(var k=0;k<a.length;k++){l+=a[k]+f;}if(l!=null&&endsWith(l,f)&&!(d!=null&&endsWith(d,f))){l=l.substring(0,l.lastIndexOf(f));}l=l+" %H:%M:%S";}}return l;}function getTimeLineOutputFormat(f){var k="";if(f!="null"&&f!=""){f=f.toLowerCase();
var j=" ";var a=new Array();if(f.indexOf("-")>-1){j="-";}else{if(f.indexOf("/")>-1){j="/";}else{if(f.indexOf(".")>-1){j=".";}}}var g=f.split(j);if(g!=null&&g.length>0){for(var d=0;d<g.length;d++){var h=g[d];var b=h;if(h!=null&&h.indexOf("d")>-1){if(h!=null&&h=="d"){b="%e";}else{if(h!=null&&h=="dd"){b="%d";
}else{if(h!=null&&h=="dd,"){b="%d,";}}}}else{if(h!=null&&h.indexOf("m")>-1){if(h!=null&&h=="m"){b="%m";}else{if(h!=null&&h=="mm"){b="%m";}else{if(h!=null&&h=="mmm"){b="%b";}}}}else{if(h!=null&&h.indexOf("y")>-1){if(h!=null&&h=="yy"){b="%y";}else{if(h!=null&&h=="yyyy"){b="%Y";}}}}}if(h=="hh:mm"||h=="hh:mm:ss"){b="  ";
}a[d]=b;}}if(a!=null&&a.length>1){for(var d=0;d<a.length;d++){k+=a[d]+j;}if(k!=null&&endsWith(k,j)){k=k.substring(0,k.lastIndexOf(j));}k=k+"%H:%M";}else{k="%H:%M";}}return k;}function endsWith(b,a){return b.indexOf(a,b.length-a.length)!==-1;}function getChartValue(m,g,h,k,u,x,z){var l=new Array();var j=new Array("Any","1 hour","2 hours","3 hours","4 hours","5 hours","6 hours","7 hours","8 hours","9 hours","10 hours","11 hours","12 hours","13 hours","14 hours","15 hours","16 hours","17 hours","18 hours","19 hours","20 hours","21 hours","22 hours","23 hours","24 hours","2 days","3 days","4 days","5 days","6 days","1 week","2 weeks","3 weeks","4 weeks","1 month","2 months");
var o=g;if(g!=null&&g!=""){if(g.indexOf("easy")==-1){var b=h;if(b!=null&&b=="Any"){var d=m;d=d.substring(d.indexOf(" "));d=d.trim();if(d!=null&&d==""){d=((d.indexOf("ho")>-1)?"hours":((d.indexOf("day")>-1)?"days":(d.indexOf("we")>-1)?"weeks":"months"));}o=getOption(m,k,u,x,z);}else{if(b!=null&&b!="Any"){var s=m.substring(0,m.indexOf(" "));
var r=m.substring(m.indexOf(" ")+1);var n=parseInt(s);if(r.indexOf("ho")>-1){for(var w=0;w<j.length;w++){var q=j[w];if(q=="Any"){if(Ext.Array.contains(l,b)){l[w]=q;}continue;}var v=q.substring(0,q.indexOf(" "));var f=q.substring(q.indexOf(" ")+1);var t=parseInt(v);if(f.indexOf("ho")>-1&&t==n){if(Ext.Array.contains(l,b)){l[w]=q;
}break;}else{if(f.indexOf("ho")>-1&&t<=n){if(Ext.Array.contains(l,b)){l[w]=q;}}}}}else{if(r.indexOf("da")>-1){for(var w=0;w<j.length;w++){var q=j[w];if(q=="Any"){if(Ext.Array.contains(l,b)){l[w]=q;}continue;}var v=q.substring(0,q.indexOf(" "));var f=q.substring(q.indexOf(" ")+1);var t=parseInt(v);if(f.indexOf("ho")>-1){if(Ext.Array.contains(l,b)){l[w]=q;
}}else{if(f.indexOf("da")>-1&&t==n){if(Ext.Array.contains(l,b)){l[w]=q;}break;}else{if(f.indexOf("da")>-1&&t<=n){if(Ext.Array.contains(l,b)){l[w]=q;}}}}}}else{if(r.indexOf("we")>-1){for(var w=0;w<j.length;w++){var q=j[w];if(q=="Any"){if(Ext.Array.contains(l,b)){l[w]=q;}continue;}var v=q.substring(0,q.indexOf(" "));
var f=q.substring(q.indexOf(" ")+1);var t=parseInt(v);if(f.indexOf("ho")>-1||f.indexOf("da")>-1){if(!Ext.Array.contains(l,b)){l[w]=q;}}else{if(f.indexOf("we")>-1&&t==n){if(!Ext.Array.contains(l,b)){l[w]=q;}break;}else{if(f.indexOf("we")>-1&&t<=n){if(!Ext.Array.contains(l,b)){l[w]=q;}}}}}}else{if(r.indexOf("mo")>-1){for(var w=0;
w<j.length;w++){var q=j[w];if(q=="Any"){if(Ext.Array.contains(l,b)){l[w]=q;}continue;}var v=q.substring(0,q.indexOf(" "));var f=q.substring(q.indexOf(" ")+1);var t=parseInt(v);if(f.indexOf("ho")>-1||f.indexOf("da")>-1||f.indexOf("we")>-1){if(Ext.Array.contains(l,b)){l[w]=q;}}else{if(f.indexOf("mo")>-1&&t==n){if(Ext.Array.contains(l,b)){l[w]=q;
}break;}else{if(f.indexOf("mo")>-1&&t<=n){if(Ext.Array.contains(l,b)){l[w]=q;}}}}}}}}}if(l!=null&&l!=undefined){}}else{if(b==null||b==""){o=getOption(m,k,u,x,z);}}}l=new Array();}else{o="graph";}}else{o="graph";}return o;}function getOption(b,q,t,h,g){var r=Ext.Date.dateFormat(q,"m/d/Y");var m=Ext.Date.dateFormat(h,"m/d/Y");
r=(Ext.isEmpty(r))?q:r;m=(Ext.isEmpty(m))?h:m;var f=r+" "+t+":00:00";var o=m+" "+g+":00:00";var k=b.substring(b.indexOf(" ")+1);var a=b.substring(0,b.indexOf(" "));var j=b.substring(b.indexOf(" ")+1);var s=getDateInfoDifference(f,o,k);var d=parseInt(a);var n=parseInt(s);var l=(n<=d)?"highcharts":"graph";
return l;}function getDateInfoDifference(b,g,l){if(!Ext.isEmpty(b)&&!Ext.isEmpty(g)){var h=new Date(b);var a=new Date(g);var q=new Date(h.getFullYear()+1900,h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds());var n=new Date(a.getFullYear()+1900,a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds());
var m=q.getTime();var f=n.getTime();var t=f-m;var d=t/1000;var o=d/60;var k=o/60;var j=k/24;var s=j/7;var r=s/4;if(l!=null&&l=="milliseconds"){return t;}else{if(l!=null&&l=="seconds"){return d;}else{if(l!=null&&l=="minutes"){return o;}else{if(l!=null&&l=="hours"){return k;}else{if(l!=null&&l=="days"){return j;
}else{if(l!=null&&l=="weeks"){return s;}else{if(l!=null&&l=="months"){return r;}else{return j;}}}}}}}}}function endsWith(b,a){return b.indexOf(a,b.length-a.length)!==-1;}(function(a){a.Chart.prototype.reflow=function(){var b=this,d=b.renderTo;Ext.EventManager.onWindowResize(function(){var h=jQuery(d).width();
var g=jQuery(d).outerWidth();var f=jQuery(d).outerHeight();if(g>80){if(g>100){g=(g==h||((g-5)<=h))?(g-50):(g-30);}else{if(b!=null&&(b!="null"&&b!="undefined")){if(b!=null&&b.hasOwnProperty("options")){if(b.options.hasOwnProperty("chart")){g=(Ext.isEmpty(b.options.chart))?200:b.options.chart.width;f=(Ext.isEmpty(b.options.chart))?180:b.options.chart.height;
}}}}if(b!=null&&(b!="null"&&b!="undefined")){if(b!=null&&b.hasOwnProperty("container")){if(b.container){if(!Ext.isEmpty(g)&&!Ext.isEmpty(f)){b.setSize(g,f,false);}}b.containerWidth=g;b.containerHeight=f;}}}else{if(b!=null&&(b!="null"&&b!="undefined")){f=b.chartHeight;g=b.chartWidth;if(b.container){b.setSize(g,f,false);
}b.containerWidth=g;b.containerHeight=f;}}});};}(Highcharts));(function(a){var b=a.each;a.wrap(a.Legend.prototype,"renderItem",function(h,g){h.call(this,g);var f=this.chart.series,d=g.legendGroup.element;d.onmouseover=function(){b(f,function(j){if(j!==g){b(["group","markerGroup"],function(k){j[k].attr("opacity",1);
});}});};d.onmouseout=function(){b(f,function(j){if(j!==g){b(["group","markerGroup"],function(k){j[k].attr("opacity",1);});}});};});}(Highcharts));(function(f,g){if(!f){return;}var j=f.Chart.prototype,h=f.Legend.prototype;f.extend(j,{legendSetVisibility:function(r){try{var o=this;var d=o.legend,u,s,n;
var a=o.options.legend,t,b;if(a.enabled==r){return;}a.enabled=r;if(!r){h.destroy.call(d);u=d.allItems;if(u){for(s=0,n=u.length;s<n;++s){u[s].legendItem=g;}}d.group={};}j.render.call(o);if(!a.floating){t=o.scroller;if(t&&t.render){b=o.xAxis[0].getExtremes();t.render(b.min,b.max);}}jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}catch(q){}},legendHide:function(){this.legendSetVisibility(false);},legendShow:function(){this.legendSetVisibility(true);},legendToggle:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");
if(Ext.isEmpty(this.options)){jQuery(".highcharts-legend").show();}else{this.legendSetVisibility(this.options.legend.enabled^true);}}});}(Highcharts));function elipseTitle(d,b){if(d!=null){if(d.length>b){var a=d.substring(b);if(a.length>3){d=d.substring(0,b)+"...";}}}return d;}function getHighChartsGuage(x,f,A){var q='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
if(Ext.isEmpty(f)){}else{var k=(Ext.isEmpty(f["guageData"]["bgColor"]))?"transparent":f["guageData"]["bgColor"];var s=(Ext.isEmpty(f["unit"]))?"":"("+f["unit"]+")";var g=(Ext.isEmpty(f["title"]))?"":f["title"];g=(Ext.isEmpty(g))?"":g+" "+s;var a=(Ext.isEmpty(f["guageData"]["fontColor"]))?"":f["guageData"]["fontColor"];
var v=(Ext.isEmpty(f["guageData"]["fontName"]))?"Roboto":f["fontName"];var t=(Ext.isEmpty(f.subTitle))?"":f.subTitle;var g=(Ext.isEmpty(f["title"]))?"":f["title"];var u=(Ext.isEmpty(f["useHtml"]))?false:f["useHtml"];if(g.indexOf("%")>-1){g=g;}else{if(g!=null&&g!=""){g=(Ext.isEmpty(f["unit"]))?g:g+" ("+f["unit"]+")";
}}var l="";if(u){g=elipseTitle(g,35);t=elipseTitle(t,20);var n=(Ext.isEmpty(f["title"]))?"":f["title"];var b=(Ext.isEmpty(f.subTitle))?"":f.subTitle;g='<div style="text-align:center;"><div data-qtip="'+n+'" style="margin-bottom:3px !important;font-weight:500;color:#333333;font-size:12px;">'+g+"</div></div>";
t='<div style="text-align:center;"><div data-qtip="'+b+'" style="color:#333333;font-size:12px;">'+t+"</div></div>";}else{l=(Ext.isEmpty(f["strSkinclr"]))?"":f["strSkinclr"];}if(k==null||k==""||k=="null"||k=="undefined"){k="#ffffff";}if(a==null||a==""||a=="null"||a=="undefined"){a="black";}if(v==null||v==""||v=="null"||v=="undefined"){v="Roboto";
}var w=0;if(A!=null&&A=="InsideViewDashboard"){w=40;}if(A!=null&&(A=="virtualTabUpperPanel")){w=5;}var d="void(0);";var z="default";if(A!=null&&(A=="virtualTabUpperPanel"||A=="InsideViewDashboard")){if(f["isVM"]==null||f["isVM"]==undefined||f["isVM"]==false){d="dialOnclick('"+f["layerModelUrlId"]+"')";
z="pointer";}}else{if(f["goToPage"]!=null&&f["goToPage"]=="layerModel"){if(f["isVM"]==null||f["isVM"]==undefined||f["isVM"]==false){d="wayToLayerModel('"+f["layerModelUrl"]+"')";z="pointer";}}}var j=(strSkin=="Light")?"#606060":"#c0c0c0";var m=0;if(!Ext.isEmpty(f["maxValueForDial"])){m=parseInt(f["maxValueForDial"]);
}else{var o=0;if(!Ext.isEmpty(f["guageData"]["data"])){o=f["guageData"]["data"];}if(o>=0&&o<=100){m=100;}else{if(o>=100&&o<=200){m=200;}else{m=500;}}}var r={chart:{type:"solidgauge",renderTo:x,backgroundColor:"transparent",plotBackgroundColor:"transparent",marginTop:w,spacing:[10,10,10,10],events:{click:function(){var C=f["layerModelUrl"];
var B=f["goToPage"];if(C!=null&&C!=undefined&&C!="null"&&C!=""){if(A!=null&&A=="myDashboard"){dialOnClick(f["layerModelUrlId"]);}else{if(A!=null&&(A=="virtualTabUpperPanel"||A=="InsideViewDashboard")){dialOnclick(f["layerModelUrlId"]);}else{if(B!=null&&B=="layerModel"){wayToLayerModel(C);}}}}}}},exporting:{enabled:false},credits:{enabled:false},subtitle:{useHTML:u,text:Ext.String.htmlDecode(t),style:{color:l,fontFamily:"Roboto",fontSize:"12px",}},title:{useHTML:u,text:Ext.String.htmlDecode(g),style:{color:l,fontFamily:"Roboto",fontWeight:"500",fontSize:"12px"}},pane:{center:["50%","85%"],size:"105%",startAngle:-90,endAngle:90,background:{backgroundColor:(strSkin=="Light")?"#eaeaea":"#595959",borderColor:"transparent",innerRadius:"60%",outerRadius:"100%",shape:"arc"}},tooltip:{enabled:false},yAxis:{stops:f["stopsArr"],lineWidth:0,minorTickInterval:null,tickPixelInterval:400,tickWidth:0,title:{y:-70},labels:{y:16,style:{color:j,fontFamily:v},formatter:function(){return(this.value==0)?0:m;
}},style:{color:a,fontFamily:v,fontSize:"10px"},min:0,max:m,title:{text:""}},plotOptions:{solidgauge:{dataLabels:{y:5,borderWidth:0,useHTML:true,style:{color:a,fontFamily:v,fontSize:"10px",textOutline:false,textShadow:false}}}},series:[{name:f["guageData"]["name"],data:f["guageData"]["data"],cursor:z,dataLabels:{format:'<div onclick="javascript:'+d+'" style="text-align:center;"><span style="font-weight:500;font-family:Roboto;font-size:15px;color:"'+j+";>{y}</span></div>"},tooltip:{},}]};
if(x!=null&&x.indexOf("sysLinearguage")==0){r.pane.size="100%";r.title.style.color=(strSkin!=null&&strSkin=="Light")?"#333333":"#c0c0c0";}this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));var h=new Highcharts.Chart(r);return h;}}function getHighChartsGuageforNetflow(F,g,G){var t='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
g["guageData"]["bgColor"]="#404040";if(Ext.isEmpty(g)){}else{var m=(Ext.isEmpty(g["guageData"]["bgColor"]))?"transparent":g["guageData"]["bgColor"];var v=(Ext.isEmpty(g["unit"]))?"":"("+g["unit"]+")";var h=(Ext.isEmpty(g["title"]))?"":g["title"];h=(Ext.isEmpty(h))?"":h+" "+v;var b=(Ext.isEmpty(g["guageData"]["fontColor"]))?"":g["guageData"]["fontColor"];
var B=(Ext.isEmpty(g["guageData"]["fontName"]))?"Roboto":g["fontName"];var w=(Ext.isEmpty(g.subTitle))?"":g.subTitle;var h=(Ext.isEmpty(g["title"]))?"":g["title"];var A=(Ext.isEmpty(g["useHtml"]))?false:g["useHtml"];if(h.indexOf("%")>-1){h=h;}else{if(h!=null&&h!=""){h=(Ext.isEmpty(g["unit"]))?h:h+"("+g["unit"]+")";
}}var n="";if(A){h=elipseTitle(h,35);w=elipseTitle(w,20);var q=(Ext.isEmpty(g["title"]))?"":g["title"];var d=(Ext.isEmpty(g.subTitle))?"":g.subTitle;h='<div style="text-align:center;"><div data-qtip="'+q+'" style="margin-bottom:3px !important;font-weight:500;color:#333333;font-size:12px;">'+h+"</div></div>";
w='<div style="text-align:center;"><div data-qtip="'+d+'" style="color:#333333;font-size:12px;">'+w+"</div></div>";}else{n=(Ext.isEmpty(g["strSkinclr"]))?"":g["strSkinclr"];}if(m==null||m==""||m=="null"||m=="undefined"){m="#ffffff";}if(b==null||b==""||b=="null"||b=="undefined"){b="black";}if(B==null||B==""||B=="null"||B=="undefined"){B="Roboto";
}var D=0;var f="";if(g["goToPage"]!=null&&g["goToPage"]=="layerModel"){f="wayToLayerModel('"+g["layerModelUrl"]+"')";}var k=-90;var z=90;var E=false;var x=false;var a=false;var s=g["guageData"]["color"];var C={type:"gauge",data:g["guageData"]["data"],innerRadius:"60%",outerRadius:"100%",};var l=(strSkin=="Light")?"#606060":"#c0c0c0";
var o=0;if(!Ext.isEmpty(g["maxValueForDial"])){o=parseInt(g["maxValueForDial"]);}else{var r=0;if(!Ext.isEmpty(g["guageData"]["data"])){r=g["guageData"]["data"];}if(r>=0&&r<=100){o=100;}else{if(r>=100&&r<=200){o=200;}else{o=500;}}}var u={chart:{type:"solidgauge",renderTo:F,backgroundColor:"transparent",plotBackgroundColor:"transparent",marginTop:D,spacing:[10,10,10,10]},exporting:{enabled:false},credits:{enabled:false},subtitle:{useHTML:A,text:w,style:{color:n,fontFamily:"Roboto",fontSize:"12px",}},title:{useHTML:A,text:Ext.String.htmlDecode(h),style:{color:n,fontFamily:"Roboto",fontWeight:"500",fontSize:"12px"}},pane:{center:["50%","80%"],size:"102%",startAngle:k,endAngle:z,background:{innerRadius:"50%",outerRadius:"100%",backgroundColor:(strSkin=="Light")?"#EEE":"#404040",borderWidth:"0px",shape:"arc"}},tooltip:{enabled:false},yAxis:{stops:g["stopsArr"],lineWidth:0,minorTickInterval:null,tickPixelInterval:400,tickWidth:0,showFirstLabel:E,showLastLabel:x,title:{y:-70},labels:{y:16,style:{color:l},formatter:function(){return(this.value==0)?0:100;
}},style:{color:b,fontFamily:B,fontSize:"10px",},min:0,max:100,title:{text:""}},plotOptions:{gauge:{pivot:{radius:2.75,backgroundColor:(strSkin=="Light")?"white":"#404040",borderWidth:1.75,borderColor:(strSkin=="Light")?"black":"#e5e5e5"},dial:{baseLength:"10%",baseWidth:7,backgroundColor:(strSkin=="Light")?null:"#e5e5e5",radius:"104%",rearLength:"1%",borderWidth:1,topWidth:1},dataLabels:{y:35,thickness:"50%",borderWidth:0,useHTML:true,style:{color:b,fontFamily:B,fontSize:"15px",fontWeight:"500",textOutline:false,textShadow:false}}}},series:[{name:g["guageData"]["name"],data:g["guageData"]["data"],cursor:"pointer",dataLabels:{y:-95,},tooltip:{},events:{click:function(){var I=g["layerModelUrl"];
var H=g["goToPage"];if(I!=null&&I!=undefined&&I!="null"&&I!=""){if(H!=null&&H=="layerModel"){wayToLayerModel(I);}}}}},C],};this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));var j=new Highcharts.Chart(u,function(K){var I=$(".highcharts-pivot").attr("transform");var L=document.createElementNS("http://www.w3.org/2000/svg","circle");
L.setAttributeNS(null,"cx",0);L.setAttributeNS(null,"cy",0);L.setAttributeNS(null,"r",2);L.setAttributeNS(null,"stroke","black");L.setAttributeNS(null,"stroke-width",1);L.setAttributeNS(null,"transform","translate(90,88)");L.setAttributeNS(null,"fill","white");var H=K.series[0].points[0],J;K.yAxis[0].removePlotBand("plot-band-1");
K.yAxis[0].addPlotBand({from:0,to:H.y,color:s,thickness:"50%",id:"plot-band-1"});});return j;}}function getPieChartsforNetflow(g,b,d){var a=true;var f={highchart:null,setData:function(r,n,l,h){var s="";if(r["From"]=="AssetDashboard"){s={chart:{type:"pie",plotBackgroundColor:null,plotBorderWidth:null,height:(b-50),width:(d-50),plotShadow:false,shadow:false,spacingBottom:0,spacingTop:0,spacingLeft:0,spacingRight:0,backgroundColor:null,events:{load:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},tooltip:{enabled:true,pointFormat:"<b>{point.y}</b><br>",style:{color:(strSkin=="Light")?"#000000":"#c0c0c0",padding:10,fontFamily:"Roboto",fontWeight:"500",fontSize:"11px",},},title:{text:""},exporting:{enabled:false},credits:{enabled:false},legend:{align:"right",layout:"vertical",verticalAlign:"top",x:0,y:50,padding:0,itemMarginTop:0,itemMarginBottom:5,enabled:false,itemStyle:{lineHeight:"14px"}},plotOptions:{pie:{cursor:"pointer",borderWidth:3,borderColor:(strSkin=="Light")?"#ffffff":"#404040",innerSize:"60%",size:"85%",dataLabels:{connectorColor:"#C0C0C0",connectorWidth:1,format:"{point.y}",color:(strSkin=="Light")?"#969696":"#c0c0c0",softConnector:false,enabled:true,distance:10,connectorPadding:6,style:{"fontSize":"9px","color":(strSkin=="Light")?"#000000":"#c0c0c0",textOutline:false,textShadow:false}},label:{connectorAllowed:true},showInLegend:true,},series:{states:{hover:{enabled:false}},},},};
}else{var k=Math.round(d*0.6-50);s={chart:{type:"pie",plotBackgroundColor:null,plotBorderWidth:null,height:(b-50),width:(d-50),plotShadow:false,shadow:false,spacingBottom:0,spacingTop:0,spacingLeft:0,spacingRight:0,backgroundColor:null,events:{load:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},tooltip:{enabled:true,pointFormat:"<b>{point.y}</b><br>",style:{color:(strSkin=="Light")?"#000000":"#c0c0c0",padding:10,fontFamily:"Roboto",fontWeight:"500",fontSize:"11px",},},title:{text:""},exporting:{enabled:false},credits:{enabled:false},legend:{align:"right",layout:"vertical",verticalAlign:"top",x:-0,y:50,width:k,padding:0,itemMarginTop:0,itemMarginBottom:5,itemStyle:{lineHeight:"14px",}},plotOptions:{pie:{cursor:"pointer",borderColor:"transparent",innerSize:"35%",size:"75%",dataLabels:{connectorColor:"#C0C0C0",softConnector:false,enabled:false,distance:10,connectorPadding:6,style:{"fontSize":"9px","color":(strSkin=="Light")?"#000000":"#c0c0c0",textOutline:false,textShadow:false}},showInLegend:true,},series:{states:{hover:{enabled:true}},},},};
}var m='<table width="100%" height="80%"><tr><td align="center" valign="middle">'+errImgSrc+"</td></tr></table>";var t=document.getElementById(g);var j=0;for(var o=0;o<r["DataSet"].length;o++){if(r.DataSet[o].data==""||r.DataSet[o].data=="null"||r.DataSet[o].data=="undefined"||r.DataSet[o].data==undefined){j+=1;
}}if(r["DataSet"]==""||r["DataSet"]=="null"||r["DataSet"]=="undefined"||r["DataSet"]==undefined||j==5){a=false;if(t!=null){if(!Ext.isEmpty(r["measureTitle"])){var q='<center><div style="padding:5px;border:0px solid red;font-weight:500;font-size:12px;"><b>'+r["measureTitle"]+'</b></div><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
t.innerHTML=q;}else{t.innerHTML='<center><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';}}}else{this.highchart=jQuery.extend(true,this.defaults,s);
this.highchart.series=r["DataSet"];this.highchart.chart.renderTo=g;}},drawChart:function(){if(a){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));new Highcharts.Chart(this.highchart);}}};return f;}function createTransactionBigHighChart(g,a,d,b,f){return createTransactionBigHighChart(g,a,d,b,f,"");}function createTransactionBigHighChart(k,f,l,g,h,b){var j=true;var a;var d=false;
var m=(h.toLowerCase()=="yes"||h.toLowerCase()=="true")?"areaspline":"line";var n={highchart:null,defaults:{chart:{type:m,plotBorderWidth:0,plotBorderColor:"#C0C0C0",backgroundColor:"#ffffff",plotBackgroundColor:"white",ignoreHiddenSeries:false,spacing:[20,5,0,5],plotShadow:false,shadow:false,zoomType:"x",width:l,height:f,backgroundColor:"transparent",events:{load:function(o){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},lang:{contextButtonTitle:"Print/Download Chart"},navigator:{enabled:false},yAxis:{border:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:50,labels:{formatter:function(){return(this.value>0?" ":"")+this.value;
},style:{color:"black",fontFamily:"Calibri",fontSize:"12px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,},plotOptions:{series:{stacking:null,states:{hover:{enabled:true,lineWidth:2,}},connectNulls:false,smoothed:true,lineWidth:2,marker:{enabled:false}},line:{shadow:false,linewidth:10}},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"black",fontFamily:"Calibri",fontSize:"12px",},symbolWidth:15},labels:{itemStyle:{color:"black",fontFamily:"Calibri",fontSize:"12px",}},tooltip:{shared:true,borderColor:"black",valueDecimals:4,style:{color:"black",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false,chartOptions:{title:{text:""}}},credits:{enabled:false},xAxis:{border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,type:"datetime",ordinal:false,labels:{rotation:270,style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"10px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:false,startOnTick:false,useHTML:false,tickPixelInterval:75,},title:{enabled:true,offset:""}},series:{marker:{enabled:false,states:{hover:{enabled:true,lineWidth:2}}},dataGrouping:{enabled:false}}},setData:function(J,ak,R,aq,Q){var T=[];
var v=0;var t=(strSkin=="Light")?"#f7f7f7":"#828282";for(var af in J){if(af=="DataSet"){var ah=J["DataSet"];if(ah.indexOf("^eg^")>-1){var A=document.getElementById(k);if(A==null||A==undefined){A=Ext.getCmp(k);}j=false;if(A!=null){A.innerHTML='<center><div style="text-align:center;border:0px solid red;width:100%"><div style="margin:15% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
}}else{var S=[];for(var D in ah){if(!isNaN(D)){if(D==0){T["title"]=ah[D]["title"];T["fmts"]=ah[D]["fmts"];T["max"]=ah[D]["max"];T["lineWidth"]=ah[D]["lineWidth"];T["axislabel"]=ah[D]["axislabel"];T["yaxisLabel"]=ah[D]["yaxisLabel"];}v=v+1;S[D]={name:ah[D]["name"],data:ah[D]["data"],color:ah[D]["color"],lineWidth:ah[D]["lineWidth"],};
}}T["DataSet"]=S;}}if(af=="legendEnabled"){T["legendEnabled"]=J["legendEnabled"];}}if(!Ext.isEmpty(T["DataSet"])){var ai="Roboto";var aa="#c0c0c0";var H="11";var M="500";var q="";var K="line";var u=new Object();u["titleFontFamily"]="Roboto";u["titleFontSize"]="12px";u["titleFontClr"]="#333333";u["titleFontWgt"]="500";
u["axisFontFamily"]="Roboto";u["axisFontClr"]="#c0c0c0";u["axisFontSize"]="10px";u["axisFontWgt"]="normal";u["legFontFamily"]="Roboto";u["legFontClr"]="#2a292a";u["legFontSize"]="10px";u["legFontWgt"]="normal";q=tooltipDateFormate(ak);var C="";ymax=T["max"];ymin=0;var O=(Ext.isEmpty(T["useHtml"]))?false:T["useHtml"];
fontFamily=T["fontName"];fontSize=T["fontsize"];startTime=T["xmin"];LegendPosition=T["legendPosition"];xLabel=T["axislabel"];yaxisLabel=T["yaxisLabel"];LegendFont=T["LegendFont"];xAxisDisplay=T["xAxisDisplay"];var W=T["fmts"];fontFamily="Roboto";LegendFont="Roboto";xLabel=(xLabel==null||xLabel=="")?"":xLabel;
yaxisLabel=(yaxisLabel==null||yaxisLabel=="")?"":yaxisLabel;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;fontSize=(fontSize==null||fontSize=="")?"11px":fontFamily+"px";startTime=(startTime==null||startTime=="")?null:startTime;LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;
LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;W=(W==null||W=="")?"HH:mm":W;C=getTimeLineOutputFormat(W);legendWidth=(LegendPosition=="right")?150:300;maxLegendHeight=(LegendPosition=="right")?null:50;valign=(LegendPosition=="right")?"middle":"top";legendLayout=(LegendPosition=="right")?"vertical":"horizontal";
isThresholdLine=(!Ext.isEmpty(T["isThresholdComparison"]))?T["isThresholdComparison"]:false;chartTitle=T["title"];enableExport=true;lessWidth=55;ymax=(!isThresholdLine&&ymax==0)?1:null;var X="",al="",I="",x="",ar="",ap="",r="",Z="";var aj=(h.toLowerCase()=="yes"||h.toLowerCase()=="true")?"areaspline":"line";
if(!Ext.isEmpty(b)&&b!=null&&b!=undefined){aj=b;}if(!Ext.isEmpty(T["styles"])){var E=T["styles"];if(!Ext.isEmpty(E["axisLabelStyle"])){X=E["axisLabelStyle"].FAMILY;al=E["axisLabelStyle"].COLOR;I=E["axisLabelStyle"].SIZE;x=E["axisLabelStyle"].WEIGHT;}if(!Ext.isEmpty(E["timeLabelStyle"])){u["axisFontFamily"]=E["timeLabelStyle"].FAMILY;
u["axisFontClr"]=E["timeLabelStyle"].COLOR;u["axisFontSize"]=E["timeLabelStyle"].SIZE;u["axisFontWgt"]=E["timeLabelStyle"].WEIGHT;}if(!Ext.isEmpty(E["titleSty"])){u["titleFontClr"]=E["titleSty"].COLOR;u["titleFontFamily"]=E["titleSty"].FAMILY;u["titleFontSize"]=E["titleSty"].SIZE;u["titleFontWgt"]=E["titleSty"].WEIGHT;
}if(!Ext.isEmpty(E["legendSty"])){u["legFontFamily"]=E["legendSty"].FAMILY;u["legFontClr"]=E["legendSty"].COLOR;u["legFontSize"]=E["legendSty"].SIZE;u["legFontWgt"]=E["legendSty"].WEIGHT;}plotPanelColor=(!Ext.isEmpty(T["styles"]["panelLineStyle"]))?T["styles"]["panelLineStyle"].COLOR:"#C0C0C0";}else{plotPanelColor="#C0C0C0";
}xlineWidth=0;xGridLineWidth=0;ylineWidth=1;yGridLineWidth=0;if(isThresholdLine){ylineWidth=1;yGridLineWidth=0;xlineWidth=1;xGridLineWidth=1;}else{ylineWidth=1;yGridLineWidth=0;xlineWidth=1;xGridLineWidth=1;}X=(Ext.isEmpty(X))?ai:X;al=(Ext.isEmpty(al))?aa:al;I=(Ext.isEmpty(I))?H:I;x=(Ext.isEmpty(x))?M:x;
var an="rgba(255, 255, 255, 0.85)";an=(v==1)?T["DataSet"][0]["color"]:an;var L=(v<=2)?200:0;var ao=T["chartTitle"];var ac=false;ac=true;chartTitle=(ac)?T["title"]:"";var ae="";if(!Ext.isEmpty(T["fromPage"])){ae=T["fromPage"];}var P=(ae=="seum")?true:false;if(Q=="bottom"){valign="middle";y=5;legendWidth=100;
enableExport=false;legendLayout="right";LegendPosition="center";maxLegendHeight=20;var z=chartTitle.split(":");if(z!=null&&z!=undefined&&z.length>0){chartTitle=chartTitle.substring(chartTitle.lastIndexOf(":")+1);}}if(Ext.isEmpty(ao)){ao=chartTitle;}if(v<=3){valign="top";y=(Ext.isEmpty(T["smallGraph"]))?20:0;
if(Q=="bottom"){legendWidth=200;L=(v<=2)?100:0;}else{legendWidth=500;L=200;}LegendPosition="";legendLayout="horizontal";maxLegendHeight=40;}else{y=5;valign="middle";legendWidth=150;LegendPosition="right";legendLayout="vertical";maxLegendHeight=null;}if(aq!=undefined&&!aq){xLabel="";}var o="datetime";
var ag=null;var s=3;var ad=false;var w=null;var N=true;var F=T["legendEnabled"];N=F;var am="";var B="";var G=false;var U=Ext.ComponentQuery.query("#showLegend")[0];if(!Ext.isEmpty(Ext.getCmp("showLegend"))){G=Ext.getCmp("showLegend").getValue();d=true;}if(U!="undefined"&&U!=undefined){G=U.getValue();
}G=(P)?true:G;if(W=="%H:%M"){am=7;B=60;}else{am=5;B=100;}rotVal=270;if(xAxisDisplay=="horizontal"){am=13;B=5;rotVal=2;}var ab=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){ab=0;ymin=null;ymax=null;}if(ymin!=null&&ymax!=null&&(ymin==ymax)){ymax=ymin+1;
}Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});var V={chart:{type:aj,plotBorderColor:plotPanelColor,events:{click:function(at){if(at.srcElement.firstChild==null||at.srcElement.firstChild==undefined){if(R!="null"&&R!="undefined"&&R!=""&&R!=undefined&&R!="close"){loadMaximizedView(R);
}else{if(R=="close"){closeMaximizedView();}}}},load:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},tooltip:{xDateFormat:q,valueDecimals:4,backgroundColor:an,borderWidth:1,shared:true,formatter:function(){var at=this.points||splat(this),au=at[0].series,av;
at.sort(function(ax,aw){return((ax.y>aw.y)?-1:((ax.y<aw.y)?1:0));});var av="";if(v==1||(strSkin=="Dark"||strSkin=="dark")){av='<span style="color:white">'+Highcharts.dateFormat(q,this.x,true)+"</span><br/>";}else{av="<span>"+Highcharts.dateFormat(q,this.x,true)+"</span><br/>";}jQuery.each(this.points,function(ax,aw){var az=Highcharts.numberFormat(aw.y,4,".","");
var ay=az.split(".");if(ay.length>1){if(ay[1]=="0000"){az=ay[0];}}if(aw.series.name!=""&&aw.series.name!=undefined&&N){if(v==1){av+='<b><span style="color:white">'+Ext.String.htmlDecode(aw.series.name)+" :  "+az+"</span></b><br/>";}else{av+='<b><span style="color:'+this.series.color+'">'+Ext.String.htmlDecode(aw.series.name)+"  :  "+az+"</span></b><br/>";
}}else{if(v==1){av+='<b><span style="color:white">'+Ext.String.htmlDecode(aw.series.name)+" :  "+az+"</span></b><br/>";}else{av+='<b><span style="color:'+this.series.color+'">'+Ext.String.htmlDecode(aw.series.name)+"  :  "+az+"</span></b><br/>";}}});return av;}},title:{text:Ext.String.htmlDecode(chartTitle),style:{color:u["titleFontClr"],fontFamily:u["titleFontFamily"],fontSize:u["titleFontSize"]}},yAxis:{max:ymax,min:ymin,minPadding:ab,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{align:"right",x:-10,y:3,formatter:function(){var at=Highcharts.numberFormat(this.value,4,".","");
at=(parseFloat(at));return at;},style:{color:u["axisFontClr"],fontFamily:u["axisFontFamily"],fontSize:u["axisFontSize"]}},title:{text:Ext.String.htmlDecode(yaxisLabel),offset:B,style:{color:al,fontFamily:X,fontSize:I+"px"}}},xAxis:{type:o,lineWidth:xlineWidth,gridLineWidth:xGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,tickWidth:0,tickLength:0,endOnTick:true,labels:{y:am,rotation:rotVal,style:{color:u["axisFontClr"],fontFamily:u["axisFontFamily"],fontSize:u["axisFontSize"]},formatter:function(){return Highcharts.dateFormat(W,this.value);
}},title:{text:Ext.String.htmlDecode(xLabel),offset:B,style:{color:al,fontFamily:X,fontSize:I+"px"}}},plotOptions:{series:{threshold:null,marker:{enabled:ad,states:{hover:{enabled:true,lineWidth:2}}},stacking:ag,pointStart:startTime,point:{events:{click:function(at){if(R!="null"&&R!="undefined"&&R!=""&&R!=undefined&&R!="close"){loadMaximizedView(R);
}else{if(R=="close"){closeMaximizedView();}}}}}},scatter:{tooltip:w,}},legend:{enabled:N,verticalAlign:valign,width:legendWidth,align:LegendPosition,maxHeight:maxLegendHeight,y:y,itemStyle:{color:u["legFontClr"],fontWeight:u["legFontWgt"],fontFamily:u["legFontFamily"],fontSize:u["legFontSize"]},labelFormatter:function(){var au=Ext.String.htmlDecode(this.name);
if(au!=""&&au!="undefined"&&au!="infinity"){au=this.name;}else{au="null";}var ax=au;if(valign=="middle"){var aw="";if(ax.length>=20){aw=ax.substring(0,20);var av=ax.substring(20);av=av.trim();while(av.length>20){aw=aw+"<br>"+av.substring(0,20);av=av.substring(20);}if(av.length>2){var at=av.substring(0,2);
if(at.indexOf(" ")>-1){aw=ax.substring(0,22);}}aw=aw+"<br>"+av;}else{aw=ax;}}else{aw=au;}return aw;}},navigation:{buttonOptions:{x:3}},exporting:{enabled:enableExport,chartOptions:{title:{text:Ext.String.htmlDecode(ao)}},buttons:{contextButton:{menuItems:menuItemArray,theme:{fill:t,states:{hover:{fill:t}}}}}}};
var A=document.getElementById(k);if(A==null||A==undefined){A=Ext.getCmp(k);}this.highchart=jQuery.extend(true,this.defaults,V);var J=[];var Y=0;if(T["DataSet"]==""||T["DataSet"]=="null"||T["DataSet"]=="undefined"||T["DataSet"]==undefined){j=false;if(A!=null){A.innerHTML='<center><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:6% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
}}else{this.highchart.series=T["DataSet"];this.highchart.chart.renderTo=k;}}},drawChart:function(){if(j){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));new Highcharts.Chart(this.highchart,function(o){if(!d){jQuery(".showLegend").click(function(){o.legendToggle();});}else{jQuery("#showLegend").click(function(){o.legendToggle();});}});}}};return n;}function getHighStockAreaChartForUserExperienceDashboard(j,d,k,f,g){var h=true;
var a;var b=false;var m=new Date();var l={highchart:null,defaults:{chart:{plotBorderWidth:0,plotBorderColor:"#B2B1B1",backgroundColor:"#3a3a3a",spacingBottom:5,spacingRight:30,spacingLeft:15,plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"x",reflow:false,width:k,height:d-50,backgroundColor:"transparent",trackByArea:true},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},navigator:{enabled:false},yAxis:{border:0,lineWidth:0,gridLineWidth:1,gridLineColor:"#363636",tickPixelInterval:50,labels:{align:"right",x:-8,formatter:function(){return(this.value>0?" ":"")+this.value;
},style:{color:"#636363",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",textDecoration:"none",},},showLastLabel:true,title:{text:"",}},plotOptions:{series:{fillOpacity:0.9,states:{hover:{enabled:true,fillOpacity:0.9}},connectNulls:false,smoothed:true,lineWidth:2,marker:{enabled:false}},line:{shadow:false,linewidth:10}},scrollbar:{enabled:false},legend:{enabled:true,verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"#999999",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},symbolWidth:15},labels:{itemStyle:{color:"#999999",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},tooltip:{crosshairs:{color:"#999999",dashStyle:"solid"},shared:true,backgroundColor:"rgba(10, 0, 0, 0.85)",borderColor:"#00000",valueDecimals:4,headerFormat:"{point.key}<br>",pointFormat:"{series.name}  <b>:  {point.y}</b><br>",style:{color:"#999999",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"10px",},positioner:function(q,r,o){var n,s;
if(o.plotX+q>(this.chart.plotWidth)){n=o.plotX+this.chart.plotLeft-q-10;}else{n=o.plotX+this.chart.plotLeft+10;}s=o.plotY+this.chart.plotTop-(r/2);return{x:n,y:s};}},exporting:{enabled:false,chartOptions:{title:{text:""}}},credits:{enabled:false},xAxis:{border:0,lineWidth:0,minPadding:0.02,maxPadding:0.02,type:"datetime",gridLineWidth:0,gridLineColor:"#363636",ordinal:false,labels:{style:{color:"#636363",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",textDecoration:"none",},overflow:"justify",maxStaggerLines:7,showLastLabel:true,showFirstLabel:false,startOnTick:true,useHTML:false,tickPixelInterval:50,formatter:function(){return Highcharts.dateFormat("",this.value);
}},title:{enabled:true,offset:""}},series:g},setData:function(r,v,C,O,U){var E=new Date();var B="";var u="line";B=tooltipDateFormate(v);var D="";ymax=r["max"];ymin=0;fontFamily=r["fontName"];fontSize=r["fontsize"];startTime=r["xmin"];LegendPosition=r["legendPosition"];xLabel=r["axislabel"];LegendFont=r["LegendFont"];
var X=r["fmts"];fontFamily="Roboto";LegendFont="Roboto";var J=(strSkin=="Light")?"#f7f7f7":"#828282";xLabel=(xLabel==null||xLabel=="")?"":xLabel;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;fontSize=(fontSize==null||fontSize=="")?"11px":fontFamily+"px";startTime=(startTime==null||startTime=="")?null:startTime;
LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;X=(X==null||X=="")?"HH:mm":X;D=getTimeLineOutputFormat(X);legendWidth=(LegendPosition=="right")?150:300;maxLegendHeight=(LegendPosition=="right")?null:50;
valign=(LegendPosition=="right")?"middle":"top";legendLayout=(LegendPosition=="right")?"vertical":"horizontal";chartTitle=r["title"];enableExport=true;lessWidth=55;var I=false;var N=r["DataSet"].length;var P=r["legendEnableforMaxW"];var q=(N<=2)?200:0;var Y=r["chartTitle"];var M="";if(!Ext.isEmpty(r["fromPage"])){M=r["fromPage"];
}var n=(M=="seum")?true:false;if(U=="bottom"){valign="middle";y=5;legendWidth=100;enableExport=false;legendLayout="right";LegendPosition="center";maxLegendHeight=20;var V=chartTitle.split(":");if(V!=null&&V!=undefined&&V.length>0){chartTitle=chartTitle.substring(chartTitle.lastIndexOf(":")+1);}}if(Ext.isEmpty(Y)){Y=chartTitle;
}if(N<=3){valign="top";y=20;if(U=="bottom"){legendWidth=200;q=(N<=2)?100:0;}else{legendWidth=500;q=200;}LegendPosition="left";legendLayout="horizontal";maxLegendHeight=40;}else{y=5;valign="middle";legendWidth=150;LegendPosition="right";legendLayout="vertical";maxLegendHeight=null;}if(O!=undefined&&!O){xLabel="";
}var F="datetime";var R=null;var A=3;var H=false;var z=null;var L=true;var t=r["legendEnabled"];L=t;L=(Ext.isEmpty(L))?true:L;var w="";var G="";var Q=false;var T=Ext.ComponentQuery.query("#showLegend")[0];if(!Ext.isEmpty(Ext.getCmp("showLegend"))){Q=Ext.getCmp("showLegend").getValue();b=true;}if(T!="undefined"&&T!=undefined){Q=T.getValue();
}Q=(n)?true:Q;if(!Ext.isEmpty(P)&&P){Q=true;I=true;y=0;}if(X=="%H:%M"){w=32;G=60;}else{w=30;G=100;}var K=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){K=0;ymin=null;ymax=null;}if(ymin!=null&&ymax!=null&&(ymin==ymax)){ymax=ymin+1;}Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});
var S=null;if(r["DataSet"]!=null){if(r["DataSet"].data!=null&&r["DataSet"].data.length<3){S=256000;}else{if(r["DataSet"][0].data!=null&&r["DataSet"][0].data.length<3){S=256000;}}}var W={chart:{events:{click:function(x){if(x.srcElement.firstChild==null||x.srcElement.firstChild==undefined){if(C!="null"&&C!="undefined"&&C!=""&&C!=undefined&&C!="close"){loadMaximizedView(C);
}else{if(C=="close"){closeMaximizedView();}}}},load:function(){}}},tooltip:{xDateFormat:B,valueDecimals:4,formatter:function(){var x=Highcharts.dateFormat(B,this.x,true)+"<br>";jQuery.each(this.points,function(aa,Z){var ac=Highcharts.numberFormat(Z.y,4,".","");var ab=ac.split(".");if(ab.length>1){if(ab[1]=="0000"){ac=ab[0];
}}if(Z.series.name!=""&&Z.series.name!=undefined&&L){x+="<br/>"+Ext.String.htmlDecode(Z.series.name)+": <b>"+ac+"</b>";}else{x+="<br/> <b>"+ac+"</b>";}});return x;}},title:{text:Ext.String.htmlDecode(chartTitle),style:{color:"#999999",fontWeight:"500",fontFamily:fontFamily,fontSize:"12px",}},yAxis:{max:ymax,min:ymin,minPadding:K,labels:{style:{fontFamily:fontFamily,fontSize:fontSize,}},title:{text:"",}},xAxis:{type:F,labels:{rotation:270,formatter:function(){return Highcharts.dateFormat(X,this.value);
}},title:{enabled:I,text:Ext.String.htmlDecode(xLabel),offset:G,style:{color:"#999999",fontWeight:"500",fontFamily:fontFamily,fontSize:"11px",},}},trackByArea:true,plotOptions:{series:{threshold:null,fillOpacity:0.9,states:{hover:{enabled:true}},marker:{enabled:H,},stacking:R,pointStart:startTime,events:{click:function(x){if(this.hasOwnProperty("userOptions")){}}}},scatter:{tooltip:z,},},legend:{enabled:Q,verticalAlign:valign,width:legendWidth,align:LegendPosition,maxHeight:maxLegendHeight,symbolRadius:0,y:y,itemStyle:{fontFamily:LegendFont,},labelFormatter:function(){var Z=Ext.String.htmlDecode(this.name);
if(Z!=""&&Z!="undefined"&&Z!="infinity"){Z=this.name;}else{Z="null";}var ac=Z;if(valign=="middle"){var ab="";if(ac.length>=20){ab=ac.substring(0,20);var aa=ac.substring(20);aa=aa.trim();while(aa.length>20){ab=ab+"<br>"+aa.substring(0,20);aa=aa.substring(20);}if(aa.length>2){var x=aa.substring(0,2);if(x.indexOf(" ")>-1){ab=ac.substring(0,22);
}}ab=ab+"<br>"+aa;}else{ab=ac;}}else{ab=Z;}return ab;}},navigation:{buttonOptions:{x:20}},exporting:{enabled:enableExport,chartOptions:{title:{text:Ext.String.htmlDecode(Y)}},buttons:{contextButton:{menuItems:menuItemArray,theme:{fill:J,states:{hover:{fill:J}}}}}},};var s=document.getElementById(j);if(s==null||s==undefined){s=Ext.getCmp(j);
}this.highchart=jQuery.extend(true,this.defaults,W);var o=[];if(r["DataSet"]==""||r["DataSet"]=="null"||r["DataSet"]=="undefined"||r["DataSet"]==undefined){h=false;if(s!=null){s.innerHTML=myImgHtml;}}else{this.highchart.series=r["DataSet"];this.highchart.chart.renderTo=j;}},drawErrorMsg:function(q){var n='<center><div style="margin:20% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div class="commonErrorMsgText">No data found</div></div></center>';
var o=document.getElementById(q);if(o!=null){o.innerHTML=n;}},drawChart:function(){var n=new Date();if(h){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));
new Highcharts.Chart(this.highchart,function(o){if(!b){jQuery(".showLegend").click(function(){o.legendToggle();});}else{jQuery("#showLegend").click(function(){o.legendToggle();});}});}}};return l;}function getHighChartsBarInstanceForEndUserDashboard(d,a,b){return getEndUserDashboardBarInstance(d,a,b);
}function getEndUserDashboardBarInstance(h,b,d){var a=true;var g=null;if(h.indexOf("summary")>-1){g=100;}var f={highchart:null,defaults:{chart:{height:b-50,width:d,plotBorderWidth:0,plotBorderColor:"#e5e5e5",backgroundColor:"transparent",spacingBottom:1,plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"xy",ignoreHiddenSeries:false,events:{load:function(j){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,},navigator:{enabled:false},yAxis:{border:0,labels:{formatter:function(){var j=Highcharts.numberFormat(this.value,4,".","");j=(parseFloat(j));return j;},style:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},showLastLabel:true,},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},symbolWidth:15,},labels:{itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},tooltip:{shared:true,borderColor:"black",valueDecimals:4,style:{color:"black",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false},credits:{enabled:false},xAxis:{tickWidth:0,border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,ordinal:false,labels:{style:{color:"#636363",fontWeight:"Normal",fontFamily:"Roboto",fontSize:"11px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:true,startOnTick:false,useHTML:false,tickPixelInterval:50,},title:{enabled:true,}},title:{text:"",offset:"",margin:0},series:{}},setData:function(F,O,D,Q){F=(!Ext.isEmpty(F.dataXML))?F.dataXML:F;
var j="";var C=(Ext.isEmpty(Q))?"bar":Q;var K=false;if(C=="stackedColumn"){K=true;}var m=0;var J=null;var o=null;if(F["MaxValue"]!=null&&F["MaxValue"]!=""&&F["MaxValue"]!=undefined&&F["MaxValue"]!="undefined"){o=F["MaxValue"];}var R=0;if(K&&F["labelStep"]!=null&&F["labelStep"]!=undefined&&F["labelStep"]!=""){R=F["labelStep"];
}var z=new Object();z["fontFamily"]="Roboto";z["fontSize"]="10px";z["yFontClr"]="#636363";z["xfontClr"]="#636363";z["yfontFmy"]="Roboto";z["xfontFmy"]="Roboto";z["yfontSize"]="10px";z["xfontSize"]="10px";z["xfontWgt"]="normal";z["yfontWgt"]="normal";z["ylabelFontClr"]="#636363";z["xlabelfontClr"]="#636363";
z["ylabelfontFmy"]="Roboto";z["xlabelfontFmy"]="Roboto";z["ylabelfontSize"]="10px";z["xlabelfontSize"]="10px";z["ylabelfontWgt"]="500";z["xlabelfontWgt"]="normal";z["legFontClr"]="#636363";z["legFontFmy"]="Roboto";z["legFontSize"]="10px";z["legFontWgt"]="normal";z["capFontClr"]="#2a292a";z["capFontFmy"]="Roboto";
z["capFontSize"]="13px";z["capFontWgt"]="normal";z["LegendPosition"]="center";var N="",B="",u=false;u=(Ext.isEmpty(F["showLegend"]))?false:F["showLegend"];z["bgColor"]=F["bgColor"];z["plotBgColor"]=F["plotBgColor"];z["fontColor"]=F["fontColor"];z["gridLineColor"]="#363636";z["LegendFont "]=F["LegendFont"];
B=F["xAxisLabel"];if(Ext.isEmpty(F["styles"])){z["fontFamily"]=F["fontName"];z["fontSize"]=F["fontsize"];N=F["yAxisLabel"];xaxisTitle=F["xAxisLabelName"];z["LegendPosition"]=F["LegendPosition"];}else{if(F.hasOwnProperty("fontName")){z["fontFamily"]=F["fontName"];}if(F.hasOwnProperty("fontsize")){z["fontSize"]=F["fontsize"];
}N=F["yAxisLabel"];xaxisTitle=F["xAxisLabelName"];z["LegendPosition"]=F["LegendPosition"];var t=F["styles"];if(!Ext.isEmpty(t["legendStyle"])){z["legFontClr"]=t["legendStyle"].COLOR;z["legFontFmy"]=t["legendStyle"].FAMILY;z["legFontSize"]=t["legendStyle"].SIZE;z["legFontWgt"]=t["legendStyle"].WEIGHT;
}if(!Ext.isEmpty(t["title"])){z["capFontClr"]=t["title"].COLOR;z["capFontFmy"]=t["title"].FAMILY;z["capFontSize"]=t["title"].SIZE;z["capFontWgt"]=t["title"].WEIGHT;}if(!Ext.isEmpty(t["yaxis"])){z["yfontClr"]=t["yaxis"].COLOR;z["yfontFmy"]=t["yaxis"].FAMILY;z["yfontSize"]=t["yaxis"].SIZE;z["yfontWgt"]=t["yaxis"].WEIGHT;
}if(!Ext.isEmpty(t["xaxis"])){z["xfontClr"]="#636363";z["xfontFmy"]=t["xaxis"].FAMILY;z["xfontSize"]=t["xaxis"].SIZE;z["xfontWgt"]=t["xaxis"].WEIGHT;}if(!Ext.isEmpty(t["yaxislabel"])){z["ylabelfontClr"]=t["yaxislabel"].COLOR;z["ylabelfontFmy"]=t["yaxislabel"].FAMILY;z["ylabelfontSize"]=t["yaxislabel"].SIZE;
z["ylabelfontWgt"]=t["yaxislabel"].WEIGHT;}if(!Ext.isEmpty(t["xaxislabel"])){z["xlabelfontClr"]=t["xaxislabel"].COLOR;z["xlabelfontFmy"]=t["xaxislabel"].FAMILY;z["xlabelfontSize"]=t["xaxislabel"].SIZE;z["xlabelfontWgt"]=t["xaxislabel"].WEIGHT;}}if(z["bgColor"]==null||z["bgColor"]==""||z["bgColor"]=="null"){z["bgColor"]="transparent";
}if(z["plotBgColor"]==null||z["plotBgColor"]==""||z["plotBgColor"]=="null"){z["plotBgColor"]="#ffffff";}if(z["fontColor"]==null||z["fontColor"]==""||z["fontColor"]=="null"){z["fontColor"]="#636363";}if(z["gridLineColor"]==null||z["gridLineColor"]==""||z["gridLineColor"]=="null"){z["gridLineColor"]="#e5e5e5";
}N=(N==null||N=="")?"":N;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?"":xaxisTitle;legx=90,legy=100;legAlign="right";if(z["LegendFont"]==null||z["LegendFont"]==""||z["LegendFont"]=="null"){z["LegendFont"]="Roboto";}if(C!=null&&C=="bar"){dataLabelColor="#c0c0c0";m=10;J=21;legx=0;legy=0;legAlign="top";
}N=(N==null||N=="")?((!Ext.isEmpty(F["yAxisLabel"]))?F["yAxisLabel"]:""):N;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?((!Ext.isEmpty(F["xAxisLabelName"]))?F["xAxisLabelName"]:""):xaxisTitle;B=(B==null||B=="")?"":B;legendWidth=(z["LegendPosition"]=="right")?190:300;needLegendFormat=(z["LegendPosition"]=="right")?"true":"false";
maxLegendHeight=(z["LegendPosition"]=="right")?null:50;valign=(z["LegendPosition"]=="right")?"middle":"top";var U=F["title"];var k=(Ext.isEmpty(F["tick"]))?true:F["tick"];U=(U==null||U=="")?"":U;var s=(C=="bar"&&U!="")?40:20;var H=F["fromPage"];var r=document.getElementById(h);var q="normal";var l=0;
var M=-0.065;var w=0.1;var S=F["DataSet"];var L=(Ext.isEmpty(F["enableClick"]))?false:F["enableClick"];var n=false;z["plotBgColor"]="transparent";var x=((strSkin=="Dark"||strSkin=="dark"))?"white":"#000000";var T=((strSkin=="Dark"||strSkin=="dark"))?'<span style="color:white">{point.y}</span> ':'<span style="color:{point.color}">{point.y}</span> ';
if(C!=null&&C=="column"){q=null;l=-90;}var P=0;var A=0;if(K){l=270;P=30;A=2;C="column";q="normal";n=true;z["xlabelfontSize"]="12px";s=40;}else{if(C=="bar"){A=-5;}}if(C!=null&&C=="pie"){strpointFormat="";}else{strpointFormat="<b>:{point.y}</b>";}if(S!=null&&S.length>=1){calx=(d/S.length)+40;var E=S[0].data;
if(E.length<3){M=0.2;w=0.4;}}var G={chart:{type:C,backgroundColor:z["bgColor"],plotBackgroundColor:z["plotBgColor"],plotBorderColor:z["gridLineColor"],marginTop:s,events:{click:function(V){if(V.srcElement.firstChild==null||V.srcElement.firstChild==undefined){if(D!="null"&&D!="undefined"&&D!=""&&D!=undefined&&D!="close"){loadMaximizedView(D);
}else{if(D=="close"){closeMaximizedView();}}}}}},title:{text:Ext.String.htmlDecode(U),offset:"",margin:15,style:{color:z["capFontClr"],fontFamily:z["capFontFmy"],fontSize:z["capFontSize"],fontWeight:z["capFontWgt"]}},tooltip:{valueDecimals:4,formatter:function(){var V="";var X=Highcharts.numberFormat(this.y,4,".","");
var W=X.split(".");if(W.length>1){if(W[1]=="0000"){X=W[0];}}if(Ext.isEmpty(this.point)){if(this.x==""||this.x=="null"||this.x=="undefined"||this.x==undefined){V+='<b><span style="color:'+x+'">'+X+"</span></b>";}else{if(!Ext.isEmpty(this.points)&&!Ext.isEmpty(this.points[0])&&!Ext.isEmpty(this.points[0].key)){V+='<b><span style="color:'+x+'">'+this.points[0].key+"  :  "+X+"</span></b>";
}else{V+='<b><span style="color:'+x+'">'+this.x+"  :  "+X+"</span></b>";}}}else{V+=(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+": <b>"+this.point.y+"</b></span> ":'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.legendLabel)+"</span>";
}return V;}},yAxis:{max:o,gridLineWidth:1,endOnTick:k,gridLineColor:z["gridLineColor"],lineColor:z["gridLineColor"],labels:{style:{fontFamily:z["yfontFmy"],fontSize:z["yfontSize"],color:z["yfontClr"],fontWeight:z["yfontWgt"],}},title:{text:Ext.String.htmlDecode(N),style:{color:z["ylabelfontClr"],fontWeight:z["ylabelfontWgt"],fontFamily:z["ylabelfontFmy"],fontSize:z["ylabelfontSize"],}},tickPositioner:function(aa,V){if(!K){var X=aa,ab=[];
this.tickAmount=1;var W=false;var Y=this.tickInterval;var Z=0;if(aa==V){if(V>1){V=V+1;}else{if(V==0){V=V+1;Z=0;W=true;}else{V=V+0.1;}}}var ac=1;while(X<=V){if(ac==2&&W){ab.push(Z);}else{ab.push(X);}X+=Y;ac++;}if(!W){ab.push(X);}return ab;}}},xAxis:{categories:B,min:0,tickWidth:0,gridLineWidth:0,gridLineColor:z["gridLineColor"],lineColor:z["gridLineColor"],lineWidth:1,labels:{rotation:l,tickmarkPlacement:"on",x:A,y:P,step:R,style:{width:"100px",fontFamily:z["xfontFmy"],fontSize:z["xfontSize"],color:z["xfontClr"],fontWeight:z["xfontWgt"],},formatter:function(){var X=(!Ext.isEmpty(H)&&(H=="insideView"||virtualTab=="virtualTab"||virtualTab=="vLive"))?16:32;
var Y=this.value;var W=Y.toString();if(Y!=null){var V=W.charAt(0);if(V==V.toUpperCase()){if(Y.length>11){var W=Y.substring(11);if(W.length>3){Y=Y.substring(0,11)+"...";}}}else{if(Y!=null&&Y.length>X){var W=Y.substring(X);if(W.length>3){Y=Y.substring(0,X)+"...";}}}}return Y;}},title:{text:Ext.String.htmlDecode(xaxisTitle),offset:70,style:{fontFamily:z["xlabelfontFmy"],fontSize:z["xlabelfontSize"],color:z["xlabelfontClr"],fontWeight:z["xlabelfontWgt"],},},},plotOptions:{pie:{borderWidth:0,size:"80%",allowPointSelect:true,cursor:"pointer",dataLabels:{connectorColor:"#C0C0C0",softConnector:false,enabled:true,distance:7,style:{color:z["fontColor"],fontWeight:"500",fontFamily:z["fontFamily"],fontSize:"11px",textOutline:false,textShadow:false}},tooltip:{valueDecimals:4,pointFormat:'<span style="color:{point.color}">{point.y}</span> ',formatter:function(){if(!Ext.isEmpty(this.point)){if(this.point.hasOwnProperty("legendLabel")){return(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+": <b>"+this.point.y+"</b></span> ":'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.legendLabel)+"</span>";
}}}},point:{events:{click:function(){}},}},bar:{pointPadding:0.11,pointWidth:J,dataLabels:{style:{textOutline:false,color:z["fontColor"],fontWeight:"500",fontSize:"11px",fontFamily:z["fontFamily"],textShadow:false}},tooltip:{valueDecimals:4,pointFormat:'<span style="color:{point.color}">{point.y}</span> '},point:{events:{click:function(V){if(!Ext.isEmpty(V.point)&&L){var W=V.point.linkUrl;
if(W!=""||W!="null"||W!="undefined"||W!=undefined){document.location.href=W;}}}}}},column:{borderWidth:0,pointPadding:0.2,stacking:q,dataLabels:{rotation:l,y:-5,x:3,style:{textOutline:false,textShadow:false}}},series:{borderWidth:0,stacking:q,groupPadding:M,pointPadding:w,dataLabels:{enabled:true,inside:n,style:{textOutline:false,color:z["fontColor"],fontWeight:"500",fontFamily:z["fontFamily"],textShadow:false}},states:{hover:{enabled:true}},minPointLength:m}},legend:{layout:"vertical",align:legAlign,verticalAlign:"top",y:legx,x:legy,itemMarginTop:5,itemMarginBottom:5,enabled:u,itemStyle:{color:z["legFontClr"],fontFamily:z["legFontFmy"],fontSize:z["legFontSize"],fontWeight:z["legFontWgt"]},labelFormatter:function(){var V=Ext.String.htmlDecode(this.name);
if(V.length>30&&needLegendFormat=="true"){c=0;strval="";while(c<V.length){strval+=V.substring(c,c+30)+"<br>";c=c+30;}V=strval;}return V;},}};var I='<table width="100%" height="100%"><tr><td align="center" valign="middle">'+errImgSrc+"</td></tr></table>";var r=document.getElementById(h);this.highchart=jQuery.extend(true,this.defaults,G);
var v=[];if(F["DataSet"]==""||F["DataSet"]=="null"||F["DataSet"]=="undefined"||F["DataSet"]==undefined){a=false;if(r!=null){r.innerHTML=I;}}else{this.highchart.series=F["DataSet"];this.highchart.chart.renderTo=h;}},drawChart:function(){if(a){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});
this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;new Highcharts.Chart(this.highchart);}}};return f;}function getLineChartForMyDashboard(h,b,d){var a=true;var f=null;
var g={highchart:null,defaults:{chart:{height:b,width:d,plotBorderWidth:0,plotBorderWidth:0,backgroundColor:"transparent",plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"x",ignoreHiddenSeries:false,backgroundColor:"transparent"},rangeSelector:{enabled:false},global:{useUTC:true},yAxis:{border:0,lineWidth:0,gridLineWidth:0},xAxis:{labels:{rotation:270,style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"10px",}}},navigator:{enabled:false},exporting:{enabled:false},credits:{enabled:false}},setData:function(K,T,J,V,O){var j="";
var H=V;var n=0;var Q=null;var r=null;if(K["yAxisMaxValue"]!=null&&K["yAxisMaxValue"]!=""&&K["yAxisMaxValue"]!=undefined&&K["yAxisMaxValue"]!="undefined"){r=K["yAxisMaxValue"];}var W=0;if(K["labelStep"]!=null&&K["labelStep"]!=undefined&&K["labelStep"]!=""){W=K["labelStep"];}var l=((strSkin=="Dark"||strSkin=="dark"))?"#c0c0c0":"#2a292a";
var S="",G="",A=false;var N=new Array();N=K["xAxisLabel"];var v=true;if(K!=null&&K.hasOwnProperty("hideLegend")){hideLegend=K["hideLegend"];if(hideLegend){v=false;}}S=(S==null||S=="")?"":S;var B=0;if(K.hasOwnProperty("dispNegatives")&&K["dispNegatives"]=="true"){B=null;}var P=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){P=0;
B=null;r=null;}if(B!=null&&r!=null&&(B==r)){r=B+1;}this.minYVal=B;var s=(Ext.isEmpty(K.subTitle))?"":K.subTitle;var x=270;var X=27;var I=-2;S=(S==null||S=="")?((!Ext.isEmpty(K["yAxisLabel"]))?K["yAxisLabel"]:""):S;var ab=K["title"];var k=(Ext.isEmpty(K["tick"]))?true:K["tick"];ab=(ab==null||ab=="")?"":ab;
var z=(H=="bar"&&ab!="")?40:20;var M=K["fromPage"];var u=document.getElementById(h);var t="normal";var m=0;var R=-0.065;var D=0.1;var aa=K["DataSet"];var o=false;var U=0;var F=-5;var Z=10;var ac="";if(O){ac="initial";I=-20;X=24;offSets=5;x=2;Z=3;}var q=1;var Y="transparent";if(!Ext.isEmpty(aa)){q=aa.length;
Y=(q==1)?aa[0]["color"]:"white";}var E=(strSkin=="Light")?"#2a292a":"#c0c0c0";var L={chart:{type:H,hasUserSize:false,backgroundColor:"transparent",plotBackgroundColor:"transparent",events:{click:function(ad){if(ad.srcElement.firstChild==null||ad.srcElement.firstChild==undefined){if(J!="null"&&J!="undefined"&&J!=""&&J!=undefined&&J!="close"){loadMaximizedView(J);
}else{if(J=="close"){closeMaximizedView();}}}}}},title:{text:"",},tooltip:{enabled:true,valueDecimals:4,itemStyle:{color:E,},formatter:function(){if(!Ext.isEmpty(this.point)){var ad="";var af=Highcharts.numberFormat(this.point.y,4,".","");var ae=af.split(".");if(ae.length>1){if(ae[1]=="0000"){af=ae[0];
}}if(this.point.series.name!=""&&this.point.series.name!=undefined){ad+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.series.name)+" :  "+af+"</span></b><br/>";}return ad;}},shared:false},yAxis:[{max:r,gridLineWidth:0,lineWidth:1,min:B,minPadding:P,gridLineColor:"#525252",lineColor:"#525252",labels:{formatter:function(){var ad=Highcharts.numberFormat(this.value,4,".","");
ad=(parseFloat(ad));return ad;},style:{fontFamily:"Roboto",fontSize:"11px",color:"#c0c0c0"}},title:{text:Ext.String.htmlDecode(S),style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px"}}},{lineWidth:1,opposite:true,title:"",lineColor:"#525252"}],xAxis:{tickInterval:1,gridLineWidth:1,lineWidth:1,min:0,tickWidth:0,minPadding:0.02,maxPadding:0,gridLineColor:"#525252",lineColor:"#525252",tickmarkPlacement:"on",labels:{x:I,y:X-15,rotation:x,style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px"},formatter:function(){return N[this.value];
}},},plotOptions:{series:{fillOpacity:0.9,states:{hover:{enabled:true}},connectNulls:false,smoothed:true,lineWidth:2,plotGridLine:1,marker:{enabled:false}}},legend:{y:Z,enabled:v,verticalAlign:"top",backgroundColor:"transparent",maxHeight:40,layout:"horizontal",borderWidth:0,y:5,x:5,adjustChartSize:false,navigation:{arrowSize:5,buttonOptions:{x:20},style:{color:l,fontFamily:"Roboto",fontSize:"11px"}},itemStyle:{color:l,fontFamily:"Roboto",fontSize:"12px"},labelFormatter:function(){var ad=Ext.String.htmlDecode(this.name);
if(ad.length>30){c=0;strval="";while(c<ad.length){strval+=ad.substring(c,c+30)+"<br>";c=c+30;}ad=strval;}return ad;}}};var w='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">No measures available</div></div></div>';
var u=document.getElementById(h);var C=[];if(K["DataSet"]==""||K["DataSet"]=="null"||K["DataSet"]=="undefined"||K["DataSet"]==undefined){a=false;if(u!=null){u.innerHTML=w;}}else{this.highchart=jQuery.extend(true,this.defaults,L);this.highchart.series=K["DataSet"];this.highchart.chart.renderTo=h;}},drawChart:function(){if(a){Highcharts.setOptions({lang:{thousandsSep:""}});
Highcharts.setOptions({global:{useUTC:true}});this.highchart=jQuery.extend(true,this.highchart,getMyDashboardThemeFor(strSkin));this.highchart.chart.spacing=[0,0,15,0];this.highchart.chart.marginTop=5;this.highchart.chart.marginRight=2;this.highchart.yAxis.min=this.minYVal;this.highchart.yAxis.title="";
new Highcharts.Chart(this.highchart);}}};return g;}function getGuageChartsForMyDashboard(j,f,d,b,h){var g=true;var a={highchart:null,defaults:{chart:{type:"solidgauge",backgroundColor:"transparent",plotBackgroundColor:"transparent",width:d,height:b,backgroundColor:"transparent",events:{load:function(){if(h&&typeof(h)==="function"){h();
}}}},exporting:{enabled:false},credits:{enabled:false},pane:{center:["50%","65%"],size:"99%",startAngle:-90,endAngle:90,background:{backgroundColor:(strSkin=="Light")?"#eaeaea":"#595959",borderColor:"transparent",innerRadius:"60%",outerRadius:"100%",shape:"arc"}},tooltip:{enabled:false}},setData:function(o){var C='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
if(Ext.isEmpty(o)){}else{var s=(Ext.isEmpty(o["guageData"]["bgColor"]))?"transparent":o["guageData"]["bgColor"];var F=(Ext.isEmpty(o["unit"]))?"":"("+o["unit"]+")";var q=(Ext.isEmpty(o["title"]))?"":o["title"];q=(Ext.isEmpty(q))?"":q+" "+F;var D=(Ext.isEmpty(o["showGaugeCircle"]))?"no":o["showGaugeCircle"];
var l=(Ext.isEmpty(o["guageData"]["fontColor"]))?"":o["guageData"]["fontColor"];var O=(strSkin=="Light")?"#2a292a":"#333333";var M=(Ext.isEmpty(o["guageData"]["fontName"]))?"Roboto":o["fontName"];var G=(Ext.isEmpty(o.subTitle))?"":o.subTitle;var q=(Ext.isEmpty(o["title"]))?"":o["title"];q=elipseTitle(q,22);
var L=(Ext.isEmpty(o["useHtml"]))?false:o["useHtml"];if(q!=null&&q!=""){q=(Ext.isEmpty(o["unit"]))?q:q+"("+o["unit"]+")";}G=elipseTitle(G,15);if(L){var x=(Ext.isEmpty(o["title"]))?"":o["title"];var m=(Ext.isEmpty(o.subTitle))?"":o.subTitle;q='<div style="text-align:center;"><div data-qtip="'+x+'" style="font-family:Roboto;font-weight:500;color:'+O+';font-size:12px;">'+q+"</div></div>";
G='<div style="text-align:center;"><div data-qtip="'+m+'" style="font-family:Roboto;color:'+O+';font-size:12px;">'+G+"</div></div>";}if(s==null||s==""||s=="null"||s=="undefined"){s="#ffffff";}if(l==null||l==""||l=="null"||l=="undefined"){l="black";}if(M==null||M==""||M=="null"||M=="undefined"){M="Roboto";
}var N=0;if(f!=null&&(f=="InsideViewDashboard"||f=="virtualTabUpperPanel")){N=5;}if(f!=null&&f=="myDashboard"){s="transparent";}var P="65%";if(j!=null&&j.indexOf("TopNGaugeChart")>-1){P="55%";}var J=(Ext.isEmpty(o["toolTipText"]))?"":o["toolTipText"];var A="#ffffff";var n="#2a292a";if(strSkin!=null&&strSkin.toLowerCase()=="dark"){A="#161616";
n="#c6c6c6";}var I=o["enableDrilldownLink"];var w=0;if(!Ext.isEmpty(o["maxValueForDial"])){w=parseInt(o["maxValueForDial"]);}else{var z=0;if(!Ext.isEmpty(o["guageData"]["data"])){z=o["guageData"]["data"];}if(z>=0&&z<=100){w=100;}else{if(z>=100&&z<=200){w=200;}else{w=500;}}}var t="";if(!Ext.isEmpty(o["unit"])){t=o["unit"];
}var v=null;var k=null;var K=-90;var H=90;var u="60%";var k=null;if(D!=null&&D!=""&&D=="yes"){v=new Object();v={solidgauge:{innerRadius:"65%",dataLabels:{y:-20,borderWidth:0,useHTML:true,style:{color:l,fontFamily:M,fontSize:"10px",textOutline:false,textShadow:false}}},};k=new Object();k={};K=0;H=360;
P="50%";u="65%";}else{v=new Object();v={solidgauge:{dataLabels:{y:0,borderWidth:0,useHTML:true,style:{color:l,fontFamily:M,fontSize:"10px",textOutline:false,textShadow:false}}},gauge:{dataLabels:{enabled:false},borderWidth:0,pivot:{radius:2.55,backgroundColor:(strSkin=="Light")?"white":"#404040",borderWidth:1.75,borderColor:(strSkin=="Light")?"black":"#e5e5e5"},dial:{baseLength:"10%",baseWidth:7,backgroundColor:(strSkin=="Light")?null:"#e5e5e5",radius:"100%",rearLength:"1%",borderColor:null,borderWidth:0,topWidth:1}}};
k=new Object();k={type:"gauge",data:o["guageData"]["data"]};}var E={chart:{type:"solidgauge",backgroundColor:s,plotBackgroundColor:s,marginTop:null,marginLeft:0,marginRight:0,spacingTop:0,spacingLeft:0,spacingRight:0},exporting:{enabled:false},credits:{enabled:false},subtitle:{useHTML:L,text:Ext.String.htmlDecode(G),},title:{useHTML:L,text:Ext.String.htmlDecode(q),},pane:{center:["50%",P],size:"99%",startAngle:K,endAngle:H,background:{backgroundColor:(strSkin=="Light")?((Highcharts.theme&&Highcharts.theme.background2)||"#eaeaea"):"#616161",innerRadius:u,borderWidth:0,outerRadius:"100%",shape:"arc"}},tooltip:{backgroundColor:A,borderWidth:0,enabled:true,pointFormat:'<span style="color:'+n+' !important; ">'+J+"</span>",style:{color:n}},yAxis:{stops:o["stopsArr"],lineWidth:0,minorTickInterval:null,tickPixelInterval:400,tickWidth:0,tickPositions:[0,w],startOnTick:true,endOnTick:true,title:{y:-70},style:{color:l,fontFamily:M,fontSize:"10px",},min:0,max:w,title:{text:""},labels:{y:16,formatter:function(){return"";
}}},plotOptions:v};var B='<div style="margin:12% 0 auto 25%"><img class="iconInformation" /></div>';var r=document.getElementById(j);if(r==null||r==undefined){r=Ext.getCmp(j);}if(o["guageData"]==""||o["guageData"]=="null"||o["guageData"]=="undefined"||o["guageData"]==undefined){g=false;if(r!=null){r.innerHTML=B;
}}else{this.highchart=jQuery.extend(true,this.defaults,E);this.highchart.series=[{name:o["guageData"]["name"],data:o["guageData"]["data"],dataLabels:{formatter:function(){if(I){var T=true;var V="";var Q="";var Z="";if(j!=null&&j!=undefined&&(j.indexOf("_chart")>0)){Z=j.substring(0,j.indexOf("_chart"));
}if(j!=null&&j!=undefined&&(j.indexOf("_CNT")>0)){Z=j.substring(0,j.indexOf("_CNT"));}var R=Ext.getCmp(Z);if(R.dialHeight!=null||R.dialHeight!=undefined){V=R.dialHeight;Q=R.dialWidth;}else{V=b;Q=d;}if(D!=null&&D!=""&&D=="yes"){if(Q<133||V<135){T=false;}}else{if(Q<148||V<155){T=false;}}var X="";if(T){X='<div class="dialchartvalues" style="text-align:center;padding-top:10px"><span style="font-weight:500;font-family:Roboto;font-size:15px;color:'+O+';cursor:pointer" ';
}else{X='<div class="dialchartvalues" style="text-align:center;padding-top:10px"><span style="font-weight:500;font-family:Roboto;font-size:12px;color:'+O+';cursor:pointer" ';}var U=o["layerModelUrl"];var W=o["goToPage"];if(U!=null&&U!=undefined&&U!="null"&&U!=""){if(f!=null&&f=="myDashboard"){X=X+" onclick=\"javascript:dialOnClick('"+o["layerModelUrlId"]+"');\" ";
}else{if(f!=null&&(f=="virtualTabUpperPanel"||f=="InsideViewDashboard")){X=X+" onclick=\"javascript:dialOnclick('"+o["layerModelUrlId"]+"');\" ";}else{if(W!=null&&W=="layerModel"){X=X+" onclick=\"javascript:wayToLayerModel('"+U+"');\" ";}}}}var Y=this.y;if(!T){var S=Y.toString();if(S.indexOf(".")>0){Y=Ext.util.Format.round(Y,1);
}}X=X+" >"+this.y+"</span></div>";}else{var X='<div style="text-align:center;padding-top:10px"><span style="font-weight:500;font-family:Roboto;font-size:15px;color:'+O+';" >'+this.y+"</span></div>";}return X;}},cursor:I?"pointer":"",tooltip:{},events:{click:function(){var R=o["layerModelUrl"];var Q=o["goToPage"];
if(I&&(R!=null&&R!=undefined&&R!="null"&&R!="")){if(f!=null&&f=="myDashboard"){dialOnClick(o["layerModelUrlId"]);}else{if(f!=null&&(f=="virtualTabUpperPanel"||f=="InsideViewDashboard")){dialOnclick(o["layerModelUrlId"]);}else{if(Q!=null&&Q=="layerModel"){wayToLayerModel(R);}}}}}}},k];this.highchart.chart.renderTo=j;
}}},drawChart:function(){if(g){new Highcharts.Chart(this.highchart);}}};return a;}function getMyDashboardCombinationChart(h,d,j,f){var g=true;var a;var b=false;var k=false;var l=(strSkin=="Light")?"#2a292a":"#c0c0c0";var m={highchart:null,defaults:{chart:{plotBorderWidth:0,plotBorderColor:"#C0C0C0",backgroundColor:"#ffffff",plotBackgroundColor:"white",ignoreHiddenSeries:false,plotShadow:false,shadow:false,zoomType:"x",backgroundColor:"transparent",events:{load:function(n){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},lang:{contextButtonTitle:"Print/Download Chart"},navigator:{enabled:false},yAxis:[{border:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:50,opposite:true,labels:{formatter:function(){return(this.value>0?" ":"")+this.value;
},style:{color:"black",fontFamily:"Roboto",fontSize:"11px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,},{border:0,lineWidth:0,gridLineWidth:1,tickPixelInterval:50,labels:{formatter:function(){return(this.value>0?" ":"")+this.value;},style:{color:"black",fontFamily:"Roboto",fontSize:"11px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,}],plotOptions:{series:{states:{hover:{enabled:true,lineWidth:2,}},connectNulls:false,smoothed:true,lineWidth:2,marker:{enabled:false}},line:{shadow:false,linewidth:10}},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{color:"black",fontFamily:"Roboto",fontSize:"11px",},symbolWidth:15},labels:{itemStyle:{color:"black",fontFamily:"Roboto",fontSize:"11px",}},tooltip:{valueDecimals:4,style:{color:"black",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",}},exporting:{enabled:false,chartOptions:{title:{text:""}}},credits:{enabled:false},xAxis:{border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,type:"datetime",ordinal:false,labels:{rotation:270,style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"11px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:false,startOnTick:false,useHTML:false,tickPixelInterval:75,},title:{enabled:true,offset:""}},series:{hover:{enabled:true},marker:{enabled:false,states:{hover:{enabled:true,lineWidthPlus:0}}},dataGrouping:{enabled:false}}},setData:function(az,am,T,ar,ap){var ad="Roboto";
var M="#c0c0c0";var F="11";var n="500";var ak="";var D="line";var L=(strSkin=="Light")?"#f7f7f7":"#828282";var ay=az["yAxisTitle"];var aE=new Date();var V=Ext.Date.format(aE,"m.d.Y.H.i.s");ak=tooltipDateFormate(am);var av="";ymax=az["max"];ymin=0;var A=(Ext.isEmpty(az["useHtml"]))?false:az["useHtml"];
fontFamily=az["fontName"];fontSize=az["fontsize"];startTime=az["xmin"];LegendPosition=az["legendPosition"];xLabel=az["axislabel"];LegendFont=az["LegendFont"];xAxisDisplay=az["xAxisDisplay"];var aH=az["fmts"];var at=az["isTrendGraph"];if(Ext.isEmpty(at)){at=false;}fontFamily="Roboto";LegendFont="Roboto";
xLabel=(xLabel==null||xLabel=="")?"":xLabel;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;fontSize=(fontSize==null||fontSize=="")?"11px":fontFamily+"px";startTime=(startTime==null||startTime=="")?null:startTime;LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;
LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;aH=(aH==null||aH=="")?"HH:mm":aH;av=getTimeLineOutputFormat(aH);legendWidth=(LegendPosition=="right")?150:300;var ao=(at==true)?2:4;maxLegendHeight=(LegendPosition=="right")?null:50;valign=(LegendPosition=="right")?"middle":"top";legendLayout=(LegendPosition=="right")?"vertical":"horizontal";
isThresholdLine=(!Ext.isEmpty(az["isThresholdComparison"]))?az["isThresholdComparison"]:false;chartTitle=az["title"];enableExport=true;lessWidth=55;A=(az["DataSet"].length>10)?true:false;ymax=(!isThresholdLine&&ymax==0)?1:null;var ab="",Q="",ag="",s="",R="",aG="",al="",aB="";plotPanelColor="#C0C0C0";
if(!Ext.isEmpty(az["styles"])){plotPanelColor=(!Ext.isEmpty(az["styles"]["panelLineStyle"]))?az["styles"]["panelLineStyle"].COLOR:"#C0C0C0";}xlineWidth=1;xGridLineWidth=1;ylineWidth=1;yGridLineWidth=1;if(isThresholdLine){ylineWidth=1;yGridLineWidth=0;xlineWidth=1;xGridLineWidth=1;}ab=(Ext.isEmpty(ab))?ad:ab;
Q=(Ext.isEmpty(Q))?M:Q;ag=(Ext.isEmpty(ag))?F:ag;s=(Ext.isEmpty(s))?n:s;var aw="rgba(255, 255, 255, 0.85)";var N=az["DataSet"].length;var ax=az["DataSet"].length;aw=(N==1)?az["DataSet"][0]["color"]:aw;var u=(N<=2)?200:0;var Y=az["exportTitle"];var aD=false;aD=az["enableTitle"];chartTitle=(aD)?az["title"]:"";
var aa="";if(!Ext.isEmpty(az["fromPage"])){aa=az["fromPage"];}var G=(aa=="seum")?true:false;if(ap=="bottom"){valign="middle";y=5;legendWidth=100;enableExport=false;legendLayout="right";LegendPosition="center";maxLegendHeight=20;var aj=chartTitle.split(":");if(aj!=null&&aj!=undefined&&aj.length>0){chartTitle=chartTitle.substring(chartTitle.lastIndexOf(":")+1);
}}if(Ext.isEmpty(Y)){Y=chartTitle;}var C=(Ext.isEmpty(C))?Y:C;C=C+" "+V;if(N<=3){valign="top";y=(Ext.isEmpty(az["smallGraph"]))?20:0;if(ap=="bottom"){legendWidth=200;u=(N<=2)?100:0;}else{legendWidth=500;u=200;}LegendPosition="";legendLayout="horizontal";maxLegendHeight=40;y=(Ext.isEmpty(az["smallGraph"])&&G)?2:y;
}else{y=5;valign="middle";legendWidth=150;LegendPosition="right";legendLayout="vertical";maxLegendHeight=null;}if(ar!=undefined&&!ar){xLabel="";}var q="datetime";var Z=null;var B=3;var ae=false;var w=null;var aK=true;var X=az["legendEnabled"];var ac=az["isSysDashboard"];var aC=(Ext.isEmpty(az["isBigCombination"]))?false:az["isBigCombination"];
var U=(aC)?15:5;aK=X;var v="";var P="";var o=false;var af=Ext.ComponentQuery.query("#showLegend").length;var ai=Ext.ComponentQuery.query("#showLegend")[(af-1)];if(!Ext.isEmpty(Ext.getCmp("showLegend"))){o=Ext.getCmp("showLegend").getValue();b=true;}if(ai!="undefined"&&ai!=undefined){o=ai.getValue();}o=(G)?true:o;
aK=(G)?true:aK;k=o;var t=(Ext.isEmpty(az["dashboardName"]))?"":az["dashboardName"];var aq=[10,15,0,10];if(!Ext.isEmpty(t)&&t=="rum"){o=(Ext.isEmpty(az["enableRumLegend"]))?false:az["enableRumLegend"];aq=[10,15,0,15];}if(ac!=null&&ac){o=true;maxLegendHeight="200px";legendWidth=100;}rotVal=270;if(aH=="%H:%M"){v=33;
P=60;}else{v=51;P=75;rotVal=-45;}if(xAxisDisplay=="horizontal"){v=13;P=5;rotVal=2;}var W=0;if(az.hasOwnProperty("dispNegatives")&&az["dispNegatives"]==true){W=null;}var J=null;if(!Ext.isEmpty(isYaxisBasedOnData)&&(isYaxisBasedOnData==true||isYaxisBasedOnData=="true")){J=0;W=null;ymax=null;}if(W!=null&&ymax!=null&&(W==ymax)){ymax=W+1;
}var z=(!Ext.isEmpty(az["showLastLabel"]))?az["showLastLabel"]:true;var au=(Ext.isEmpty(az["isLookBack"]))?false:az["isLookBack"];legendWidth=(au)?200:legendWidth;Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});var r=true;if((az["enableDrilldownLink"]!=null)&&!Ext.isEmpty(az["enableDrilldownLink"])){r=az["enableDrilldownLink"];
}var H="pointer";if(r==false||r=="false"){H="default";}var ah=null;var x=az["yAxisLblsArr"];if(x!=null&&!Ext.isEmpty(x)){var O=(strSkin=="Light")?"#969696":"#c0c0c0";var aJ=((strSkin=="light"||strSkin=="Light"))?"#e1e1e1":"#666666";var E=az["isSameUnitForSeries"];if(x.length>1){ah=new Array();for(var S=0;
S<x.length;S++){var I=null;var aF=O;var aA=x[S];if(!E){I=aA["yAxisLbl"];aF=aA["color"];}else{I=aA["yAxisLbl"];if(I!=undefined&&I=="%"){I="Percentage (%)";}else{I="("+I+")";}}if(S!=1){ah.push({max:ymax,opposite:true,min:W,minPadding:J,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{style:{color:O,fontWeight:"normal",fontFamily:"Roboto",fontSize:"11px",},align:"left",x:10,y:3,formatter:function(){var aL=Highcharts.numberFormat(this.value,ao,".","");
aL=(parseFloat(aL));return aL;}},title:{text:I,rotation:270,x:4,style:{color:aF,fontFamily:"Roboto",fontSize:"11px",}},gridLineColor:aJ,lineColor:aJ,minorGridLineColor:aJ,tickColor:aJ});}else{ah.push({max:ymax,min:W,minPadding:J,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{style:{color:O,fontWeight:"normal",fontFamily:"Roboto",fontSize:"11px",},align:"right",x:-10,y:3,formatter:function(){var aL=Highcharts.numberFormat(this.value,ao,".","");
aL=(parseFloat(aL));return aL;}},title:{text:I,rotation:270,x:-5,style:{color:aF,fontFamily:"Roboto",fontSize:"11px",}},gridLineColor:aJ,lineColor:aJ,minorGridLineColor:aJ,tickColor:aJ});}}}else{ah=new Object();var aA=x[0];var I=aA["yAxisLbl"];if(E){if(I!=undefined&&I=="%"){I="Percentage (%)";}else{I="("+I+")";
}}ah={max:ymax,min:W,minPadding:J,lineWidth:ylineWidth,gridLineWidth:yGridLineWidth,gridLineColor:plotPanelColor,lineColor:plotPanelColor,labels:{style:{color:O,fontWeight:"normal",fontFamily:"Roboto",fontSize:"11px",},align:"right",x:-10,y:3,formatter:function(){var aL=Highcharts.numberFormat(this.value,ao,".","");
aL=(parseFloat(aL));return aL;}},title:{text:I,rotation:270,x:-5,style:{color:O,fontFamily:"Roboto",fontSize:"11px",}},gridLineColor:aJ,lineColor:aJ,minorGridLineColor:aJ,tickColor:aJ};}}var an={chart:{plotBorderColor:plotPanelColor,events:{click:function(aM){if(!Ext.isEmpty(aM.srcElement)&&(aM.srcElement.firstChild==null||aM.srcElement.firstChild==undefined)){if(T!="null"&&T!="undefined"&&T!=""&&T!=undefined&&T!="close"){loadMaximizedView(T);
}else{if(T=="close"){closeMaximizedView();}}}if(!Ext.isEmpty(jQuery(aM.target)[0])){var aL=(jQuery(aM.target)[0].textContent);if(aL.indexOf("Reset")>-1){zoomPageRefresh(false);}}}},load:function(){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");
},selection:function(aL){if(aL.xAxis){if(!Ext.isEmpty(aL.xAxis[0])){var aM=aL.xAxis[0].axis.zoomEnabled;if(aM||aM=="true"){zoomPageRefresh(true);}}}}},tooltip:{enabled:true,xDateFormat:ak,valueDecimals:ao,borderWidth:1,formatter:function(){if(!Ext.isEmpty(this.point)){var aL="";aL='<span style="color:'+l+'">'+Highcharts.dateFormat(ak,this.point.x,true)+"</span><br/>";
var aN=Highcharts.numberFormat(this.point.y,ao,".","");var aM=aN.split(".");if(aM.length>1){if(aM[1]=="0000"){aN=aM[0];}}if(this.point.series.name!=""&&this.point.series.name!=undefined&&aK){aL+='<b><span style="color:'+this.point.series.color+'">'+Ext.String.htmlDecode(this.point.series.name)+" :  "+aN+"</span></b><br/>";
}return aL;}}},title:{text:Ext.String.htmlDecode(chartTitle),},yAxis:ah,xAxis:{type:q,labels:{x:4,rotation:rotVal,formatter:function(){return Highcharts.dateFormat(aH,this.value);}},title:{text:Ext.String.htmlDecode(xLabel),offset:P,}},plotOptions:{column:{stacking:null,groupPadding:0.1,pointPadding:0.1,},series:{threshold:null,borderColor:"",pointWidth:U,hover:{enabled:true},marker:{enabled:ae,states:{hover:{enabled:true,lineWidthPlus:0}}},stacking:Z,pointStart:startTime,cursor:H,events:{click:function(aL){if(r&&this.hasOwnProperty("userOptions")){if(this.userOptions.layerModelUrl!="-"){wayToLayerModel(this.userOptions.layerModelUrl);
}}}}},scatter:{}},legend:{enabled:o,verticalAlign:valign,width:legendWidth,align:LegendPosition,maxHeight:maxLegendHeight,labelFormatter:function(){var aM=Ext.String.htmlDecode(this.name);if(aM!=""&&aM!="undefined"&&aM!="infinity"){aM=this.name;}else{aM="null";}var aP=aM;if(valign=="middle"&&!au){var aO="";
if(aP.length>=20){aO=aP.substring(0,20);var aN=aP.substring(20);aN=aN.trim();while(aN.length>20){aO=aO+"<br>"+aN.substring(0,20);aN=aN.substring(20);}if(aN.length>2){var aL=aN.substring(0,2);if(aL.indexOf(" ")>-1){aO=aP.substring(0,22);}}aO=aO+"<br>"+aN;}else{aO=aP;}}else{aO=aM;}return aO;}},navigation:{buttonOptions:{x:3}},exporting:{enabled:enableExport,chartOptions:{title:{text:Ext.String.htmlDecode(Y)}},buttons:{contextButton:{menuItems:menuItemArray,theme:{fill:L,states:{hover:{fill:L}}}}}}};
var K=document.getElementById(h);if(K==null||K==undefined){K=Ext.getCmp(h);}this.highchart=jQuery.extend(true,this.defaults,an);var aI=[];var ax=0;if(az["DataSet"]==""||az["DataSet"]=="null"||az["DataSet"]=="undefined"||az["DataSet"]==undefined){g=false;if(K!=null){K.innerHTML='<div style="height:100%;width:100%;display:table"><div class="msgFont" style="display:table-cell;vertical-align:middle"> <div class="iconInformation" style="margin:0px auto"></div><div style="text-align:center">No measures available</div></div></div>';
}}else{this.highchart.series=az["DataSet"];this.highchart.chart.renderTo=h;}this.highchart.chart.spacing=[0,5,20,5];K=null;delete K;},drawChart:function(){if(g){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.column.prototype.drawLegendSymbol;
Highcharts.seriesTypes.spline.prototype.drawLegendSymbol=Highcharts.seriesTypes.column.prototype.drawLegendSymbol;this.highchart=jQuery.extend(true,this.highchart,getMyDashboardCombinationTheme(strSkin));this.highchart.chart.marginTop=5;new Highcharts.Chart(this.highchart,function(n){if(!b){jQuery(".showLegend").click(function(){n.legendToggle();
});}else{jQuery("#showLegend").click(function(){n.legendToggle();});}});}}};delete jQuery(".showLegend");delete jQuery("#showLegend");return m;}function getDonutChartForMyDashboard(b,h,a){var d={lines:15,angle:0.2,lineWidth:0.15,pointer:{length:0.9,strokeWidth:0.035,color:"#000000"},limitMax:"false",colorStart:"#35c8c2",colorStop:"#35c8c2",strokeColor:"#EEEEEE",generateGradient:false};
var g=document.getElementById(b);var f=new Donut(g).setOptions(d);f.maxValue=h;f.animationSpeed=32;f.set(a);}function getHighChartsGuageEnd(f,a,b,g,k){try{var l=true;var h=(strSkin=="Light")?"#eaeaea":"#464646";var j={highchart:null,defaults:{chart:{type:"solidgauge",backgroundColor:"transparent",plotBackgroundColor:"transparent",width:g,height:b,backgroundColor:"transparent",},exporting:{enabled:false},credits:{enabled:false},pane:{center:["50%","65%"],size:"99%",startAngle:-90,endAngle:90,background:{backgroundColor:(Highcharts.theme&&Highcharts.theme.background2)||h,innerRadius:"60%",outerRadius:"100%",shape:"arc"}},gauge:{dataLabels:{enabled:false},},pivot:{radius:5.75,backgroundColor:(strSkin=="Light")?"white":"#404040",borderWidth:1.75,borderColor:(strSkin=="Light")?"black":"#e5e5e5"},dial:{baseLength:"10%",baseWidth:7,backgroundColor:(strSkin=="Light")?null:"#e5e5e5",radius:"104%",rearLength:"1%",borderWidth:1,topWidth:1},tooltip:{enabled:false}},setData:function(t){var B='<center><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
var q=(strSkin=="Light")?"#eaeaea":"#464646";if(Ext.isEmpty(t)){Ext.getCmp(f).update(B);}else{var E=null;var G=null;if(t.chart_type!=undefined&&t.chart_type!=null){E="gauge";G=t["guageData"]["data"];}var x=(Ext.isEmpty(t["guageData"]["bgColor"]))?"transparent":t["guageData"]["bgColor"];var D=(Ext.isEmpty(t["unit"]))?"":"("+t["unit"]+")";
var u=(Ext.isEmpty(t["title"]))?"":t["title"];u=(Ext.isEmpty(u))?"":u+" "+D;var n=(Ext.isEmpty(t["guageData"]["fontColor"]))?"":t["guageData"]["fontColor"];var J=(Ext.isEmpty(t["guageData"]["fontName"]))?"Roboto":t["fontName"];var F=(Ext.isEmpty(t.subTitle))?"":t.subTitle;var u=(Ext.isEmpty(t["title"]))?"":t["title"];
var I=(Ext.isEmpty(t["useHtml"]))?false:t["useHtml"];if(u.indexOf("%")>-1){u=u;}else{if(u!=null&&u!=""){u=(Ext.isEmpty(t["unit"]))?u:u+"("+t["unit"]+")";}}u="";var z="";if(I){u=elipseTitle(u,22);F=elipseTitle(F,15);var A=(Ext.isEmpty(t["title"]))?"":t["title"];var r=(Ext.isEmpty(t.subTitle))?"":t.subTitle;
u='<div style="text-align:center;"><div data-qtip="'+A+'" style="font-family:Roboto;font-weight:500;">'+u+"</div></div>";F='<div style="text-align:center;"><div data-qtip="'+r+'" style="font-family:Roboto;">'+F+"</div></div>";}else{z=(Ext.isEmpty(t["strSkinclr"]))?"":t["strSkinclr"];}if(x==null||x==""||x=="null"||x=="undefined"){x="#ffffff";
}if(n==null||n==""||n=="null"||n=="undefined"){n="black";}if(J==null||J==""||J=="null"||J=="undefined"){J="Roboto";}var K=0;if(a!=null&&(a=="InsideViewDashboard"||a=="virtualTabUpperPanel")){K=5;}var s="";if(a!=null&&(a=="virtualTabUpperPanel"||a=="InsideViewDashboard")){s="dialOnclick('"+t["layerModelUrlId"]+"')";
}else{if(t["goToPage"]!=null&&t["goToPage"]=="layerModel"){s="wayToLayerModel('"+t["layerModelUrl"]+"')";}}var w=(strSkin=="Light")?"#606060":"#c0c0c0";var m=t.guageData.data;var H="-";if(m!=null&&m[0]>0){H='<div onclick="javascript:'+s+'" style="text-align:center"><span style="font-weight:500;cursor:pointer;font-family:Roboto;font-size:10px;color:"'+w+";>{y}</span></div>";
}if(!Ext.isEmpty(t["empty"])&&t["empty"]=="true"){H="-";}var o="65%";if(t["innersize"]!=undefined&&t["innersize"]!=null){o=t["innersize"];}var C={chart:{width:g,height:b,type:"solidgauge",renderTo:f,backgroundColor:"transparent",plotBackgroundColor:"transparent",marginTop:K,spacing:[0,0,0,0],events:{click:function(){var N=t["layerModelUrl"];
var M=t["goToPage"];if(N!=null&&N!=undefined&&N!="null"&&N!=""){if(M!=null&&M=="layerModel"){wayToLayerModel(N);}}}}},exporting:{enabled:false},credits:{enabled:false},subtitle:{useHTML:I,text:Ext.String.htmlDecode(F),style:{color:z,fontFamily:"Roboto",fontSize:"12px",}},title:{useHTML:I,text:"",y:-1,style:{color:z,fontFamily:"Roboto",fontWeight:"500",fontSize:"11px",align:"left"}},pane:{center:["50%","75%"],size:"99%",startAngle:-90,endAngle:90,background:{backgroundColor:(Highcharts.theme&&Highcharts.theme.background2)||q,innerRadius:o,outerRadius:"100%",shape:"arc",borderWidth:0}},tooltip:{enabled:false},yAxis:{stops:t["stopsArr"],lineWidth:0,minorTickInterval:null,tickPixelInterval:400,tickWidth:0,title:{y:-70},labels:{y:16,style:{color:w}},style:{color:n,fontFamily:J,fontSize:"10px",},showFirstLabel:false,showLastLabel:false,min:0,max:100,title:{text:""}},plotOptions:{solidgauge:{dataLabels:{y:25,borderWidth:0,useHTML:true,style:{color:n,fontFamily:J,fontSize:"10px",textOutline:false,textShadow:false}}},gauge:{dataLabels:{enabled:false},pivot:{radius:2.75,backgroundColor:(strSkin=="Light")?"white":"#404040",borderWidth:1.75,borderColor:(strSkin=="Light")?"black":"#e5e5e5"},dial:{baseLength:"10%",baseWidth:7,backgroundColor:(strSkin=="Light")?null:"#e5e5e5",radius:"104%",rearLength:"1%",borderWidth:1,topWidth:1}}},series:[{name:t["guageData"]["name"],data:t["guageData"]["data"],cursor:"pointer",innerRadius:o,dataLabels:{format:H},tooltip:{},events:{click:function(){var N=t["layerModelUrl"];
var M=t["goToPage"];if(N!=null&&N!=undefined&&N!="null"&&N!=""){if(a!=null&&a=="myDashboard"){dialOnClick(t["layerModelUrlId"]);}else{if(a!=null&&(a=="virtualTabUpperPanel"||a=="InsideViewDashboard")){dialOnclick(t["layerModelUrlId"]);}else{if(M!=null&&M=="layerModel"){wayToLayerModel(N);}}}}}}},{type:E,data:G}]};
this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));try{this.highchart=jQuery.extend(true,this.defaults,C);var v=new Highcharts.Chart(this.highchart);return v;}catch(L){}}},drawChart:function(){if(l){new Highcharts.Chart(this.highchart);}}};return j;}catch(d){}}function getDonutChartsInstanceforUED(container_Id,chartHeight,chartWidth){var drawChart=true;
var maxValue=null;if(container_Id.indexOf("summary")>-1){maxValue=100;}var ErHighStockChart={highchart:null,defaults:{chart:{height:chartHeight,width:chartWidth,plotBorderWidth:0,backgroundColor:"transparent",plotBackgroundColor:"transparent",plotShadow:false,shadow:false,zoomType:"xy",ignoreHiddenSeries:false,spacing:[10,10,10,10],events:{load:function(event){jQuery(".highcharts-legend-item rect").attr("height","8").attr("y","5");
jQuery(".highcharts-legend-item rect").attr("width","8").attr("x","8");}}},rangeSelector:{enabled:false},global:{useUTC:true,},navigator:{enabled:false},yAxis:{endOnTick:true,showFirstLabel:true,startOnTick:true,max:maxValue,border:0,lineWidth:1,labels:{formatter:function(){var val=Highcharts.numberFormat(this.value,4,".","");
val=(parseFloat(val));return val;},style:{color:"black",fontFamily:"Roboto",fontWeight:"500",fontSize:"11px",},},showLastLabel:true,},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,y:5,x:5,width:300,adjustChartSize:false,navigation:{arrowSize:5},itemStyle:{},symbolWidth:15,},labels:{itemStyle:{},},tooltip:{shared:true,borderColor:null,valueDecimals:4,style:{},},exporting:{enabled:false},credits:{enabled:false},xAxis:{tickWidth:0,border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,ordinal:false,endOnTick:true,showFirstLabel:true,startOnTick:true,labels:{style:{},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:true,startOnTick:false,useHTML:false,tickPixelInterval:50,},title:{enabled:true,}},title:{text:"",offset:"",margin:0},series:{}},setData:function(jsonData,currentDateFormat,maxURL,ctype){var isMyDashboardHealthPieChart=false;
var bigPieChart=false;var isDoNut=false;if(ctype!=null&&ctype=="healthPieChart"){ctype="pie";isMyDashboardHealthPieChart=true;}else{if(ctype!=null&&ctype=="bgdonut"){ctype="pie";isDoNut=true;bigPieChart=true;}else{if(ctype!=null&&ctype=="donut"){ctype="pie";isDoNut=true;}}}var isEndOntick=(Ext.isEmpty(jsonData["tick"]))?true:jsonData["tick"];
jsonData=(!Ext.isEmpty(jsonData.dataXML))?jsonData.dataXML:jsonData;var toolTipFmt="";var chartType=(Ext.isEmpty(ctype))?"bar":ctype;var isStackedColumn=false;if(chartType=="stackedColumn"){isStackedColumn=true;}var isStackedBar=false;if(chartType=="stackedBar"){isStackedBar=true;}var setMinPointLength=0;
var setPointWidth=null;var maxVal=null;if(jsonData["MaxValue"]!=null&&jsonData["MaxValue"]!=""&&jsonData["MaxValue"]!=undefined&&jsonData["MaxValue"]!="undefined"){maxVal=jsonData["MaxValue"];}var labelStep=0;if(isStackedColumn&&jsonData["labelStep"]!=null&&jsonData["labelStep"]!=undefined&&jsonData["labelStep"]!=""){labelStep=jsonData["labelStep"];
}var pieSize="80%";var pieInnerSizeL="";var pieOuterSizeL="";if(jsonData["innersize"]!=null&&jsonData["innersize"]!=undefined&&jsonData["innersize"]!=""){pieInnerSizeL=jsonData["innersize"];}else{pieInnerSizeL="155%";}if(jsonData["outersize"]!=null&&jsonData["outersize"]!=undefined&&jsonData["outersize"]!=""){pieOuterSizeL=jsonData["outersize"];
}else{pieOuterSizeL="190%";}var pieDataLabelsEnable=true;var showMonitorHomeBottomPanel=true;showMonitorHomeBottomPanel=(Ext.isEmpty(jsonData["showMonitorHomeBottomPanel"]))?false:jsonData["showMonitorHomeBottomPanel"];var isLogonDonut=(Ext.isEmpty(jsonData["logonDonut"]))?false:jsonData["logonDonut"];
var pieVerticalAlign="";var pieAllowPointSelect=true;var pieMargin=15;var tooltipFontSize=12;if(isDoNut){pieSize=pieOuterSizeL;pieInnerSize=pieInnerSizeL;pieDataLabelsEnable=(Ext.isEmpty(jsonData["dataLabels"]))?false:jsonData["dataLabels"];pieVerticalAlign="middle";pieMargin=0;pieAllowPointSelect=false;
tooltipFontSize=jsonData["tooltipFontSize"];}tooltipFontSize=(tooltipFontSize==null||tooltipFontSize==undefined)?12:tooltipFontSize;var barStyleAttrbs=new Object();barStyleAttrbs["fontFamily"]="Roboto";barStyleAttrbs["fontSize"]="10px";barStyleAttrbs["yFontClr"]="#636363";barStyleAttrbs["xfontClr"]="#636363";
barStyleAttrbs["yfontFmy"]="Roboto";barStyleAttrbs["xfontFmy"]="Roboto";barStyleAttrbs["yfontSize"]="10px";barStyleAttrbs["xfontSize"]="10px";barStyleAttrbs["xfontWgt"]="normal";barStyleAttrbs["yfontWgt"]="normal";barStyleAttrbs["ylabelFontClr"]="#636363";barStyleAttrbs["xlabelfontClr"]="#636363";barStyleAttrbs["ylabelfontFmy"]="Roboto";
barStyleAttrbs["xlabelfontFmy"]="Roboto";barStyleAttrbs["ylabelfontSize"]="10px";barStyleAttrbs["xlabelfontSize"]="10px";barStyleAttrbs["ylabelfontWgt"]="500";barStyleAttrbs["xlabelfontWgt"]="normal";barStyleAttrbs["legFontClr"]="#636363";barStyleAttrbs["legFontFmy"]="Roboto";barStyleAttrbs["legFontSize"]="10px";
barStyleAttrbs["legFontWgt"]="normal";barStyleAttrbs["capFontClr"]="#000";barStyleAttrbs["capFontFmy"]="Roboto";barStyleAttrbs["capFontSize"]="23px";barStyleAttrbs["capFontWgt"]="500";barStyleAttrbs["LegendPosition"]="center";var yaxisTitle="",xLabel="",showLegend=false;showLegend=(Ext.isEmpty(jsonData["showLegend"]))?false:jsonData["showLegend"];
barStyleAttrbs["bgColor"]=jsonData["bgColor"];barStyleAttrbs["plotBgColor"]=jsonData["plotBgColor"];barStyleAttrbs["fontColor"]=jsonData["fontColor"];barStyleAttrbs["gridLineColor"]=jsonData["gridLineColor"];barStyleAttrbs["LegendFont "]=jsonData["LegendFont"];xLabel=jsonData["xAxisLabel"];if(Ext.isEmpty(jsonData["styles"])){barStyleAttrbs["fontFamily"]=jsonData["fontName"];
barStyleAttrbs["fontSize"]=jsonData["fontsize"];yaxisTitle=jsonData["yAxisLabel"];xaxisTitle=jsonData["xAxisLabelName"];barStyleAttrbs["LegendPosition"]=jsonData["LegendPosition"];if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);}}else{if(jsonData.hasOwnProperty("fontName")){barStyleAttrbs["fontFamily"]=jsonData["fontName"];
}if(jsonData.hasOwnProperty("fontsize")){barStyleAttrbs["fontSize"]=jsonData["fontsize"];}yaxisTitle=jsonData["yAxisLabel"];xaxisTitle=jsonData["xAxisLabelName"];barStyleAttrbs["LegendPosition"]=jsonData["LegendPosition"];if(jsonData.hasOwnProperty("showlegendFont")){showLegend=eval(jsonData["showlegendFont"]);
}var stylesJson=jsonData["styles"];if(!Ext.isEmpty(stylesJson["legendStyle"])){barStyleAttrbs["legFontClr"]=stylesJson["legendStyle"].COLOR;barStyleAttrbs["legFontFmy"]=stylesJson["legendStyle"].FAMILY;barStyleAttrbs["legFontSize"]=stylesJson["legendStyle"].SIZE;barStyleAttrbs["legFontWgt"]=stylesJson["legendStyle"].WEIGHT;
}if(!Ext.isEmpty(stylesJson["title"])){barStyleAttrbs["capFontClr"]=stylesJson["title"].COLOR;barStyleAttrbs["capFontFmy"]=stylesJson["title"].FAMILY;barStyleAttrbs["capFontSize"]=stylesJson["title"].SIZE;barStyleAttrbs["capFontWgt"]=stylesJson["title"].WEIGHT;}if(!Ext.isEmpty(stylesJson["yaxis"])){barStyleAttrbs["yfontClr"]=stylesJson["yaxis"].COLOR;
barStyleAttrbs["yfontFmy"]=stylesJson["yaxis"].FAMILY;barStyleAttrbs["yfontSize"]=stylesJson["yaxis"].SIZE;barStyleAttrbs["yfontWgt"]=stylesJson["yaxis"].WEIGHT;}if(!Ext.isEmpty(stylesJson["xaxis"])){barStyleAttrbs["xfontClr"]=stylesJson["xaxis"].COLOR;barStyleAttrbs["xfontFmy"]=stylesJson["xaxis"].FAMILY;
barStyleAttrbs["xfontSize"]=stylesJson["xaxis"].SIZE;barStyleAttrbs["xfontWgt"]=stylesJson["xaxis"].WEIGHT;}if(!Ext.isEmpty(stylesJson["yaxislabel"])){barStyleAttrbs["ylabelfontClr"]=stylesJson["yaxislabel"].COLOR;barStyleAttrbs["ylabelfontFmy"]=stylesJson["yaxislabel"].FAMILY;barStyleAttrbs["ylabelfontSize"]=stylesJson["yaxislabel"].SIZE;
barStyleAttrbs["ylabelfontWgt"]=stylesJson["yaxislabel"].WEIGHT;}if(!Ext.isEmpty(stylesJson["xaxislabel"])){barStyleAttrbs["xlabelfontClr"]=stylesJson["xaxislabel"].COLOR;barStyleAttrbs["xlabelfontFmy"]=stylesJson["xaxislabel"].FAMILY;barStyleAttrbs["xlabelfontSize"]=stylesJson["xaxislabel"].SIZE;barStyleAttrbs["xlabelfontWgt"]=stylesJson["xaxislabel"].WEIGHT;
}}if(barStyleAttrbs["bgColor"]==null||barStyleAttrbs["bgColor"]==""||barStyleAttrbs["bgColor"]=="null"){barStyleAttrbs["bgColor"]="transparent";}if(barStyleAttrbs["plotBgColor"]==null||barStyleAttrbs["plotBgColor"]==""||barStyleAttrbs["plotBgColor"]=="null"){barStyleAttrbs["plotBgColor"]="#ffffff";}if(barStyleAttrbs["fontColor"]==null||barStyleAttrbs["fontColor"]==""||barStyleAttrbs["fontColor"]=="null"){barStyleAttrbs["fontColor"]="#c0c0c0";
}if(barStyleAttrbs["gridLineColor"]==null||barStyleAttrbs["gridLineColor"]==""||barStyleAttrbs["gridLineColor"]=="null"){barStyleAttrbs["gridLineColor"]="#C0C0C0";}yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?"":yaxisTitle;xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?"":xaxisTitle;legx=90,legy=100;
legAlign="right";var itemMarginTopVal=5;var itemMarginBottomVal=5;var legendLayout="vertical";var legendMaxHeight=null;if(barStyleAttrbs["LegendFont"]==null||barStyleAttrbs["LegendFont"]==""||barStyleAttrbs["LegendFont"]=="null"){barStyleAttrbs["LegendFont"]="Roboto";}if(chartType!=null&&chartType=="bar"){dataLabelColor="#c0c0c0";
setMinPointLength=10;setPointWidth=21;legx=0;legy=0;legAlign="top";}else{if(chartType!=null&&chartType=="column"){legx=0;legy=0;itemMarginTopVal=0;itemMarginBottomVal=0;legAlign="top";legendLayout="horizontal";legendMaxHeight=40;}}var subTitle=(Ext.isEmpty(jsonData.subTitle))?"":jsonData.subTitle;yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?((!Ext.isEmpty(jsonData["yAxisLabel"]))?jsonData["yAxisLabel"]:""):yaxisTitle;
xaxisTitle=(xaxisTitle==null||xaxisTitle=="")?((!Ext.isEmpty(jsonData["xAxisLabelName"]))?jsonData["xAxisLabelName"]:""):xaxisTitle;xLabel=(xLabel==null||xLabel=="")?"":xLabel;legendWidth=(barStyleAttrbs["LegendPosition"]=="right")?190:300;needLegendFormat=(barStyleAttrbs["LegendPosition"]=="right")?"true":"false";
maxLegendHeight=(barStyleAttrbs["LegendPosition"]=="right")?null:50;valign=(barStyleAttrbs["LegendPosition"]=="right")?"middle":"top";var titVal;if(jsonData["title"]!=null&&jsonData["title"]!=undefined&&jsonData["title"]!=""){titVal=jsonData["title"];}var chartTitle=titVal;var isHtmlTitle=(Ext.isEmpty(jsonData["useHtml"]))?false:jsonData["useHtml"];
chartTitle=(chartTitle==null||chartTitle=="")?"":chartTitle;var marginTopVal=(chartType=="bar"&&chartTitle!="")?45:25;if(chartType!=null&&chartType=="column"){marginTopVal=50;}var fromPage=jsonData["fromPage"];var chartContObj=document.getElementById(container_Id);var stackingVal="normal";var rotateDegree=0;
var setGroupPadding=-0.065;var setPointPadding=0.1;var data=jsonData["DataSet"];var enableClick=(Ext.isEmpty(jsonData["enableClick"]))?false:jsonData["enableClick"];var insideVal=false;barStyleAttrbs["plotBgColor"]="transparent";var tipColor=((strSkin=="Dark"||strSkin=="dark"))?"#c0c0c0":"#2a292a";var tipFormat=((strSkin=="Dark"||strSkin=="dark"))?'<span style="color:white">{point.y}</span> ':'<span style="color:{point.color}">{point.y}</span> ';
var rotYval=0;var rotXval=0;if(chartType!=null&&chartType=="column"){stackingVal=null;rotYval=25;}if(isStackedColumn){rotateDegree=270;rotYval=30;rotXval=2;chartType="column";stackingVal="normal";insideVal=true;var marginTop1=jsonData["marginTop"];if(marginTop1==null||marginTop1=="undefined"||marginTop1==""){marginTopVal=60;
}marginTopVal=marginTop1;}else{if(isStackedBar){rotateDegree=0;chartType="bar";stackingVal="normal";marginTopVal=40;insideVal=true;dataLabelColor="#c0c0c0";setMinPointLength=10;setPointWidth=21;rotXval=-5;}else{if(chartType=="bar"){rotXval=-5;barStyleAttrbs["fontColor"]=(strSkin=="Light")?"#2a292a":"#red";
}}}if(chartType!=null&&chartType=="pie"){barStyleAttrbs["fontColor"]=(strSkin=="Light")?"#2a292a":"#c0c0c0";strpointFormat="";if(chartTitle!=null&&chartTitle!=""){chartTitle=(Ext.isEmpty(jsonData["unit"]))?chartTitle:chartTitle+"("+jsonData["unit"]+")";}}else{strpointFormat="<b>:{point.y}</b>";}if(data!=null&&data.length>=1){calx=(chartWidth/data.length)+40;
var xx=data[0].data;if(xx.length<3){setGroupPadding=0.2;setPointPadding=0.4;}}var yAxisLineWidth=1;if(jsonData!=null&&(jsonData.hasOwnProperty("hideTopGridLine")&&jsonData["hideTopGridLine"]=="true")){yAxisLineWidth=0;}var space=[10,10,10,10];var marginbottom=null;var marginright=null;var mychartwidth=chartWidth;
var mychartheight=chartHeight;var marginTop=null;var isMyDashboard=false;if(fromPage!=null&&fromPage=="MyDashboard"){isMyDashboard=true;}if(!isMyDashboard&&Ext.isEmpty(jsonData["isStateBar"])){var isMaxView=jsonData["isMax"];marginTop=20;if(xLabel.length>=6){isMaxView=eval(isMaxView);if(isMaxView){marginbottom=(mychartheight<=400)?null:(chartHeight-40-(xLabel.length)*(setPointWidth+1));
}else{marginbottom=(chartHeight-20-(xLabel.length)*(setPointWidth+1));}}if(chartType!=null&&chartType=="column"){marginbottom=null;if(chartContObj!=null){chartContObj.style.height="97%";}if(xLabel.length>=6){marginright=chartWidth-20-(xLabel.length)*(setPointWidth+5);}}if(chartType!=null&&chartType=="bar"){mychartwidth=chartWidth;
if(chartContObj!=null){chartContObj.style.width="97%";}}}if(isMyDashboard){marginbottom=null;}if(isMyDashboardHealthPieChart||isLogonDonut||bigPieChart){marginTopVal=null;}var isRumPie=(Ext.isEmpty(jsonData["rumPie"]))?false:true;var spie=false;var chartingOptions={chart:{height:mychartheight,width:mychartwidth,type:chartType,spacing:space,marginBottom:marginbottom,marginTop:marginTopVal,events:{click:function(e){if(e.target.firstChild==null||e.target.firstChild==undefined){if(maxURL!="null"&&maxURL!="undefined"&&maxURL!=""&&maxURL!=undefined&&maxURL!="close"){loadMaximizedView(maxURL);
}else{if(maxURL=="close"){closeMaximizedView();}}}}}},title:{useHTML:isHtmlTitle,text:Ext.String.htmlDecode(chartTitle),align:"center",verticalAlign:"middle",floating:true,zIndex:"-10000"},subtitle:{text:subTitle,style:{}},tooltip:{valueDecimals:4,hideDelay:100,enabled:false,style:{padding:"5px"},formatter:function(){var s="";
var val=Highcharts.numberFormat(this.y,4,".","");var val_ar=val.split(".");if(val_ar.length>1){if(val_ar[1]=="0000"){val=val_ar[0];}}if(isMyDashboardHealthPieChart){s+='<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+"</b></span>";}else{if(Ext.isEmpty(this.point)){if(this.x==""||this.x=="null"||this.x=="undefined"||this.x==undefined){s+='<b><span style="color:'+tipColor+'">'+val+"</span></b>";
}else{s+='<b><span style="color:'+tipColor+'">'+this.x+"  :  "+val+"</span></b>";}}else{var tpn=(Ext.isEmpty(this.point.legendLabel))?this.point.name:this.point.legendLabel;var perTip="";if(isRumPie){if(tpn.indexOf("(")>-1){var tpnfr=tpn.substring(0,tpn.indexOf("("));var tpnsr=tpn.substring(tpn.indexOf(")")+1);
if(tpn!=null&&tpn.indexOf("%")>-1){perTip=" %";tpn=tpnfr+tpnsr;}else{tpn=tpnfr+tpnsr;}}}else{tpn=(Ext.isEmpty(this.point.legendLabel))?this.point.name:this.point.legendLabel;}if(isDoNut){s+=(Ext.isEmpty(this.point.legendLabel))?'<span style="font-size:'+tooltipFontSize+"px;color:"+this.point.color+'">'+Ext.String.htmlDecode(tpn)+': <b style="font-size:'+tooltipFontSize+'px;color:black">'+this.point.y+perTip+"</b></span> ":"<span >"+Ext.String.htmlDecode(tpn)+"</span>";
}else{s+=(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(tpn)+": <b>"+this.point.y+perTip+"</b></span> ":"<span >"+Ext.String.htmlDecode(tpn)+"</span>";}}}return s;}},yAxis:{max:maxVal,gridLineWidth:1,endOnTick:isEndOntick,lineWidth:yAxisLineWidth,startOnTick:true,labels:{style:{}},title:{text:Ext.String.htmlDecode(yaxisTitle),style:{fontSize:barStyleAttrbs["ylabelfontSize"],}},tickPositioner:function(min,max){if(!isStackedColumn&&!isStackedBar){var act=min,ticks=[];
this.tickAmount=1;var flag=false;var interval=this.tickInterval;var second=0;if(min==max){if(max>1){max=max+1;}else{if(max==0){max=max+1;second=0;flag=true;}else{max=max+0.1;}}}var cc=1;while(act<=max){if(cc==2&&flag){ticks.push(second);}else{ticks.push(act);}act+=interval;cc++;}if(!flag){ticks.push(act);
}return ticks;}}},xAxis:{categories:xLabel,min:0,tickWidth:0,gridLineWidth:0,lineWidth:1,tickPixelInterval:75,tickLength:0,endOnTick:true,showFirstLabel:true,startOnTick:true,labels:{rotation:rotateDegree,tickmarkPlacement:"on",x:rotXval,y:rotYval,step:labelStep,style:{width:"100px",whiteSpace:"nowrap"},formatter:function(){var charLen=(!Ext.isEmpty(fromPage)&&(fromPage.toLowerCase()=="insideview"||fromPage.toLowerCase()=="virtualtab"||fromPage.toLowerCase()=="vlive"))?16:32;
charLen=(fromPage=="dashboard")?20:16;var val=this.value;var val2=val.toString();if(val!=null){var firstChar=val2.charAt(0);if(firstChar==firstChar.toUpperCase()){var defLength=11;if(isMyDashboard){defLength=mychartwidth*0.04;defLength=Ext.util.Format.round(defLength,0);if(defLength<11){defLength=11;
}}if(val.length>defLength){var val2=val.substring(defLength);if(val2.length>3){val=val.substring(0,defLength)+"...";}}}else{var defLength=charLen;if(isMyDashboard){defLength=mychartwidth*0.06666;defLength=Ext.util.Format.round(defLength,0);if(defLength<16){defLength=16;}}if(val!=null&&val.length>defLength){var val2=val.substring(defLength);
if(val2.length>3){val=val.substring(0,defLength)+"...";}}}}return val;}},title:{text:"21",align:"center",verticalAlign:"middle",y:40,},},plotOptions:{pie:{size:pieSize,allowPointSelect:pieAllowPointSelect,cursor:"pointer",innerSize:pieInnerSize,dataLabels:{softConnector:false,enabled:pieDataLabelsEnable,distance:7,style:{fontSize:"11px",textOutline:false,textShadow:false}},showInLegend:true,tooltip:{valueDecimals:4,pointFormat:'<span style="color:{point.color}">{point.y}</span> ',formatter:function(){if(!Ext.isEmpty(this.point)){if(this.point.hasOwnProperty("legendLabel")){return(Ext.isEmpty(this.point.legendLabel))?'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.name)+": <b>"+this.point.y+"</b></span> ":'<span style="color:'+this.point.color+'">'+Ext.String.htmlDecode(this.point.legendLabel)+"</span>";
}}}},point:{events:{click:function(){if(isDoNut){return false;}if(isMyDashboardHealthPieChart){var QString=this.options;if(QString!=null&&QString.hasOwnProperty("diagnosisUrl")){var diagnosisUrl=QString["diagnosisUrl"];var openInNewWindow=QString["openInNewWindow"];if(diagnosisUrl!=null&&diagnosisUrl!="-"){if(openInNewWindow){loadPopup(diagnosisUrl);
}else{wayToLayerModel(diagnosisUrl);}}}}}},}},series:{borderWidth:0,shadow:false,stacking:stackingVal,groupPadding:setGroupPadding,pointPadding:setPointPadding,dataLabels:{enabled:pieDataLabelsEnable,inside:insideVal,},states:{hover:{enabled:true}},minPointLength:setMinPointLength}},legend:{layout:legendLayout,align:legAlign,verticalAlign:"middle",y:0,x:225,enabled:false,itemStyle:{},labelFormatter:function(){var retrunvar=Ext.String.htmlDecode(this.name);
if(retrunvar.length>30&&needLegendFormat=="true"){c=0;strval="";while(c<retrunvar.length){strval+=retrunvar.substring(c,c+30)+"<br>";c=c+30;}retrunvar=strval;}return retrunvar;},}};var myhtml='<table width="100%" height="80%"><tr><td align="center" valign="middle">'+errImgSrc+"</td></tr></table>";var chartContObj=document.getElementById(container_Id);
var chartData=[];if(jsonData["DataSet"]==""||jsonData["DataSet"]=="null"||jsonData["DataSet"]=="undefined"||jsonData["DataSet"]==undefined||jsonData.DataSet[0].data==""||jsonData.DataSet[0].data=="null"||jsonData.DataSet[0].data=="undefined"||jsonData.DataSet[0].data==undefined){drawChart=false;if(chartContObj!=null){if(!Ext.isEmpty(jsonData["measureTitle"])){var errHtml='<center><div style="padding:5px;border:0px solid red;font-family:Roboto;font-weight:500;font-size:12px;"><b>'+jsonData["measureTitle"]+'</b></div><span ><img style="margin:20% 0 auto 0" src="/final/images/spacer.gif" class="iconAlert"/></span><span class="rumGraphErrorMsgText">No Traffic Detected</span></center>';
chartContObj.innerHTML=errHtml;}else{chartContObj.innerHTML='<div class="rumErrorPanelBg" style="height:320px;display:block;padding-top:140px;"><table align="center"><tr><td><img style="margin-top:-1px" src="/final/images/spacer.gif" class="iconAlert"/></td><td>&nbsp;<span class="rumGraphErrorMsgText">No Traffic Detected</span></td><tr></table></div>';
}}}else{this.highchart=jQuery.extend(true,this.defaults,chartingOptions);this.highchart.series=jsonData["DataSet"];this.highchart.chart.renderTo=container_Id;}},drawChart:function(){if(drawChart){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});
Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;this.highchart=jQuery.extend(true,this.highchart,null);new Highcharts.Chart(this.highchart);}}};return ErHighStockChart;}function getSparkCharts(j,g,d,h,b){var f=false;if(!Ext.isEmpty(h.isFromVirtualDash)&&h.isFromVirtualDash!=null&&h.isFromVirtualDash!=undefined&&(h.isFromVirtualDash==true||h.isFromVirtualDash=="true")){f=true;
}var a=new Highcharts.Chart({chart:{renderTo:j,type:"line",margin:[0,0,0,0],plotBorderWidth:0,plotBorderColor:"#C0C0C0",ignoreHiddenSeries:false,spacing:[20,5,0,5],plotShadow:false,shadow:false,zoomType:"x",width:g,height:d,backgroundColor:"transparent",events:{click:function(k){if(f){displayBigGraph(b);
}else{sparklineOnclick(b);}}}},title:{text:""},credits:{enabled:false},xAxis:{labels:{enabled:false},tickLength:0,lineWidth:0,maxPadding:0,minPadding:0},yAxis:{maxPadding:0,minPadding:0,gridLineWidth:0,endOnTick:false,lineWidth:0,title:{text:null},labels:{enabled:false}},legend:{enabled:false},tooltip:{enabled:false},plotOptions:{series:{enableMouseTracking:false,connectNulls:false,smoothed:true,lineWidth:1.5,marker:{enabled:false},states:{hover:{enabled:true}}},},series:[h]});
return a;}function getAreaCharts(h,f,d,g,b){var a={chart:{type:g.type,margin:[0,0,0,0],plotBorderWidth:0,plotBorderColor:g.color,ignoreHiddenSeries:false,spacing:[20,5,0,5],plotShadow:false,shadow:false,zoomType:"x",width:f,height:d,backgroundColor:"transparent",events:{click:function(j){try{displayBigGraph(b);
}catch(k){}}}},title:{text:""},credits:{enabled:false},xAxis:{labels:{enabled:false},tickLength:0,lineWidth:0,maxPadding:0,minPadding:0},yAxis:{max:100,maxPadding:0,minPadding:0,gridLineWidth:0,endOnTick:false,lineWidth:0,title:{text:null},labels:{enabled:false}},legend:{enabled:false},tooltip:{enabled:false},plotOptions:{series:{enableMouseTracking:false,connectNulls:false,smoothed:true,lineWidth:1.5,marker:{enabled:false,}},},series:[{color:g.color,data:g.data}]};
return a;}function getSparkChartsforSLA(h,f,d,g,b){var a=new Highcharts.Chart({chart:{renderTo:h,type:"column",margin:[0,0,0,0],plotBorderWidth:0,plotBorderColor:"#C0C0C0",ignoreHiddenSeries:false,spacing:[20,5,0,5],plotShadow:false,shadow:false,zoomType:"x",width:f,height:d,backgroundColor:"transparent",events:{click:function(j){}}},title:{text:""},credits:{enabled:false},xAxis:{labels:{enabled:false},tickLength:0,lineWidth:0,maxPadding:0,minPadding:0},yAxis:{maxPadding:0,minPadding:0,gridLineWidth:0,endOnTick:false,lineWidth:0,title:{text:null},labels:{enabled:false}},legend:{enabled:false},tooltip:{enabled:false},plotOptions:{series:{enableMouseTracking:false,connectNulls:false,smoothed:true,lineWidth:1.5,marker:{enabled:false}},},series:g});
return a;}function getChartForActivityChart(a,f,j,b){var m=[];var g=b[0].data;var h=true;var d=b.showChartTitle;if(b.title!=null&&b.title!=undefined&&b.title!=""){chartTitle=b.title;}if(!d){chartTitle="";}var k;if(strSkin=="Dark"){k="#000000";}else{k="#FFFFFF";}if((b["enableDrilldownLink"]!=null)){h=b["enableDrilldownLink"];
}if(h==false||h=="false"){cursor="default";}for(i=0;i<g.length;i++){m.push({outerRadius:g[i].radius,innerRadius:g[i].innerRadius,shape:"arc",backgroundColor:Highcharts.Color("#cccccc").setOpacity(0.3).get(),borderWidth:0,});}var l=Highcharts.chart(a,{chart:{type:"solidgauge",height:f,width:j,marginTop:null,spacingTop:0,marginBottom:2,backgroundColor:"transparent",},title:{text:Ext.String.htmlDecode(chartTitle),offset:"",margin:15,style:{color:"#c0c0c0",fontFamily:"Roboto",fontSize:"13px"}},subtitle:{text:""},exporting:{enabled:false},credits:{enabled:false},legend:{enabled:false},navigator:{enabled:false},tooltip:{enabled:true,borderWidth:0,backgroundColor:k,shared:true,followPointer:true,fontFamily:"Roboto",fontSize:"11px",style:{color:"#000000",padding:10,fontSize:"11px",},valueDecimals:4,pointFormat:'<span style="color:{point.color}">{point.y}</span> ',formatter:function(){if(!Ext.isEmpty(this.point)){return'<span style="font-size:1em;color:'+this.point.color+';font-weight: 500;">'+Ext.String.htmlDecode(this.point.name)+"</b></span>";
}},},pane:{startAngle:-180,endAngle:90,background:m},yAxis:{min:0,max:100,startAngle:-180,endAngle:90,lineWidth:0,tickPositions:[],},plotOptions:{solidgauge:{dataLabels:{enabled:false},linecap:"square",stickyTracking:false,rounded:false},series:{cursor:"pointer",point:{events:{click:function(){if(h){var r=this.options;
if(r!=null&&r.hasOwnProperty("diagnosisUrl")){var o=r["diagnosisUrl"];var q=r["openInNewWindow"];if(o!=null&&o!="-"){if(q){loadPopup(o);}else{wayToLayerModel(o);}}}}}}}}},series:b},function n(){var t=this.axes[0].pane.center[0]+10;var s=this.axes[0].pane.center[1];var o;if(strSkin=="Dark"){o="#c0c0c0";
}else{o="#969696";}var q=g.length;var r=[];for(i=0;i<q;i++){r[q-i]=(this.series[0].points[i].startR)+s;this.renderer.text('<span style="white-space:nowrap; text-overflow:ellipsis; overflow:hidden;color:'+o+'">'+this.series[0].data[i].name+"</span>").attr({"font-size":"9px","font-family":"Roboto","color":"#969696","data-qtip":this.series[0].data[i].name,"data-qclass":"yellowTip","zIndex":10}).translate(t,r[q-i]).add(this.series[0].group);
}});topPosition=null;return l;}function getHighChartsInstance(g,b,d){var a=true;var f={highchart:null,defaults:{chart:{width:d,height:b,plotBorderWidth:0,plotBorderColor:"#e5e5e5",backgroundColor:"#ffffff",plotBackgroundColor:"white",plotShadow:false,shadow:false,zoomType:"xy",ignoreHiddenSeries:false,},rangeSelector:{enabled:false},global:{useUTC:true,timezoneOffset:timeZoneOffsetVal},navigator:{enabled:false},yAxis:{border:0,minPadding:0,startOnTick:false,gridLineWidth:0,tickPixelInterval:50,labels:{align:"right",x:-10,y:3,formatter:function(){var h=Highcharts.numberFormat(this.value,4,".","");
h=(parseFloat(h));return h;},style:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",textDecoration:"none",whiteSpace:"normal",},},showLastLabel:true,},plotOptions:{},scrollbar:{enabled:false},legend:{verticalAlign:"top",align:"center",layout:"horizontal",borderWidth:0,width:300,adjustChartSize:false,floating:true,navigation:{arrowSize:8,activeColor:"#858585",inactive:"#858585",style:{fontWeight:"500",color:"#858585",fontSize:"9px"}},itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},symbolWidth:14,symbolHeight:6,squareSymbol:false,symbolRadius:6,},labels:{itemStyle:{color:"black",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},tooltip:{shared:true,borderColor:"black",valueDecimals:4,style:{color:"black",padding:10,fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},exporting:{enabled:false},credits:{enabled:false},xAxis:{border:1,lineWidth:1,minPadding:0.02,maxPadding:0.02,type:"datetime",ordinal:false,showLastLabel:true,endOnTick:true,showFirstLabel:true,startOnTick:false,labels:{rotation:270,style:{color:"#636363",fontWeight:"400",fontFamily:"Roboto",fontSize:"10px",},overflow:"justify",showLastLabel:true,endOnTick:true,showFirstLabel:true,startOnTick:false,useHTML:false,tickPixelInterval:50,},title:{enabled:true,}},title:{text:"",offset:"",margin:0},series:{}},setData:function(W,at,s){var aw=W["DataSet"][0]["data"];
var I=regression("linear",aw);var ap=I.equation[0],az=I.equation[1];var ad=[],D=[];aw.forEach(function(m){ad.push(m[0]);D.push(m[1]);});var F=Math.min.apply(null,ad),h=ap*F+az;var al=Math.max.apply(null,ad),M=ap*al+az;var k="";var T="line";k=tooltipDateFormate(at);var G="";ymax=W["maxRange"];var ae=W["commonmaxRange"];
ymin=W["minRange"];fontFamily=W["fontName"];fontSize=W["fontsize"];startTime=W["lowerLimit"];yaxisTitle=W["yLabel"];LegendPosition=W["LegendPosition"];showLegend=W["showlegendFont"];xLabel=W["xLabel"];var aa=W["xLabel"];LegendFont=W["LegendFont"];T=W["chartType"];var l=W["LineWidth"];var ag=W["reportType"];
var C=W["isCapacityCumulationReport"];var Z=W["TimeFormatOut"];var aj=W["showdisconnectedline"];var ay=true;if(aj!=null&&aj=="No"){ay=false;}yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?"":yaxisTitle;YtitleEnable=(yaxisTitle==null||yaxisTitle=="")?false:true;ae=(ae==null||ae==0)?null:ae;ymax=(ymax==null||ymax==0)?null:ymax;
if(yaxisTitle=="%"||yaxisTitle=="(%)"){if(ymax>90){ae=(ae==null||ae==0)?100:ae;}}if(yaxisTitle==null||yaxisTitle==""){spacing=[20,5,0,20];}else{spacing=[20,5,0,20];}if(ae==null||ae==0){ae=ymax;}ymin=(ymin==null)?0:ymin;if(ymin==ymax){ymax=ymin+1;}var n=null;var ah=false;if(ah!=null&&ah=="True"){ymin=null;
n=0;}fontFamily="Roboto";LegendFont="Roboto";var av="rgba(255, 255, 255, 0.85)";if(strSkin=="Dark"||strSkin=="dark"){av="#000000";}else{av="#ffffff";}var ac=0;var R=1;var r=0;var P=0;if(!(W["DataSet"]==""||W["DataSet"]=="null"||W["DataSet"]=="undefined"||W["DataSet"]==undefined)){if(W["DataSet"].length>10&&(LegendPosition==undefined||LegendPosition=="undefined")){LegendPosition="right";
}ac=W["DataSet"].length;if(W["DataSet"].length==1){}P=W["DataSet"].length;}yaxisTitle=(yaxisTitle==null||yaxisTitle=="")?W["ylabel"]:yaxisTitle;l=(l==null||l=="")?1:l;var z=aa;var an=yaxisTitle;if(yaxisTitle!=null&&yaxisTitle.length>0){if(yaxisTitle.length>32){var X=yaxisTitle.substring(32);if(X.length>3){yaxisTitle=yaxisTitle.substring(0,32)+"...";
}}}if(aa!=null&&aa.length>0){if(aa.length>32){var X=aa.substring(32);if(X.length>3){aa=aa.substring(0,32)+"...";}}}if(YtitleEnable==false){YtitleEnable=(yaxisTitle==null||yaxisTitle=="")?false:true;}xLabel=(xLabel==null||xLabel=="")?"":xLabel;xtitleEnable=(xLabel==null||xLabel=="")?false:true;fontFamily=(fontFamily==null||fontFamily=="")?"Roboto":fontFamily;
fontSize=(fontSize==null||fontSize=="")?"10px":fontFamily+"px";startTime=(startTime==null||startTime=="")?null:startTime;LegendPosition=(LegendPosition==null||LegendPosition==""||LegendPosition=="top")?"center":LegendPosition;LegendFont=(LegendFont==null||LegendFont=="")?"Roboto":LegendFont;Z=(Z==null||Z=="")?"HH:mm":Z;
G=getTimeLineOutputFormat(Z);legendWidth=(LegendPosition=="right")?400:400;needLegendFormat=(LegendPosition=="right")?"true":"false";maxLegendHeight=(LegendPosition=="right")?null:37;var v=W["fixXlabel"];var O=document.getElementById(g);if($(O).width()>1000){legendWidth=800;}maxLegendHeight=45;if(((P*8)/37)>1){maxLegendHeight=60;
}if(P<=2){legendWidth=190;}valign=(LegendPosition=="right")?"middle":"top";LegendPosition="center";if(legendWidth>190&&valign=="top"){LegendPosition="right";}var ax=W["chartFor"];var o=W["yAxisLabelYval"];var j="datetime";var aq=null;var ao=false;var u=null;over_line_width=l-2;if(over_line_width==0){over_line_width=l;
}var au="";if(Z=="HH:mm"){au=33;}else{au=51;if(o!=null&&o=="21"){au=21;}}if(xtitleEnable){if(Z=="HH:mm"){au=20;if(o!=null){au=28;}}else{if(Z.indexOf("HH:mm:ss")>-1){au=60;if(o!=null){au=21;}}else{au=21;if(o!=null&&o=="21"){au=21;}}}}if(C){au=51;}if(v!=null&&v!="undefined"&&v!=undefined){au=20;}if(xtitleEnable){spacing=[20,5,10,20];
}var B=document.getElementById(g);var t=true;t=W["reflow"];if(t==null||t=="undefined"||t==undefined){t=true;}var x=W["isCapacityPlanningReport"];if(x!=null&&x!="undefined"&&x!=undefined&&x=="true"){spacing=[20,20,10,20];}var L=false;if(Ext.getCmp("showLegend")!="undefined"&&Ext.getCmp("showLegend")!=undefined){var L=false;
}if(Ext.getCmp("showLegend")!="undefined"&&Ext.getCmp("showLegend")!=undefined){L=Ext.getCmp("showLegend").getValue();}var ak=W["showLegends"];if(ak!=null&&ak=="true"){L=true;}if(T!=null&&T=="stack"){T="area",aq="normal";}if(T!=null&&T=="scatter"){j=null;l=null;ao=true;u={pointFormat:xLabel+":  {point.x}<br>"+xLabel+":  {point.y}"};
}var J=-25;if(!Ext.isEmpty(ag)&&ag=="TCR"){spacing=[35,5,0,20];}var ar=0;var V=document.getElementById(g);if($(V).width()>1000){if(W["DataSet"]!="undefined"&&W["DataSet"]!=undefined&&W["DataSet"]!=null&&W["DataSet"]!=""){if(W["DataSet"].length==1){ar=80;}else{if(W["DataSet"].length==2){ar=280;}else{if(W["DataSet"].length>=3&&W["DataSet"].length<=4){ar=300;
}else{if(W["DataSet"].length>=5&&W["DataSet"].length<=8){ar=110;}else{if(W["DataSet"].length>8){ar=-10;}}}}}}}else{if($(V).width()<1000){if(W["DataSet"]!="undefined"&&W["DataSet"]!=undefined&&W["DataSet"]!=null&&W["DataSet"]!=""){if(W["DataSet"].length==1){ar=80;}else{if(W["DataSet"].length==2){ar=80;
}else{if(W["DataSet"].length>=3&&W["DataSet"].length<=8){ar=0;}else{if(W["DataSet"].length>8){ar=-10;}}}}}}}var U=W["spacingTop"];var aA=W["spacingLeft"];var H=W["marginTop"];if(U==null||U==undefined||U==""){U=20;}if(aA==null||aA==undefined||aA==""){aA=5;}if(H==null||H==undefined||H==""){H=20;}var K=90;
if(Z!=null&&Z=="HH:mm"){K=50;}if(xtitleEnable){K=null;}if(aA=="15"){aA=15;}var A=W["fromPopup"];var w="top";var af=W["ShowLegendinTableFormatforUIData"];var am=W["ShowLegendinTableFormatforUI"];var Q=false;legendWidth=legendWidth+20;if(am!=undefined){Q=true;if(W["DataSet"]!=null&&W["DataSet"].length>0){var S=W["DataSet"].length;
var E=af.length/5;if(E!=undefined&&E>0){S=E;}var ab=(S*24)+50;J=b;maxLegendHeight=ab;if((xLabel!=undefined&&(xLabel.indexOf("MM")>-1)||xLabel=="")){K=ab+70;}else{K=ab+50;}LegendPosition="left";legendWidth=null;b="";H=null;}}if(ymin==0){ymin=0;}var Y={chart:{width:d,height:b,reflow:t,type:T,padding:0,tableFormatLegend:af,marginTop:H,marginBottom:K,events:{load:function(m){if(am!=undefined){create_new_legend(m,true);
}else{$(".highcharts-legend-item rect").attr("height","6").attr("y","7");$(".highcharts-legend-item rect").attr("width","6").attr("x","10");}},}},tooltip:{xDateFormat:k,valueDecimals:4,backgroundColor:av,borderColor:W["DataSet"][0]["color"],formatter:function(){var m="";m=an+":"+this.y+"<br>"+z+":"+this.x;
m='<span style="color:'+this.point.color+'">'+an+":"+this.y+'</span><br><span style="color:'+this.point.color+'">'+z+":"+this.x+"</span>";return m;},},yAxis:{min:ymin,minPadding:n,max:ae,gridLineWidth:r,gridLineColor:"#e5e5e5",lineColor:"#e5e5e5",lineWidth:1,labels:{style:{fontFamily:fontFamily,fontSize:"10px",color:"#636363",fontWeight:"400",}},title:{text:an,enabled:YtitleEnable,style:{color:"#636363",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},},xAxis:{type:j,gridLineWidth:R,gridLineColor:"#e5e5e5",lineColor:"#e5e5e5",lineWidth:1,tickWidth:0,labels:{x:4,y:au,formatter:function(){if(j==null){var m=Highcharts.numberFormat(this.value,4,".","");
m=(parseFloat(m));return m;}else{return Highcharts.dateFormat(G,this.value);}}},tooltip:{enabled:true},title:{text:z,enabled:xtitleEnable,style:{color:"#636363",fontWeight:"500",fontFamily:"Roboto",fontSize:"11px",},},dateTimeLabelFormats:{minute:G,hour:G,day:G,month:G,year:G}},chart:{type:"scatter",zoomType:"xy"},plotOptions:{scatter:{connectNulls:ay,shadow:false,fillOpacity:0.5,lineWidth:l,marker:{radius:5,enabled:ao,},stacking:aq,tooltip:{headerFormat:"<b>{series.name}</b><br>",pointFormat:"{point.x} cm, {point.y} kg"}}},series:[{type:"line",name:"Regression Line",data:[[F,h],[al,M]],color:W["DataSet"][0]["color"],marker:{enabled:false},states:{hover:{lineWidth:0}},enableMouseTracking:false},{color:W["DataSet"][0]["color"],connectNulls:ay,shadow:false,fillOpacity:0.5,lineWidth:l,marker:{radius:5,enabled:ao,symbol:"circle"},stacking:aq,data:aw}],legend:{enabled:L,verticalAlign:w,align:"center",width:legendWidth,align:LegendPosition,y:J,itemStyle:{textAlign:"top",},useHTML:Q,maxHeight:maxLegendHeight,labelFormatter:function(){var m=Ext.String.htmlDecode(this.name);
if(m.length>28&&needLegendFormat=="true"){c=0;strval="";while(c<m.length){strval+=m.substring(c,c+28)+"<br>";c=c+28;}m=strval;}return m;},}};var ai='<table width="100%" height="100%"><tr><td align="center" valign="middle"><img src="/final/images/'+strSkin+'/noMeasureImg_new.png" /></td></tr></table>';
var q='<table width="100%" height="100%"><tr><td align="center" valign="middle"><img src="/final/images/'+strSkin+'/prediction_warning.png" /></td></tr></table>';var B=document.getElementById(g);Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
this.highchart=jQuery.extend(true,this.defaults,Y);var N=[];if(W["DataSet"]==""||W["DataSet"]=="null"||W["DataSet"]=="undefined"||W["DataSet"]==undefined){a=false;if(B!=null){if(W["PredictionStatus"]!="undefined"&&W["PredictionStatus"]!=undefined&&W["PredictionStatus"]=="negative"){B.innerHTML=q;}else{B.innerHTML=ai;
}}}else{this.highchart.chart.renderTo=g;}},drawChart:function(){if(a){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});this.highchart=jQuery.extend(true,this.highchart,getUserThemeFor(strSkin));new Highcharts.Chart(this.highchart,function(h){$("#showLegend-inputEl").click(function(){if(h.options.legend.useHTML){var j=Ext.getCmp("showLegend").getValue();
create_new_legend(h,j);}else{h.legendToggle();}});});}}};return f;}function createCylinderColumnChart(h,d,f){try{var b=true;var g={highchart:null,defaults:{chart:{type:"column",width:f,height:d,backgroundColor:"transparent",borderColor:((strSkin!=null&&strSkin=="Dark")?"":""),options3d:{enabled:true,alpha:10,beta:5,depth:85,viewDistance:25}},title:{text:""},plotOptions:{series:{pointWidth:50,depth:85}},xAxis:{gridLineWidth:0,startOnTick:false,visible:false},yAxis:{gridLineWidth:0,startOnTick:false,tickWidth:1,opposite:"true",left:130,width:110,pointPadding:0.8},exporting:{enabled:false},credits:{enabled:false},series:[]},setData:function(o,l){var m=null;
var k=null;var j=10;var s="true";if(!Ext.isEmpty(o)){m=o[0]["maxVal"];k=o[0]["minVal"];j=o[0]["tickInterval"];s=o[0]["showTooltip"];}var r=document.getElementById(l);var q={chart:{type:"column",options3d:{enabled:true,alpha:10,beta:5,depth:85,viewDistance:25},backgroundColor:"transparent"},title:{stext:""},plotOptions:{series:{pointWidth:50,borderWidth:0,depth:85,stacking:"normal",states:{hover:{enabled:false}},}},legend:{enabled:false},xAxis:{gridLineWidth:0,startOnTick:false,visible:false},yAxis:{title:{text:""},gridLineWidth:0,tickInterval:j,startOnTick:false,tickLength:10,tickWidth:1,max:m,opposite:"true",left:45,width:40,pointPadding:0.8},tooltip:{formatter:function(){var t=this.series.name;
if(t!=null&&t.indexOf("MAX_")>-1){return false;}else{return"<b>"+this.series.name+":"+this.y+"</b>";}}},exporting:{enabled:false},credits:{enabled:false},};if(o==""||o=="null"||o=="undefined"||o==undefined){b=false;if(r!=null){if(!Ext.isEmpty(o["measureTitle"])){var n='<center><div style="padding:5px;border:0px solid red;font-weight:500;font-size:12px;"><b>'+o["measureTitle"]+'</b></div><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';
r.innerHTML=n;}else{r.innerHTML='<center><div style="text-align:center;border:0px solid red;padding:12% 0 1% 6%;width:100%"><div style="margin:12% 0 auto 0"><img class="iconInformation" src="/final/images/spacer.gif"/><div >No measures available</div></div></center>';}}}else{this.highchart=jQuery.extend(true,this.defaults,q);
this.highchart.series=o;this.highchart.chart.renderTo=l;}},drawChart:function(){if(b){Highcharts.setOptions({lang:{thousandsSep:""}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});Highcharts.seriesTypes.line.prototype.drawLegendSymbol=Highcharts.seriesTypes.area.prototype.drawLegendSymbol;
new Highcharts.Chart(this.highchart);}}};}catch(a){console.log(a);}return g;}