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

Try bars in only two colors

parent 925f99c9
No related merge requests found
......@@ -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 {
......
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