Skip to content

Commit 529b5d4

Browse files
committed
Do not use grey colors in poll chart
1 parent 07d2f10 commit 529b5d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/app/site/pages/meetings/pages/agenda/modules/topics/modules/topic-poll/components/topic-poll-detail-content/topic-poll-detail-content.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input } from '@angular/core';
22
import { Permission } from 'src/app/domain/definitions/permission';
3-
import { pollChartColors, pollChartGreys, PollData, PollState, PollTableData } from 'src/app/domain/models/poll';
3+
import { pollChartColors, PollData, PollState, PollTableData } from 'src/app/domain/models/poll';
44
import { ChartData } from 'src/app/site/pages/meetings/modules/poll/components/chart/chart.component';
55
import { OperatorService } from 'src/app/site/services/operator.service';
66
import { BaseUiComponent } from 'src/app/ui/base/base-ui-component';
@@ -106,7 +106,7 @@ export class TopicPollDetailContentComponent extends BaseUiComponent {
106106
private generateChartColors(amount: number): { backgroundColor: string[]; hoverBackgroundColor: string[] } {
107107
let colors = Array.from(pollChartColors.values());
108108
while (colors.length < amount) {
109-
colors = colors.concat(Array.from(pollChartGreys.values()));
109+
colors = colors.concat(Array.from(pollChartColors.values()));
110110
}
111111
while (colors.length > amount) {
112112
colors.pop();

0 commit comments

Comments
 (0)