diff --git a/src/app/components/shared/statistic/statistic.component.ts b/src/app/components/shared/statistic/statistic.component.ts index 8f719e21e0cfb71804483b708c539c5db01a2c0b..19a5852f28166bc4c15e1c186c233e0092eacb36 100644 --- a/src/app/components/shared/statistic/statistic.component.ts +++ b/src/app/components/shared/statistic/statistic.component.ts @@ -65,8 +65,11 @@ export class StatisticComponent implements OnInit { this.answerList[i].answer = content.options[i].label; } } + this.labels.push('Abstentions'); this.contentService.getAnswer(content.id).subscribe(answer => { this.data = answer.roundStatistics[0].independentCounts; + this.data.push(answer.roundStatistics[0].abstentionCount); + console.log(this.data); this.chart = new Chart('chart', { type: 'bar', data: {