From 8904e79114526da2490a5bea851adc98904f1026 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 7 Mar 2024 18:02:27 +0100 Subject: [PATCH] adding metric --- rowers/interactiveplots.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 5356755c..bc5cc083 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -2107,7 +2107,9 @@ def interactive_histoall(theworkouts, histoparam, includereststrokes, histopwr = histopwr[histopwr > yaxminima[histoparam]] histopwr = histopwr[histopwr < yaxmaxima[histoparam]] - data_dict = {"data": histopwr.tolist()} + data_dict = {"data": histopwr.tolist(), + "metric": metricsdicts[histoparam]["verbose_name"]} + print(data_dict) script, div = get_chart("/histogram", data_dict, debug=False) return script, div