From cf7500f4724beea20027e6d75de7df14ad909ab8 Mon Sep 17 00:00:00 2001 From: joethei Date: Tue, 14 May 2019 15:30:16 +0200 Subject: [PATCH] ~ changed values around #SPM-18: add work 30m development --- src/main/java/de/hsel/spm/baudas/web/WeekOverviewDiagram.java | 4 ++-- src/main/webapp/js/week_overview.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/hsel/spm/baudas/web/WeekOverviewDiagram.java b/src/main/java/de/hsel/spm/baudas/web/WeekOverviewDiagram.java index 7478e73..905c8a5 100644 --- a/src/main/java/de/hsel/spm/baudas/web/WeekOverviewDiagram.java +++ b/src/main/java/de/hsel/spm/baudas/web/WeekOverviewDiagram.java @@ -65,8 +65,8 @@ public class WeekOverviewDiagram extends HttpServlet { for (String label : labels) { Map.Entry entry = overview.getResult().get(label); - count.add(entry.getKey().toString()); - revenue.add(entry.getValue().toString()); + revenue.add(entry.getKey().toString()); + count.add(entry.getValue().toString()); } diff --git a/src/main/webapp/js/week_overview.js b/src/main/webapp/js/week_overview.js index 1cb0046..9d44521 100644 --- a/src/main/webapp/js/week_overview.js +++ b/src/main/webapp/js/week_overview.js @@ -6,13 +6,13 @@ let week_overview = new Chart(document.getElementById("overview_chart"), { label: "Warenanzahl", data: [0, 0, 0, 0, 0], fill: true, - backgroundColor: 'rgba(113, 114, 231, 0.7)', + backgroundColor: 'rgba(104, 216, 154, 0.5)', lineTension: 0 }, { label: "Einnahmen in €", data: [0, 0, 0, 0, 0], fill: true, - backgroundColor: 'rgba(104, 216, 154, 0.8)', + backgroundColor: 'rgba(113, 114, 231, 1)', lineTension: 0 }] },