anchor.diff:  		</cfif>
   
   		<cfloop item="i" collection="#chartsLabel#">
  -			<div class="chart_margin #chartClass#">
  -				<div style="text-align:center; width:264px; height:165px; padding:7px; border-radius: 25px; border: 2px solid ##898989; -moz-box-sizing: unset !important">
  -					<div style="font-size: 14px;font-weight: bold;">#chartsLabel[i]#</div>
  -					<div id="#StructFind(arguments.chartStruct,"#i#")#" style="width: 250px; height: 130px; margin: 0 auto;"></div>
  +			<cfif structKeyExists(arguments.chartStruct, "#i#")>
  +				<div class="chart_margin #chartClass#">
  +					<div style="text-align:center; width:264px; height:165px; padding:7px; border-radius: 25px; border: 2px solid ##898989; -moz-box-sizing: unset !important">
  +						<div style="font-size: 14px;font-weight: bold;">#chartsLabel[i]#</div>
  +						<div id="#StructFind(arguments.chartStruct,"#i#")#" style="width: 250px; height: 130px; margin: 0 auto;"></div>
  +					</div>
   				</div>
  -			</div>
  +			</cfif>
   		</cfloop>
   	</cffunction>
   
  
positive.code: 					}
  				}
  			</script>
  			<cfif enableTab("metrics")>
  			<script>
  				function requestData(){
  					jQuery.ajax({
  						type: "POST",
  						url: "/lucee-server/admin/debug/chartProcess.cfc?method=sysMetric",
  						success: function(result){
  							var arr =["heap","nonheap", "cpuSystem", "cpuProcess"];
  							$.each(arr,function(index,chrt){
  								window["series_"+chrt] = window[chrt+"Chart"].series[0].data; //*charts*.series[0].data
  								window["series_"+chrt].push(result[chrt]); // push the value into series[0].data
  								window[chrt+"Chart"].series[0].data = window["series_"+chrt];
  								if(window[chrt+"Chart"].series[0].data.length > 60){
  								window[chrt+"Chart"].series[0].data.shift(); //shift the array
  								}
  								window[chrt+"Chart"].xAxis[0].data.push(new Date().toLocaleTimeString()); // current time
  								if(window[chrt+"Chart"].xAxis[0].data.length > 60){
  								window[chrt+"Chart"].xAxis[0].data.shift(); //shift the Time value
  								}
  								window[chrt].setOption(window[chrt+"Chart"]); // passed the data into the chats
  							});
  							setTimeout(requestData, 1000);
  						}
  					})
  				}
  				var dDate=[new Date().toLocaleTimeString()]; // current time
  
  
  				// intialize charts
  				$.each(["heap","nonheap", "cpuSystem", "cpuProcess"], function(i, data){
  					window[data] = echarts.init(document.getElementById(data),'macarons'); // intialize echarts
  					window[data+"Chart"] = {
  						backgroundColor: ["##ffffff"],
  						tooltip : {'trigger':'axis',
  							formatter : function (params) {
  								return 'Series' + "<br>" + params[0][0] + ": " + params[0][2] + "%" + '<br>' +params[0][1] ;
  							}
  						},
  						color: ['##0000FF'],
  						grid : {
  							width: '73%',
  							height: '65%',
  							x:'33px',
  							y:'20px'
  						},
  						xAxis : [{
  							'type':'category',
  							'boundaryGap' : false,
  							'data': [0],
  							splitLine: {
  				               	show: false
  				           	},
  						}],
  						yAxis : [{
  							'type':'value',
  							'min':'0',
  							'max':'100',
  							'splitNumber': 2,
  							splitLine: {
  				               	show: false
  				           	},
  						}],
  						series : [
  							{
  							'name': data +' Memory',
  							'type':'line',
  							smooth:true,
  							itemStyle: {normal: {areaStyle: {type: 'default'}}},
  							'data': [0]
  							}
  						]
  					}; // data
  					window[data].setOption(window[data+"Chart"]); // passed the data into the chats
  				});
  				requestData();
  			</script>
  			</cfif>
  			<cfif enableTab("Reference")>
  				<script>
  
negative.code: ,field("Warn Session size","sessionSize","100",true,{_appendix:"KB",_bottom:"Warn in debugging, if the current session is above the following (in KB) size."},"text50")
  ,group("Metrics Tab","",2)
  ,field("Metrics","tab_Metrics","Enabled",true,"Select the Metrics tab to show on debugOutput","checkbox","Enabled")
  ,field("Charts","metrics_charts","HeapChart,NonHeapChart,WholeSystem",false,"Select the chart to show on metrics Tab. It will show only if the metrics tabs is enabled","checkbox","HeapChart,NonHeapChart,WholeSystem")
  ,group("Reference Tab","",2)
  ,field("Reference","tab_Reference","Enabled",true,"Select the Reference tab to show on DebugOutput","checkbox","Enabled")
  );
  