From 8269a6743c14cab1ca4105651255e6f908ee195c Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Tue, 6 Apr 2021 15:18:06 -0400 Subject: Analytics Board Signed-off-by: Sean Smith Change-Id: Id942628ff04cd2f3808f8608ac45989360717f34 --- src/templates/base/booking/stats.html | 338 +++++++++++++++++++++++++++------- 1 file changed, 274 insertions(+), 64 deletions(-) (limited to 'src/templates/base/booking/stats.html') diff --git a/src/templates/base/booking/stats.html b/src/templates/base/booking/stats.html index 4c06b71..3429acf 100644 --- a/src/templates/base/booking/stats.html +++ b/src/templates/base/booking/stats.html @@ -1,78 +1,288 @@ {% extends "base.html" %} {% load staticfiles %} -{% block extrahead %} -{{ block.super }} - +{% block content %} +
+
+
+
+

Booking Statistics

+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+ + -{% endblock %} + let utilization_config = { + type:"doughnut", + data: { + labels : ["In Use","Not In Use","Maitenance"], + datasets: [{ + label: 'Lab Utilization', + data : [data['utils'][0], data['utils'][1], data['utils'][2]], + backgroundColor: [ + primary_color, + secondary_color, + accent_color, + ] + }] + }, + options: { + circumference: Math.PI, + rotation : Math.PI, + cutoutPercentage : 80, + plugins: { + datalabels: { + backgroundColor: primary_color, + borderColor: secondary_color, + align: 'start', + anchor: 'start', + offset: 10, + borderRadius: 4, + borderWidth: 1, + } + }, + legend: { + display: false + }, + tooltips: { + enabled: true + }, + title: { + display: true, + text: "Lab Resources Utilization" + } + } + }; -{% block content %} -
-
-

Number of days to plot:

-
- - -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
- {% endblock content %} -- cgit 1.2.3-korg