Fix SLA Annotations
This commit is contained in:
		
							
								
								
									
										11
									
								
								chart.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								chart.js
									
									
									
									
									
								
							@@ -1,13 +1,14 @@
 | 
				
			|||||||
// SLA Data
 | 
					// SLA Data
 | 
				
			||||||
sla = null
 | 
					sla = null
 | 
				
			||||||
var xhttp = new XMLHttpRequest();
 | 
					var xmlhttp = new XMLHttpRequest();
 | 
				
			||||||
xhttp.onreadystatechange = function() {
 | 
					xmlhttp.onreadystatechange = function() {
 | 
				
			||||||
  if (this.readyState == 4 && this.status == 200) {
 | 
					  if (this.readyState == 4 && this.status == 200) {
 | 
				
			||||||
    sla =  this.responseText;
 | 
					    sla = JSON.parse(this.responseText);
 | 
				
			||||||
 | 
					    sla = sla[0];
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
xhttp.open("GET", "sla.json", false);
 | 
					xmlhttp.open("GET", "sla.json", false);
 | 
				
			||||||
xhttp.send();
 | 
					xmlhttp.send();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Charts colors
 | 
					// Charts colors
 | 
				
			||||||
const chartColors = [
 | 
					const chartColors = [
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user