From 367c4d9ce40aa5cf6e21db82e1d85dab9834b915 Mon Sep 17 00:00:00 2001 From: John Costa Date: Sat, 15 Apr 2017 21:44:54 -0400 Subject: [PATCH] fixed pie chart to show umbrella terms --- WebContent/html/javascript/statistics.jsp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/WebContent/html/javascript/statistics.jsp b/WebContent/html/javascript/statistics.jsp index ff97eab..ecb6c60 100644 --- a/WebContent/html/javascript/statistics.jsp +++ b/WebContent/html/javascript/statistics.jsp @@ -23,19 +23,31 @@ function displayData() { var availableDevices; var loanDevices; var lostDevices; + //umbrella sections + var pendingDevices; + var unavailDevices; + var returnDevices; + var brokenDevices; if (statistics.status != "" && statistics.count != ""){ for (var i = 0; iLoaned Devices: ' + loanDevices + '
Available Devices: ' + availableDevices + + '
Loaned Devices: ' + loanDevices + + '
Returning Devices: ' + returnDevices + '
Lost Devices: ' + lostDevices + '' @@ -54,8 +66,8 @@ function displayData() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Status'); data.addColumn('number', 'Count'); - data.addRows([['Total Devices', totalDevices],['Available Devices', availableDevices], - ['Loaned Devices',loanDevices],['Lost Devices',lostDevices]]); + data.addRows([['Available Devices', availableDevices],['Unavailable Devices',unavailDevices], + ['Pending Devices',pendingDevices],['Broken Devices',lostDevices]]); // Set chart options var options = {'title':'Chart of Devices',