diff --git a/src/ui/PurchaseGraph.vue b/src/ui/PurchaseGraph.vue index a97b93a..1d186a3 100644 --- a/src/ui/PurchaseGraph.vue +++ b/src/ui/PurchaseGraph.vue @@ -19,34 +19,34 @@ export default { _response = await fetch("/api/purchase/statistics"); } let response = await _response.json(); - let labels = []; + let labels = [""]; let blue = { label: "Blå", borderColor: "#57d2fb", backgroundColor: "#d4f2fe", borderWidth: 2, - data: [] + data: [0] }; let yellow = { label: "Gul", borderColor: "#ffde5d", backgroundColor: "#fff6d6", borderWidth: 2, - data: [] + data: [0] }; let red = { label: "Rød", borderColor: "#ef5878", backgroundColor: "#fbd7de", borderWidth: 2, - data: [] + data: [0] }; let green = { label: "Grønn", borderColor: "#10e783", backgroundColor: "#c8f9df", borderWidth: 2, - data: [] + data: [0] }; let highestNumber = 0; @@ -87,7 +87,7 @@ export default { title: { display: true, text: "Antall kjøpt", - fontSize: 20, + fontSize: 20 }, legend: { display: true,