From b83336f9aa5d03ecc3c6fa1fa81cf3a908d075cd Mon Sep 17 00:00:00 2001 From: Christoph Alt <christoph.alt@fau.de> Date: Mon, 17 Oct 2022 16:34:07 +0200 Subject: [PATCH] Moved unit to axislabel to save some space Thanks to Jonas P. --- dashboards/dashboard_base.py | 2 +- tests/test_dashboard_creation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboards/dashboard_base.py b/dashboards/dashboard_base.py index 65e1617..67041a1 100644 --- a/dashboards/dashboard_base.py +++ b/dashboards/dashboard_base.py @@ -81,7 +81,7 @@ def build_row_repeat_dashboard( dataSource=dataSource, targets=[get_influx_target(str(panel_query))], repeat=Repeat('h', panel_repeat_var.name), - unit=unit, + axisLabel=unit, pointSize=9, ), ], diff --git a/tests/test_dashboard_creation.py b/tests/test_dashboard_creation.py index a0d40ff..9e6c1d6 100644 --- a/tests/test_dashboard_creation.py +++ b/tests/test_dashboard_creation.py @@ -63,7 +63,7 @@ dashboard = Dashboard( get_influx_target(str(q1)) ], repeat=Repeat('h', host_var.name), - unit='MLUPS per process', + axisLabel='MLUPS per process', pointSize=9, ), ], -- GitLab