From 0a4dfd63c9b52b4027c4df481fa1a6d9e9f7fc2b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 10 Nov 2020 11:46:00 +0100 Subject: [PATCH] ui: usage graph: show axis and set maximum Signed-off-by: Thomas Lamprecht --- www/panel/UsageChart.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/panel/UsageChart.js b/www/panel/UsageChart.js index 87f1200d..fc8d9859 100644 --- a/www/panel/UsageChart.js +++ b/www/panel/UsageChart.js @@ -27,8 +27,11 @@ Ext.define('PBS.widget.UsageChart', { { type: 'numeric', position: 'right', - hidden: true, + hidden: false, minimum: 0, + // TODO: make this configurable?! + maximum: 1, + renderer: (axis, label) => `${label*100}%`, }, { type: 'time',