From e7fbd94328cb0135abb129189fb4fd8ac449d8b4 Mon Sep 17 00:00:00 2001 From: John Costa Date: Thu, 20 Apr 2017 22:25:27 -0400 Subject: [PATCH] fixed statistics page, added a chart and made map work, still a few bugs --- .classpath | 6 +- WebContent/html/javascript/statistics.jsp | 121 ++++++++++++++++++-- WebContent/html/webpages/statisticsPage.jsp | 43 +------ src/database/StatisticsQueries.java | 48 +++++++- src/entities/Statistics.java | 15 ++- 5 files changed, 175 insertions(+), 58 deletions(-) diff --git a/.classpath b/.classpath index 7ac7040..0295c16 100644 --- a/.classpath +++ b/.classpath @@ -37,10 +37,6 @@ - - - - - + diff --git a/WebContent/html/javascript/statistics.jsp b/WebContent/html/javascript/statistics.jsp index dc510ba..737c3dc 100644 --- a/WebContent/html/javascript/statistics.jsp +++ b/WebContent/html/javascript/statistics.jsp @@ -8,18 +8,30 @@ Insert title here - <% +<% +//statistics for status Statistics[] genStatistics = StatisticsQueries.getStatistics(); String statString = Statistics.arrayToString(genStatistics); +//location queries for map +Statistics[] genLocations = StatisticsQueries.getLocations(); +String locString = Statistics.arrayToString(genLocations); +//device type queries +Statistics[] genTypes = StatisticsQueries.getDeviceTypes(); +String typeString = Statistics.arrayToString(genTypes); %> + \ No newline at end of file diff --git a/WebContent/html/webpages/statisticsPage.jsp b/WebContent/html/webpages/statisticsPage.jsp index dfb2309..79645de 100644 --- a/WebContent/html/webpages/statisticsPage.jsp +++ b/WebContent/html/webpages/statisticsPage.jsp @@ -65,42 +65,6 @@

Distribution of Devices Nationwide

-