From 97a7f3a8adc19fd28f0bfa5749d91872dfb52082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20F=C3=BCrderer?= Date: Sat, 20 Jun 2020 23:54:33 +0200 Subject: [PATCH] Fix the warehouse diagrams on the dashboard - Show the correct utilization - Display values as correct percentages Closes #99 --- prototype/src/main/resources/templates/intern/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/src/main/resources/templates/intern/index.html b/prototype/src/main/resources/templates/intern/index.html index 1b0bb49..c0937ff 100644 --- a/prototype/src/main/resources/templates/intern/index.html +++ b/prototype/src/main/resources/templates/intern/index.html @@ -156,7 +156,7 @@ fetch('./dashboardsummary') .then(response => response.json()) .then(data => { - chart('warehouse', 'Lagerauslastung', data.map(d => d.todaysWarehouseCapacity), + chart('warehouse', 'Lagerauslastung', data.map(d => d.currentWarehouseCapacity * 100), "%", data.map(g => g.created)); }); @@ -170,7 +170,7 @@ fetch('./dashboardsummary') .then(response => response.json()) .then(data => { - chart('warehouse-ef', 'Lagereffizienz', data.map(d => d.todaysWarehouseCapacity), + chart('warehouse-ef', 'Lagereffizienz', data.map(d => d.todaysWarehouseCapacity * 100), "%", data.map(g => g.created)); });