Skip to content
Snippets Groups Projects
Commit 30e78344 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Disable tooltips in chart

parent d390a594
No related merge requests found
...@@ -21,7 +21,7 @@ export class AnswerList { ...@@ -21,7 +21,7 @@ export class AnswerList {
}) })
export class StatisticComponent implements OnInit { 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)', 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)']; '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'; label = 'ABCDEFGH';
...@@ -50,6 +50,7 @@ export class StatisticComponent implements OnInit { ...@@ -50,6 +50,7 @@ export class StatisticComponent implements OnInit {
this.getData(content); this.getData(content);
this.isLoading = false; this.isLoading = false;
}); });
this.chart.fillText(10, 10, 10);
} }
getData(content: ContentChoice) { getData(content: ContentChoice) {
...@@ -80,6 +81,9 @@ export class StatisticComponent implements OnInit { ...@@ -80,6 +81,9 @@ export class StatisticComponent implements OnInit {
legend: { legend: {
display: false display: false
}, },
tooltips: {
enabled: false
},
responsive: true, responsive: true,
maintainAspectRatio: false, maintainAspectRatio: false,
scales: { scales: {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment