From 33a139e4ef7ebdca23a4eace7748d6d6ba603993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=B3nal=20Murray?= <donal.murray@cern.ch> Date: Wed, 27 May 2020 15:09:47 +0100 Subject: [PATCH] Replace airway_pressure with pressure_patient in WebUI plots --- raspberry-backend/static/js/Chart-plot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raspberry-backend/static/js/Chart-plot.js b/raspberry-backend/static/js/Chart-plot.js index ac58950d..97ba202f 100644 --- a/raspberry-backend/static/js/Chart-plot.js +++ b/raspberry-backend/static/js/Chart-plot.js @@ -31,7 +31,7 @@ function init_results(){ var seconds = data[i]["timestamp"]/1000; if (i==data.length-1) timestamp = seconds; if ( seconds == "" ) continue; - initial_yaxis_var1.push({x : seconds, y : data[i]["airway_pressure"]}); + initial_yaxis_var1.push({x : seconds, y : data[i]["pressure_patient"]}); initial_yaxis_var2.push({x : seconds, y : data[i]["volume"]}); } //reverse because data is read from the other way @@ -217,7 +217,7 @@ $(document).ready(function() { } } }); - requestDataVar1("airway_pressure", "volume"); + requestDataVar1("pressure_patient", "volume"); }); -- GitLab