~ changed values around

#SPM-18: add work 30m development
This commit is contained in:
Johannes Theiner 2019-05-14 15:30:16 +02:00
parent 66305b51d1
commit cf7500f472
2 changed files with 4 additions and 4 deletions

View File

@ -65,8 +65,8 @@ public class WeekOverviewDiagram extends HttpServlet {
for (String label : labels) {
Map.Entry<Double, Integer> 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());
}

View File

@ -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
}]
},