diff --git a/chart.js b/chart.js index f1d6055..2f489a2 100644 --- a/chart.js +++ b/chart.js @@ -1,11 +1,13 @@ // SLA Data sla = null -const request = async () => { - const response = await fetch('sla') - sla = await response.json(); - sla = sla[0] -} -request(); +var xhttp = new XMLHttpRequest(); +xhttp.onreadystatechange = function() { + if (this.readyState == 4 && this.status == 200) { + sla = this.responseText; + } +}; +xhttp.open("GET", "sla.json", false); +xhttp.send(); // Charts colors const chartColors = [ diff --git a/index.html b/index.html index 9f59ab0..9c52afa 100644 --- a/index.html +++ b/index.html @@ -17,11 +17,6 @@ #chart-container > canvas { height: 400px; } - #ingestion-rate-box { - position: fixed; - top: 1em; - right: 25em; - } @@ -34,6 +29,11 @@

ART Dashboard

+
+ + + +
@@ -43,13 +43,10 @@
-
- - -
+