From a11d4e7a5a782f484b4d1731fe520b6572fcaa6a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Fri, 1 Mar 2019 17:08:58 +0100
Subject: [PATCH] Try bars in only two colors

---
 src/app/components/shared/statistic/statistic.component.ts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/app/components/shared/statistic/statistic.component.ts b/src/app/components/shared/statistic/statistic.component.ts
index 7b7f47473..279748e52 100644
--- a/src/app/components/shared/statistic/statistic.component.ts
+++ b/src/app/components/shared/statistic/statistic.component.ts
@@ -122,6 +122,11 @@ export class StatisticComponent implements OnInit {
       } else {
         this.answerList[i].answer = content.options[i].label;
       }
+      if (i % 2 === 0) {
+        this.colors[i] = 'rgba(255,224,130, 1.0)';
+      } else {
+        this.colors[i] = 'rgba(128,203,196, 1.0)';
+      }
       if (content.options[i].points <= 0) {
         this.ccolors[i] = 'rgba(244,67,54, 0.8)';
       } else {
-- 
GitLab