From 30e7834460d9a0aa621cdd52f29a13405397d1af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Thu, 28 Feb 2019 17:21:07 +0100
Subject: [PATCH] Disable tooltips in chart

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

diff --git a/src/app/components/shared/statistic/statistic.component.ts b/src/app/components/shared/statistic/statistic.component.ts
index 1b81eb3f7..79afceb2a 100644
--- a/src/app/components/shared/statistic/statistic.component.ts
+++ b/src/app/components/shared/statistic/statistic.component.ts
@@ -21,7 +21,7 @@ export class AnswerList {
 })
 export class StatisticComponent implements OnInit {
 
-  chart = [];
+  chart = Chart;
   colors: string[] = ['rgba(33,150,243, 0.8)', 'rgba(76,175,80, 0.8)', 'rgba(255,235,59, 0.8)', 'rgba(244,67,54, 0.8)',
                       'rgba(96,125,139, 0.8)', 'rgba(63,81,181, 0.8)', 'rgba(233,30,99, 0.8)', 'rgba(121,85,72, 0.8)'];
   label = 'ABCDEFGH';
@@ -50,6 +50,7 @@ export class StatisticComponent implements OnInit {
       this.getData(content);
       this.isLoading = false;
     });
+    this.chart.fillText(10, 10, 10);
   }
 
   getData(content: ContentChoice) {
@@ -80,6 +81,9 @@ export class StatisticComponent implements OnInit {
           legend: {
             display: false
           },
+          tooltips: {
+            enabled: false
+          },
           responsive: true,
           maintainAspectRatio: false,
           scales: {
-- 
GitLab