Fix the warehouse diagrams on the dashboard

- Show the correct utilization
- Display values as correct percentages

Closes #99
This commit is contained in:
Lukas Fürderer 2020-06-20 23:54:33 +02:00
parent e5332a3348
commit 97a7f3a8ad
1 changed files with 2 additions and 2 deletions

View File

@ -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));
});