From 84dcd5586f8caa86ed8f41f747b748462067ebd9 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Fri, 25 Nov 2016 16:42:22 +0100 Subject: [PATCH] Started plotting same data with different dates --- var/www/Flask_server.py | 1 + var/www/templates/terms_plot_tool.html | 36 +++++++++++++++++++++----- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index fcd67a21..ec7bd671 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -771,6 +771,7 @@ def terms_plot_tool_data(): value = r_serv_term.hget(timestamp, term) curr_value_range = int(value) if value is not None else 0 value_range.append([timestamp, curr_value_range]) + value_range.insert(0,term) return jsonify(value_range) diff --git a/var/www/templates/terms_plot_tool.html b/var/www/templates/terms_plot_tool.html index 2d5799f0..fc5ab017 100644 --- a/var/www/templates/terms_plot_tool.html +++ b/var/www/templates/terms_plot_tool.html @@ -72,7 +72,7 @@
- Date: + Date:
@@ -168,6 +168,7 @@